Archive for the ‘Windows 8’ category

How to Prevent Windows from Turning off Hard Drive after Idle

May 29th, 2020 by Admin

By default, Windows will automatically turn off your hard drive after 20 minutes of idle time. This can help save energy and extend a laptop’s battery life. When you try to access a hard disk that is turned off, you will notice a slight delay for the drive to spin back up. Constantly spinning down/up can reduce the life of the hard disk, so I recommend you leave the drive spinning all the time, or set the drive to turn off after a longer period (one or two hours) of inactivity. In this tutorial we’ll show you 2 methods to prevent Windows from turning off hard drive after idle.

Method 1: Prevent Turning off Hard Drive via Power Options

  1. Press the Windows logo key + R to open the Run box. Type the following and hit Enter to open the Power Options window.
    control.exe powercfg.cpl,,3

  2. Expand Hard disk and Turn off hard disk after, change the value to 0 and click OK.

    Your hard drive will never fall into sleep after idle.

Method 2: Prevent Turning off Hard Drive via Command Prompt or PowerShell

  1. Open the Command Prompt or PowerShell as administrator.

  2. Run the following commands one by one, replacing “seconds_of_idle” with 0.

    powercfg /SETDCVALUEINDEX SCHEME_CURRENT 0012ee47-9041-4b5d-9b77-535fba8b1442 6738e2c4-e8a5-4a42-b16a-e040e769756e seconds_of_idle

    powercfg /SETACVALUEINDEX SCHEME_CURRENT 0012ee47-9041-4b5d-9b77-535fba8b1442 6738e2c4-e8a5-4a42-b16a-e040e769756e seconds_of_idle

  3. When it’s done, your hard drive should keep spinning all the time and it never goes to sleep after idle.

3 Ways to Configure Windows to Create Crash Dumps on BSOD

May 19th, 2020 by Admin

The blue screen of death (BSOD) usually happens when a critical error occurs and Windows is unable to recover and repair it automatically. In order to identify the cause of the blue screen, you need to configure Windows to create minidump on every crash.

Method 1: Enable Minidump Creation Using System Properties

  1. Press the Windows key and R to bring up the Run box, and type SystemPropertiesAdvanced and hit Enter to open the System Properties window.

  2. Click on the Settings button under the “Startup and Recovery” section.

  3. The memory dump options are in the “Write debugging information” section. By default, it is Automatic memory dump. Just change it to “Small memory dump (256 KB)” and click OK.

  4. Whenever your PC presents a blue screen, it will automatically collect some diagnostic information and store them in a minidump file which you can find under the directory C:\Windows\Minidump.

Method 2: Enable Minidump Creation Using Registry Tweak

  1. Open Registry Editor and browse to the following location:
  2. On the right side, double-click on the 32-bit DWORD CrashDumpEnabled and change its value from the default value 7 to 3.

    • 0x0: None
    • 0x1: Complete memory dump
    • 0x2: Kernel memory dump
    • 0x3: Small memory dump (64 KB)
    • 0x7: Automatic memory dump
  3. You must restart Windows in order for your registry changes to take affect.

Method 3: Enable Minidump Creation Using Command Prompt

  1. Open the Command Prompt as administrator. Enter the following command to find out which type of memory dumps you are using.
    wmic RECOVEROS get DebugInfoType

  2. If you want to enable minidump creation, run the below command:
    wmic RECOVEROS set DebugInfoType = 3

  3. When it’s done, reboot your computer.

Minidump file is stored in a binary format. In order to view and analyze its content, you need to use the third-party software like WinDbg or BlueScreenView.

How to Export a Directory Structure in Windows 10 / 8 / 7

May 11th, 2020 by Admin

How can I print the hierarchical structure of a particular directory so I can share it to other people? Printing a directory listing sounds so easy, but Windows doesn’t provide a straightforward way to do this. In this tutorial we’ll show you how to use Command Prompt or PowerShell to export a directory structure in Windows 10 / 8 / 7.

