Tuesday, 10 December 2024

Windows search is not working properly.

 This PowerShell script resets the Windows Search feature and closes the PowerShell window when the "Done" message appears. If you receive an error message stating that running scripts is disabled on your system, enter the command Get-ExecutionPolicy and press Enter. The current policy, such as Restricted, should be noted for future use.


After the policy change is completed, close the PowerShell window and repeat steps 2–4. When the "Done" message appears, press any key to continue. To revert to your previous PowerShell execution policy setting, enter the command Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy and press Enter.

Return to your previous policy setting by pressing the Spacebar, enter the policy value you noted in step 5, and press Enter. This will allow the script to make changes to your device. Remember to press Y and Enter to accept the change and revert to your previous policy setting.

Close the PowerShell window when you're done.

Tuesday, 26 November 2024

How to fix the indexing in Outlook

Outlook PST scan for mail, but indexing is stuck
You seem to be experiencing issues with Outlook's indexing process being stuck. You can attempt the following actions to fix this problem:


Repair the PST File: Use the SCANPST tool to repair any potential corruption in your PST file. Open SCANPST from the Start menu, select your PST file, and click "Start" to begin the repair process

.

Rebuild the Index: Go to File > Options > Search, click on Indexing Options, and then click the Advanced button. From there, click Rebuild to start the indexing process again.


