Category Archives: Windows

Windows 10 – Hide ‘Personal’ OneDrive from explorer window

When you or your client is using OneDrive for Business it might be hard to explain the difference between ‘OneDrive’ and ‘OneDrive for Business’ in the Explorer view, or you just want to remove it from the list.

To do this you have to make a change in the Windows registry.

# Windows+R type; regedit
# Browse to \HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\
# Look for the Key with the value ‘OneDrive’ or ‘OneDrive – Personal’ it probally will be key {018D5C66-4533-4307-9B53-224DE2ED1FE6}.
# Now go to HKEY_CLASSES_ROOT\CLSID and find the {018D…} key, change the ‘System.IsPinnedToNameSpaceTree’ from 1 to 0.
# Save and your are done.

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:

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.

rd /s c:\$Recycle.Bin

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

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 When you go over to IP settings you won’t see the anywhere.

To resolve this issue:
run -> cmd
typ: route delete
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.