Method 1: Export Directory Structure Using Command Prompt

  1. Press the Windows key + R to launch the Run box. Type cmd and hit Enter to open Command Prompt.

  2. You can run the “tree” command to export the directory tree of any folder to a text file. In our case, the “d:\demo” is the folder we want to export the directory tree, and the result is saved in a plain text file (*.txt).

    tree d:\demo /a /f > d:\list.txt

  3. Open the text file using Notepad and the entire directory tree is listed inside, and you can print them out.

If you look for a way to export the directory structure in .csv format so you can open it with Microsoft Excel, proceed to the next method.

Method 2: Export Directory Structure Using PowerShell

  1. To get started, you need to open the Windows PowerShell window. If you’re running Windows 10, press the Windows key + X together and select “Windows PowerShell“.

  2. Enter the following command and press Enter. Make sure you replace “d:\demo” with the folder which you want to export the directory structure.

    Get-ChildItem -Recurse 'd:\demo' | Select-Object FullName, name | Export-Csv -path d:\list.csv -noTypeInfo

  3. It will generate a .csv file which lists all files and sub-folders in your target directory. But it doesn’t show you the hierarchical levels like the Method 1 will.

That’s it!

2 Ways to Prevent NTLM Credentials from Being Sent to Remote Servers

April 14th, 2020 by Admin

When you try to access a web page which contains a file hosted on a SMB server, Windows automatically sends your user name and NTLM credentials to authenticate. Although the credentials are not sent in clear-text, the attacker can crack them to recover your Windows password. To avoid leaking your account credentials, you can block NTLM (allowing only Kerberos) so Windows will no longer send your NTLM credentials to remote servers.

Method 1: Restrict Outgoing NTLM Traffic Using Group Policy

  1. Open the Local Group Policy Editor and navigate to: Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options. On the right pane, double-click the “Network security: Restrict NTLM: Outgoing NTLM traffic to remote servers” policy.

  2. Select Deny all from the drop-download list, click Apply and then OK.

  3. Reboot your computer and Windows will no longer automatically send your NTLM credentials to a remote server when accessing a share.
  4. If you need to add some remote servers to a whitelist, double-click on the “Network security: Restrict NTLM: Add remote server exceptions for NTLM authentication” policy.

  5. Add the remote servers to the list of exceptions, click Apply and then OK.

Method 2: Restrict Outgoing NTLM Traffic Using Registry Tweak

  1. Open Registry Editor and browse to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0. Right-click on the MSV1_0 key, select New -> DWORD (32-bit) Value.

  2. Name the newly created DWORD RestrictSendingNTLMTraffic, then double-click it to set the value data to 2 and click OK.

  3. If you want to add certain servers that you wish to whitelist, use the similar method to create a new DWORD named ClientAllowedNTLMServers. Double-click it and add remote servers which you allow sending NTLM credentials to.

  4. Reboot your computer to apply the changes. You can continue accessing files on remote servers which are whitelisted while stopping Windows from potentially sending your NTLM credentials over the network.

4 Ways to Turn Off / On Thumbnail Previews in Windows Explorer

April 7th, 2020 by Admin

Is there any way to disable video and image thumbnail preview in Windows 10? Thumbnail previews are useful since they let you preview Windows files without opening them, but it might slow down folder navigation process. In this tutorial we’ll show you 4 ways to turn off or on thumbnail previews in File Explorer on Windows 10 / 8 / 7.

Thumbnail previews are enabled:

Thumbnail previews are disabled:

Method 1: Disable or Enable Thumbnail Previews via Folder Options

  1. Open Windows Explorer. Go to the View tab and click the Options button in the Ribbon menu.

  2. Click on the View tab and check the option “Always show icons, never thumbnails” to disable thumbnail previews, or uncheck it to enable thumbnail previews.

  3. Click OK to save your changes.

Method 2: Disable or Enable Thumbnail Previews via Performance Options

  1. Press the Windows key + R keyboard shortcut, then type SystemPropertiesPerformance in the Run box and press Enter.

  2. The Performance Options window will open. Uncheck or check the “Show thumbnails instead of icons” option under the Visual Effects tab, and click OK.