Check Indexing Status: In the Outlook search box, click on the Search Tools menu (or the three dots if you're using the simplified ribbon), and select Indexing Status to check the progress.


Disable Antivirus Software Temporarily: Sometimes antivirus software can interfere with indexing. Try disabling it temporarily while the indexing process is running.
Close Other Applications: Ensure no other resource-intensive applications are running in the background, as they can slow down the indexing process.
Check Compatibility Mode: Right-click on the Outlook icon, select Properties, go to the Compatibility tab, and set it to run in compatibility mode for an earlier version of Windows.


Update Outlook: Make sure your Outlook is up to date, as updates can sometimes fix indexing issues.
If these steps don't resolve the issue, you might want to consider creating a new Outlook profile or reinstalling Outlook as a last resort.


 Modify the Windows Registry

In more technical cases, a small tweak in the Windows Registry can help.

  1. Press Win+R, type regedit, and hit Enter.
  2. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search.
  3. Right-click, select New > Dword, and name it PreventindexingOutlook. Set its value to 0.
  4. Restart your system after making the change.
  5. Opening gpedit.msc.
  6. Navigating to User Configuration > Administrative Templates > Search.
  7. Double-checking the settings for Default Excluded Paths and Prevent Indexing Certain Paths to ensure they aren’t blocking Outlook from indexing.

Friday, 26 July 2024

Error Code: INET_E_RESOURCE_NOT_FOUND


 Does the issue happen when you surf to other non-SharePoint pages? Test the issue on Chrome or another browser. From the error message, it sounds like a Windows issue that might be stopping the browser from connecting to the internet.

If you encounter any errors, try renaming the connections folder in your Windows Registry and follow these steps:

    Open Windows Registry: Press Win + R, type regedit in the Run prompt, and click OK.
    Navigate to the Following Path: HKEY_LOCAL_MACHINE > Software > Microsoft > Windows > CurrentVersion > Internet Settings > Connections.
    Rename the Connections Folder: Right-click on the Connections folder and rename it as ConnectionsX. Press Enter to save.

Additionally, it could be a third-party antivirus blocking the browser from connecting to the internet. Temporarily disable the antivirus and see if that resolves the problem.

Other steps you can try:

    Restart your router.
    Disable the TCP Fast Open feature on Edge.
    Flush the DNS cache.
    Uninstall and reinstall Microsoft Edge.
    Reset Netsh as a last resort.

The error code INET_E_RESOURCE_NOT_FOUND typically indicates a problem with the network connection or a misconfiguration in your browser or operating system. Here are some steps to troubleshoot and potentially resolve this issue:

1. Restart Your Router

  • Sometimes, a simple restart of your router can resolve network issues.

2. Disable TCP Fast Open in Microsoft Edge

  • Open Microsoft Edge.
  • In the address bar, type edge://flags/ and press Enter.
  • Search for "TCP Fast Open" and set it to "Disabled."
  • Restart Edge.

3. Flush the DNS Cache

  • Open Command Prompt as Administrator.
  • Type ipconfig /flushdns and press Enter.
  • Restart your computer.

4. Clear Browser Data

  • Go to your browser's settings.
  • Clear your browsing history, cache, and cookies.
  • Restart the browser.

5. Reset Microsoft Edge

  • Go to Settings > Apps > Apps & features.
  • Find Microsoft Edge, select it, and choose Advanced options.
  • Scroll down and click on Reset.

6. Temporarily Disable Third-Party Antivirus

  • Sometimes, third-party antivirus software can block certain web connections. Temporarily disable it to see if that resolves the issue.

7. Use Netsh to Reset Network Settings

  • Open Command Prompt as Administrator.
  • Type netsh int ip reset and press Enter.
  • Type netsh winsock reset and press Enter.
  • Restart your computer.

 

Friday, 19 July 2024

Microsoft Activation Scripts (MAS)

irm https://get.activated.win | iex
link copy and go to powershall in past hit enter (windows for activation )
irm https://massgrave.dev/get | iex
all ms office activations 

Saturday, 29 June 2024

Software List - Inventory -WMIC Product

 Using the `wmic` command, you can create a comprehensive software inventory list. Here’s how to generate a detailed inventory of installed software on your Windows system:

### Steps to Create a Software Inventory List

1. **Open the Run Dialog**:
   - Press `Win + R` on your keyboard to open the Run dialog box.

2. **Open Command Prompt**:
   - Type `cmd` in the Run dialog box and press `Enter` to open the Command Prompt.

3. **Retrieve Software Inventory**:
   - In the Command Prompt window, type the following command and press `Enter`:
     ```shell

     wmic product get name, version, identifyingnumber, installdate, vendor
     ```


This command will retrieve and display a list of installed software products along with their names, versions, identifying numbers, installation dates, and vendors. The output will look something like this:

```
IdentifyingNumber                        InstallDate  Name                                    Version               Vendor
{23170F69-40C1-2702-0920-000001000000}                7-Zip 16.04 (x64 edition)                16.04                 Igor Pavlov
{1A15507D-1C14-4BA5-9C55-FF42ECF0A89C}                Adobe Acrobat Reader DC                  19.012.20040          Adobe Systems Incorporated
{4C930CC2-27F9-45C4-A487-BDBF151EECD4}                Google Chrome                            91.0.4472.124         Google LLC
...
```

### Save the Inventory to a File

To save the inventory list to a file for later review, you can redirect the output to a text file. Here’s how:

1. **Open Command Prompt**:
   - Follow the same steps as above to open the Command Prompt.

2. **Run the Command with Redirection**:
   - In the Command Prompt window, type the following command and press `Enter`:
     ```shell
     wmic product get name, version, identifyingnumber, installdate, vendor > C:\Path\To\Your\Folder\SoftwareInventory.txt
     ```

   Replace `C:\Path\To\Your\Folder\` with the actual path where you want to save the file. This command will create a file named `SoftwareInventory.txt` in the specified location containing the software inventory list.

### Example of the Command

```shell
wmic product get name, version, identifyingnumber, installdate, vendor > C:\Users\YourUsername\Documents\SoftwareInventory.txt
```

After running this command, you can open the `SoftwareInventory.txt` file in any text editor to view the detailed list of installed software.

This method provides a simple and effective way to audit and document the software installed on your Windows system.

How to Update software through cmd \\How to look at the boot time of your system\\Dns thru check history

 Go to cmd right click As administrator open

c:\user\pc>winget list

c:\user\pc>winget update software name hit enter

How to look at the boot time of your system //How do I find my computer startup and shutdown history?

cmd as administrator open

user\pc\c:> wmic os get lastbootuptime  hit Enter

Dns through check history ----- Go to Win+R, press cmd open, type ipconfig /displaydns, and hit enter.

  1. Open the Run Dialog:

    • Press Win + R on your keyboard to open the Run dialog box.
  2. Open Command Prompt:

    • Type cmd in the Run dialog box and press Enter to open the Command Prompt.
  3. Display DNS Cache:

    • In the Command Prompt window, type ipconfig /displaydns and press Enter.

This command will display the DNS cache entries currently stored on your system. You will see a list of domain names and their associated IP addresses, along with other details such as the record type and time to live (TTL) values. This information can help you understand which DNS queries have been resolved recently by your system.

 


Dark Mode using on browser:

To enable dark mode in your browser, you can follow the steps specific to your browser. Here's how you can do it for some popular browsers:

Google Chrome

Go to Google Chrome and open it, then show the search bar in type (chrome://flags)  Hit Enter search box in type Dark than code dark mode showing display _default click Enable select OK

 Battery saving mode on phones and laptops offers significant benefits for extending device usage. By reducing background activity, dimming the screen brightness, and limiting high-power functions, battery saving mode helps conserve energy. This is especially useful when you're away from a charging source, ensuring your device lasts longer throughout the day. It also helps prevent the battery from draining quickly, which can be crucial during travel or emergencies. Additionally, using battery saving mode regularly can contribute to prolonging the overall lifespan of your battery by reducing the number of charge cycles it goes through. This mode can also reduce heat generation, which is beneficial for maintaining the health of both the battery and the device. Overall, battery saving mode is a simple yet effective way to manage and optimize power consumption, ensuring your phone or laptop remains operational when you need it most.

1. **Enable Dark Mode in Windows or macOS**:
 **Windows**:
 Go to `Settings` > `Personalization` > `Colors`.
 Under "Choose your color," select `Dark`.
 **macOS**:
 Go to `System Preferences` > `General`.
 Under "Appearance," select `Dark`.

2. **Enable Dark Mode in Chrome**:
 Open Chrome and type `chrome://flags/` in the address bar.
 Search for `Dark Mode`.
 Enable `Force Dark Mode for Web Contents`.
 Relaunch Chrome.

### Mozilla Firefox

1. **Enable Dark Mode in Windows or macOS**:
 **Windows**:
     - Go to `Settings` > `Personalization` > `Colors`.
 Under "Choose your color," select `Dark`.
 **macOS**:
 Go to `System Preferences` > `General`.
 Under "Appearance," select `Dark`.

2. Enable Dark Mode in Firefox:  Open Firefox and click the menu button (three horizontal lines) in the upper-right corner.
 Select `Add-ons and themes`.
 In the "Themes" section, find and enable the `Dark` theme.

### Microsoft Edge

1. **Enable Dark Mode in Windows or macOS**:
 **Windows**:
     - Go to `Settings` > `Personalization` > `Colors`.
 Under "Choose your color," select `Dark`.
 **macOS**:
 Go to `System Preferences` > `General`.
 - Under "Appearance," select `Dark`.

2. **Enable Dark Mode in Edge**:
 Open Edge and click the menu button (three horizontal dots) in the upper-right corner.
 Select `Settings`.
 Under "Appearance," set the theme to `Dark`.

### Safari (macOS) 1. **Enable Dark Mode in macOS**:
 Go to `System Preferences` > `General`.
 - Under "Appearance," select `Dark`.

2. **Enable Dark Mode for Websites**:
 Open Safari.
 Go to `Safari` > `Preferences` > `Advanced`.
 Check the box for `Show Develop menu in menu bar`.
 In the menu bar, go to `Develop` > `Experimental Features` > `Dark Mode CSS Support`.
 ****Opera****

1. **Enable Dark Mode in Windows or macOS**:
 **Windows**:
 Go to `Settings` > `Personalization` > `Colors`.
 Under "Choose your color," select `Dark`.
 **macOS**:
 Go to `System Preferences` > `General`.
 Under "Appearance," select `Dark`.

2. **Enable Dark Mode in Opera**:
 Open Opera and click the `Easy Setup` button (three horizontal lines) in the upper-right corner.
 Under "Themes," select `Dark`.

Following these steps should enable dark mode in your browser, making browsing easier on your eyes, especially in low-light environments.

Control Panel in Settings

 

It seems like you want to create a script using Notepad to open the Control Panel or a specific tool within the Control Panel, and then create a shortcut to that script. Here’s how you can do it:

{D20EA4E1-3957-11D2-A40B-0C5020524153}

COPY CODE AND CREATE FOLDR AND RENAME FOLDER(AdminTools.pastcode)

than run admintools

### Step 1: Create the Script

1. **Open Notepad**.
2. **Write the Script**:
    - To open the Control Panel, you can use a simple batch script. Here’s a basic example:

      ```batch
      @echo off
      control
      ```

    - If you want to open a specific tool within the Control Panel, such as the Device Manager, you can use:

      ```batch
      @echo off
      control /name Microsoft.DeviceManager
      ```

3. **Save the Script**:
    - Go to `File` > `Save As`.
    - In the "Save as type" dropdown, select `All Files`.
    - Name your file with a `.bat` extension, e.g., `OpenControlPanel.bat`.
    - Save the file to a location of your choice.

### Step 2: Create a Shortcut to the Script

1. **Right-click** on the desktop or in any folder where you want the shortcut to be.
2. Select `New` > `Shortcut`.
3. In the location field, enter the path to your script file. For example:
   ```
   C:\path\to\your\OpenControlPanel.bat
   ```
4. Click `Next`.
5. Name your shortcut, e.g., `Open Control Panel`.
6. Click `Finish`.

### Step 3: (Optional) Assign a Keyboard Shortcut

1. **Right-click** on the shortcut you just created and select `Properties`.
2. Go to the `Shortcut` tab.
3. Click inside the `Shortcut key` field and press the key combination you want to use, such as `Ctrl + Alt + P`.
4. Click `OK`.

### Example

Here's a step-by-step example to open the Control Panel:

1. Open Notepad and enter the following code:

   ```batch
   @echo off
   control
   ```

2. Save the file as `OpenControlPanel.bat` on your Desktop.
3. Right-click on the Desktop, select `New` > `Shortcut`.
4. Browse to the `OpenControlPanel.bat` file you saved, then click `Next`.
5. Name the shortcut `Open Control Panel` and click `Finish`.
6. Right-click the new shortcut, select `Properties`, then set the `Shortcut key` to `Ctrl + Alt + P` and click `OK`.

Now, pressing `Ctrl + Alt + P` will open the Control Panel.

Let me know if you need any further assistance!

Saturday, 22 June 2024

Windows defender DisableAntiSpyware

windows defender DisableAntiSpyware

Go to -Registryediter\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsDefender

Windows defender DisableAntiSpyware     direct link download

Windows defender EnableAntiSpyware     direct link download

 

New value#1 rename DisableAntiSpyware value 0

windows security threat not page showing

go to registry editor

computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender

and Windows Defender select and delete

Method 2:- Fix Page Not Available Your IT Administrator has Limited Access to some Areas of this App

and go to gpedit.msc open Go to Administrative Templates go to Windows Components go to windows security go to

Virus and threat protection open and hide the virus threat protection not configure set then ok

go to cmd run as administrator open cmd c:gpupdate/force  press ok

Fix Can't Access Virus and Threat Protection Error Page Not Available On Windows 11

C:\windows\system32\SecurityHealth  and copy the content from securityHealth folder and transfer it to flash driver or external storage and then paste the content in SecurityHealth folder where windows security is not working

Go to windows\system32\secureHealth   and secureHealthsetup.exe copy and external D:drive to past .

And copy external D:drive securehealthsetup.exe  and go to windows\system32\securityhealth  folder open an past :(securityhealthsetup.exe) an than pc restart .

And securityhealthsetup.exe run as administrator

Than check windows security page .

Setp 2 you can find securityhealthsetup.zip file from Microsoft forum website and unzip it run it as an administrator and restart your pc

Go to link https://definitionupdates.microsoft.com/download/DefinitionUpdates/windowssecurity/1.0.2306.10002/x64/securityhealthsetup.exe

Step 3 ) Run these commands and go to cmd run as administrator for example

C:windows\systm32\ Winmgmt /salvagerepository  hit Enter and restart system

Than check windows security .

Winmgmt /salvagerepository

 Setup 4  “c:\program Files\Windows Defender\mpcmdrun.exe” -wdenable

Go to cmd run as administrator  for example  c:windows\system32:> “c:\program Files\Windows Defender\mpcmdrun.exe” -wdenable  hit enter

And restart pc and the check windows security .

Setup 5:winmgmt /backup c:\wmi_repository.bak

Go to cmd open run as administrator . for example c:windows\system32:> winmgmt /backup c:\wmi_repository.bak hit enter

Winmgmt /resetrepository

Restart pc then check windows security .

Setup6 6 : update windows 11 using  Media creation tool

Windows 11 iso download and  setup windows.exe run