Change network connection category using PowerShell

Note: This blogpost is also posted on my personal blog –



I recently came across an issue with PSRemoting to a Windows 7 XenDesktop VM. I discovered remoting was disabled on the remote system because one of the network connections was a Public connection (it was the PVS connection). To change this using PowerShell is quite easy in Windows 8 or higher: the Set-NetConnectionProfile command is available to do just that. However, in Windows 7 this is not so easy. Even though PowerShell 4 was installed, the command was absent. So I decided to create my own functions to facilitate this, based on this script by Microsoft: LINK. This script utilizes the Network List Manager to make the change.  Read more

Our partner Denamik has released Denamik LoadGen 2.3

Our partner Denamik has released a new version of Denamik LoadGen. The execution of massive load and stress tests is now easier than before. You can now record your own user action scripts from within LoadGen, and setup LoadBots to handle the execution of these scripts. LoadGen allows you to manage LoadBots to create remote sessions and evaluate your IT environment under stress. A built-in reporting facility will give you instant results.

What is new in LoadGen 2.3:

  • Rewrite of installation and activation of LoadBots
  • Rewrite of internal functions of the DUAF language to speed up interaction with XenApp desktops
  • Introducing the possibilities to add your own libraries to DUAF scripts

Feel free to check out Denamik LoadGen 2.3, it’s free up to 15 virtual users.

Hibernation fails in Windows 7

A while ago my Windows 7 laptop suddenly refused to go into Hibernation. The strange thing was that the whole process of saving memory to the hibernate file seemed to work correctly. The screen would go black and there was lots of disk activity. Then after the disk activity finished the system would return to the logon screen.

A Google on this issue learned that the most likely cause was a driver preventing the system from going into hibernation. Using the cmdline “powercfg -DEVICEQUERY wake_armed” we can check if there are any devices that can wake the system. Another useful parameter is –ENERGY which generates an html report file.

But in my case this lead to nothing.

Read more

Speed up Windows 7 Resume by 20%

UPDATE: See this new article by Helge Klein

Recently Helge Klein wrote a blog titled How to Speed Up Your Windows 7 Boot Time by 20%. He does this by disabling the graphical animation that Windows 7 displays while booting.

After applying this tweak I noticed that a resume from hibernation (which I do far more often than a full boot) still showed the graphical animation (and wasn’t speed up).

So how to disable the animation while resuming?

Read more

Use Windows 7 as Virtual Router

Sometimes it’s just handy to use you’re laptop as a Wifi Hotspot. There are a lot of applications to do that, but the ones that actually work cost a bit. So why not use the built in utility of Windows 7? This is how you can do that.

  1. Open a command prompt with administrative privilges
  2. Enter the following command: netsh wlan set hostednetwork mode=allow ssid=WIN7 key=password This will create a wireless access-point with SSID of “WIN7”
  3. Open Networks and Sharing Center and enable the newly created wireless connection.
  4. Share the interface with an internet connection to the newly created wireless connection.


Now you can start the interface with the following command: netsh wlan start hostednetwork

System Process PID 4 is listening on port 80

I wanted to save the SHSH signatures from my iPhone before updating to iOS 5.01. I started Tiny Umbrella but it showed an error indicating that there’s already a process listening on port 80:

Cannot Start TSS Service | DO NOT TRY RESTORING YOUR DEVICE!!! | System(PID:4) must be killed!!

I verified this using netstat (netstat –aon | find /I “LISTENING” | find /I “:80”):

netstat -aon | find /i "LISTENING" | find /i ":80"


Read more

BatStat – The SBC / VDI laptop accu status tool

While running a Citrix / XenApp or Terminal Server Published Desktop on a Windows laptop, the user is unable to check the laptop’s battery status. This may lead to a serious inconvenience when the battery runs out: the laptop will shut down and the user’s session will be terminated / disconnected. We have encountered this inconvenience on some of our projects, and developed a way to solve it. Our solution involves two elements: RES and BatStat.

Read more

Windows 7 x64: SignTool Error: Signtool requires CAPICOM version or higher.

After running recent updates on my Windows 7 machine the following error occurres:

SignTool Error: Signtool requires CAPICOM version or higher. Please
        copy the latest version of CAPICOM.dll into the directory that contains
        SignTool.exe. If CAPICOM.dll exists, you may not have proper
        permissions to install CAPICOM.

Number of files successfully Signed: 0
Number of warnings: 0
Number of errors: 1

The solution to fix this error:

Problem solved…

Daniel Nikolic

Windows could not finish configuring the system… Sysprep fail

An annoying error this morning. After prepping a laptop, running sysprep with the audit mode the following error occurres:

Windows could not finish configuring the system. To attempt to resume configuration, restart the computer.
The error could be fixed with hotfix well how do we get it on the laptop:
  1. When the error: Windows could not finish configuring the system. To attempt to resume configuration, restart the computer. Press SHIFT – F10. Don’t press OK.
  2. At this point you can do basicly anything
  3. My advice is to start services.msc and start all of the services which are marked: Automatic
  4. Start compmgmt.msc, enable the administrator user, or create an extra user with administrator rights
  5. Start explorer.exe
  6. You can now Switch the user
  7. Log in with the admin user and start the hotfix

Read more


When receiving the following error while installing Windows Vista or 7: 0x80070017
Just burn your DVD at a lower speed (4x).

Daniel Nikolic