Method 3: Disable or Enable Thumbnail Previews via Registry Editor

  1. Open Registry Editor and navigate to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced. On the right pane, double-click the DWORD value IconsOnly to modify.

  2. Change the value data to 1 to hide thumbnails or 0 to show thumbnails, and click OK.

  3. You only need to refresh your File Explorer to see the changes immediately.

Method 4: Disable or Enable Thumbnail Previews via Group Policy

  1. Open Local Group Policy Editor and browse to: User Configuration -> Administrative Templates -> Windows Components -> File Explorer. Double-click the “Turn off the display of thumbnails and only display icons” policy on the right pane.

  2. Select Enabled to turn off thumbnail previews, or select Not configured to turn on thumbnail previews. Next, click OK.

  3. You can see the changes by refreshing your folder in Windows Explorer. No need to restart Windows. After disabling thumbnail previews with group policy, it’s impossible to enable thumbnail previews using other methods above until you set this policy back to Not configured.

How to Disable “Low Disk Space” Warning in Windows 10 / 8 / 7

March 29th, 2020 by Admin

When any drive on your computer has less than 10% free disk space, a “Low Disk Space” warning will pop up at the bottom right side of the screen constantly. If this warning is not about the system (C:) drive and you want to get rid of it, here is a registry tweak to disable the annoying “Low Disk Space” warning in Windows 10 / 8 / 7.

How to Disable “Low Disk Space” Warning in Windows 10 / 8 / 7

  1. Press the Windows key + R to open the Run command box, type “regedit” (no quotes) and press Enter.

  2. This should open the Registry Editor window. Navigate to the following key:

    Right-click the blank area on the right pane and select New -> DWORD (32-bit) Value.

  3. Name the value NoLowDiskSpaceChecks and double-click it to modify. In the Value Data box, type “1” (no quotes) and click OK.

  4. Close Registry Editor and restart your computer, Windows will stop giving you low disk space warnings. If you want to turn on the low disk space notifications later, just right-click on the NoLowDiskSpaceChecks value and delete it.

How to Create System Restore Points with Command Prompt or PowerShell

January 6th, 2020 by Admin

By default, Windows will automatically create a restore point before you make a major change to the OS, such as installing a new driver or app. In order to make more frequent backup, you need to create restore points manually or schedule the task to run daily or weekly. In this tutorial we’ll show you how to create system restore points in Windows 10 using Command Prompt or PowerShell.

Part 1: Turn On System Protection

Before getting started, you need to check if system protection is enabled. Press the Windows key + R to open the Run box and type “sysdm.cpl” to open the System Properties window.

Go to the System Protection tab and click on the Configure button.

Select “Turn on system protection” and click OK.

Part 2: Disable System Restore Point Frequency

By default, Windows allows you to create only one restore point every 24 hours. To remove this limitation, open Registry Editor and navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore. Right-click on the SystemRestore key in the left pane and select New ->DWORD (32-bit) Value.

Give the new DWORD a name SystemRestorePointCreationFrequency and leave its value data to 0.

Part 3: Create System Restore Point with CMD or PowerShell

Open an elevated Command Prompt and type the following command:
wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "MyRestorePoint", 100, 7

or launch Windows PowerShell as administrator and enter:
powershell.exe -ExecutionPolicy Bypass -NoExit -Command "Checkpoint-Computer -Description "MyRestorePoint" -RestorePointType "MODIFY_SETTINGS""

Once pressing Enter, a new system restore point will be created immediately. You can use Task Scheduler to make your system run the above command to create restore points automatically during startup.

2 Ways to Run a Windows Program in Compatibility Mode

December 19th, 2019 by Admin

Your old program doesn’t work properly or can’t run at all after upgrading to Windows 10? To get some older programs to run on a modern version of Windows, you may need to turn on compatibility mode. In this tutorial we’ll show you 2 simple methods to run a Windows program in compatibility mode.

