Category Archives: Windows

Windows 10 PC / Laptop goes randomly to sleep mode.

When your experience your PC or laptop going into sleep mode randomly there a lot of things that could cause that. What resolved the issue for me is this:

# Open command prompt as administrator and run the following command:
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0" /v Attributes /t REG_DWORD /d 2 /f

# Restart the ‘explorer.exe’ process via task manager.

# Go to your energy settings and edit the power plan you are currently using. Choose ‘change advance power settings’ and go to the sleep section.
Expand the ‘System unattended sleep timeout’ and change the 2 minutes to 0, or whatever.

Windows – Open HKEY_CURRENT_USER as different user

It can happpen that you would need to edit the registery for a user, but regedit is disabled for the userprofile.

There is an option to open registery settings for another user as the administrator;

#1 Log in as Administrator and open regedit.
#2 Select HKEY_USERS and then go to ‘File -> Load Hive
#3 Browse for the NTUSER.Dat file from the user you want to edit the registery from. (make sure the user is not logged on)
#4 Enter the key you want to open, for example: HKEY_CURRENT_USER.
#5 When done, close / delete the hive.

Windows 2008 R2 – Check for open files and folders

For different reasons you want to check which files or folders are open on your Windows 2008 R2 (Terminal server).

To do this you need to log on as an administrator.
Go to:
Start -> Administrative Tools -> Share and Storage management

In the Action pane select ‘manage open files’

You will see a list of open files and folders.

Windows 2008 R2 – How to remote all temporary internet files on terminal server at once

In some cases you want to delete all temporary internet files for every user on a terminal server at once.

CTRL-ALT-DEL IT company made a tool for that ‘ICSweep’ it comes an their CAD_Utilitypack and is freeware.

You can download the pack here:
http://www.ctrl-alt-del.com.au/files/CAD_UtilPack.zip

Windows – Empty all recycle bins at once

To delete all the recycle bins at once you have to do the following:

Open command prompt ‘cmd’ as administrator.

Type:
rd /s c:\$Recycle.Bin
Type:
y

All recycle bins will now be emptied!

Windows 2008 R2 – How to install a Windows IIS server

In this ‘how to’ I will describe how to install a Windows 2008 R2 server with IIS.
I am using a Dell R210 II with a raid 1 configuration where I will install Windows 2008 R2 Enterprise edition (not needed).

After you’ve installed Windows2008 R2 make sure you download and install all the latest updates via Windows update.

After you installed all the updates we need to add the Webserver (IIS) role to the server.
Open the server manager (Start -> All Programs -> Administrative Tools -> Server Manager).
And go to Roles -> Add Roles -> Select Web Server (IIS) and click on Next.

On the select services screen select the services you wish to install.
In this example I will install the default checked options and I also check:
– Application Development, exclude ServerSide Includes
– FTP Server
Click Next and then Install.

Now when you go to http://localhost/ you should see the default page of IIS.

Windows 2008 – Default gateway 0.0.0.0

When on a Windows 2008 server you open command prompt and type: ipconfig /all you see there are 2 default gateways and

that the first is 0.0.0.0. When you go over to IP settings you won’t see the 0.0.0.0 anywhere.

To resolve this issue:
run -> cmd
typ: route delete 0.0.0.0
Now go back to your IP settings and verify your wanted default gateway is listed and type ipconfig /all again in cmd.
You will see that it’s working as intended again 🙂

Windows 8 – Turn of automatic window arrangement.

If you want to prevent windows from begin automatically arrange when moved to the edge of the screen you need can easily

change this.
Press the windows button and typ ‘snap’ choose ‘settings’ on click on ‘Turn of automatic window arrangement’.

Then on the next screen you need to scroll down and select ‘Prevent windows from….’, then press apply, ok.

Windows – How to make your USB drive bootable

# Start -> Run -> type ‘diskpart’ without quotes

# Once it’s loaded type:
list disk
This will display the current connected disks.

# now type:
select disk # (you need to replace # with the disk number you want to select).

# type:
clean

# type:
create partition primary

# type
select partition 1
press enter and then type ‘active’
# We are now going to format the drive, so make sure you have selected the right disk and that there is no data you want to save on the USB drive.
type”
format fs=fat32 quick

# Now assign a drive letter to the formatted drive, typ:
assign and then type exit

You now need to copy the installation files for i.e. windows 8.

You are done, now plug in the USB drive in any laptop / pc and boot it from the USB drive.

Windows backup – VSS Backup fails

When for instance a VSS backup fails you can make sure the ‘VSS Writer’ for VSS backup is running.

# Open command and type:
vssadmin list writers

# Now if you see for instance
“Microsoft Exchange Writer” Status [7]: Failed

# Now if you reset the Exchange store service the writer should and will go to Status [1] Stable.

Every writer has it’s own purpose, you should be able to figure out which of the writers is letting your backup fail.