Method 1: Enable Compatibility Mode for a Program in Properties

Right-click your program’s shortcut or the .exe file, and then select Properties from the context menu.

Under the Compatibility tab, check the “Run this program in compatibility mode for” option, and then choose which version of Windows you want to use.

For example, if your program doesn’t run properly on Windows 10 but did run properly on Windows 7, then select “Windows 7” from the drop-down menu. This will force the program to run in Windows 7 compatibility mode.

Method 2: Enable Compatibility Mode for a Program Using Command Prompt

First of all, you need to know which compatibility mode you want your program to run with. The following tables show the values for different compatibility modes.

Description Value Data
Windows 8 WIN8RTM
Windows 7 WIN7RTM
Windows Vista SP2 VISTASP2
Windows Vista SP1 VISTASP1
Windows Vista VISTARTM
Windows 98 WIN98

Next, Open an elevated Command Prompt and run the following command. Replacing "D:\PSTools\PsExec.exe" with the full path of your .exe file, and “WIN7RTM” with your desired compatibility mode.

reg.exe Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "D:\PSTools\PsExec.exe" /d "WIN7RTM"

Once this is done, your program will run in compatibility mode by default.

4 Ways to Check Your Computer Uptime in Windows 10 / 8 / 7

November 26th, 2019 by Admin

Have you ever wondered how long your PC has been up and running? How can I find out when Windows was last restarted? In this tutorial we’ll show you 4 simple ways to check your computer uptime in Windows 10 / 8 / 7. This is useful when troubleshooting problems or checking the last boot time due to a power outage.

Method 1: Check Windows Uptime Using Task Manager

Press the Ctrl + Shift + Esc keyboard shortcut to start Task Manager. Go to the Performance tab and select your CPU device. You can see system uptime located toward the bottom of the window.

In the example above, my computer has been running for over three days.

Method 2: Check Windows Uptime Using PowerShell

Open Windows PowerShell and type the following command:
(get-date) – (gcim Win32_OperatingSystem).LastBootUpTime

Once pressing Enter, you’ll get the uptime information on a list format with the days, hours, minutes, seconds and milliseconds.

Method 3: Check Windows Uptime Using Network Settings

Press the Windows key + R together to launch the Run box. Type ncpa.cpl and hit Enter to open the Network Connections window.

Right-click on an active network adapter and then select Status from the popup menu.

Look for the “Duration” field which indicates how long the network has been connected for, and that’s equivalent to your computer uptime.

Method 4: Check Windows Uptime Using Command Prompt

Open Command Prompt and run this command to check your system’s last boot time.
systeminfo | find "System Boot Time"

You can subtract the last boot time with the current time to determine the number of days, hours, and minutes the computer has been running.

How to Turn off Windows Installer to Block MSI Package

November 20th, 2019 by Admin

Is there a way to prevent users from installing .msi package? Windows Installer is a background service that manages installing and uninstalling MSI-based programs. To block MSI installer, you can turn off Windows Installer using group policy or registry tweak.

Method 1: Disable Windows Installer Using GPO

  1. Open Local Group Policy Editor and expand Computer Configuration -> Administrative Templates -> Windows Components -> Windows Installer. Double-click the policy named “Turn off Windows Installer” in the right pane.

  2. Select Enabled. Click the “Disable Windows Installer” drop-down list and select Always.

  3. Click OK and restart your system to apply the changes. The next time you try to run any .msi package, you’ll get the error message “The system administrator has set policies to prevent this installation.

Method 2: Disable Windows Installer Using Registry Tweak

  1. Open Registry Editor and browse to: HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer. If the Installer subkey doesn’t exist, you have to create it first.
  2. Double-click the 32-bit DWORD DisableMSI in the right pane, and set the value to 2.

  3. Close Registry Editor and reboot Windows to make the changes take effect. If you need to enable Windows installer again, just set the value of DisableMSI to 0 and you’re done.