Category Archives: Windows

Windows tips, howtos, scripts

Windows: Howto terminate a RDP Session remotely by command line

Hi,

when a RDP sessions hangs there are multiple ways to destroy it. The command line way:

Identify the RDP Session ID. Use quser


C:\>quser /Server:YourWindowsServer
 USERNAME              SESSIONNAME        ID  STATE   IDLE TIME  LOGON TIME
 winuser               rdp-tcp#6           2  Active          3  24.09.2014 22:26

Continue reading Windows: Howto terminate a RDP Session remotely by command line

Advertisment to support michlstechblog.info

Windows: Automatic Update does not install updates

Hi,

a Customer calls me that his Windows Clients won’t install some Updates and the boxes does not submit their update states to the WSUS Server which runs at Windows Update Server 3 SP2.

At the clients I checked the Windows Update Logfile C:\Windows\WindowsUpdate.log and found many errors like these:

Continue reading Windows: Automatic Update does not install updates

Windows: Fatal error occurred while trying to sysprep the machine

Hi,

if use some Image technologies to deploy your Windows installation and your new images are based on older ones sysprep or you have installed Internet Explorer 10, sysprep eventually can fail.

This occurs when sysprep /generalize is applied 9 times against an Windows installation. The counter is stored in the registry.
Continue reading Windows: Fatal error occurred while trying to sysprep the machine

Windows: Backup with diskshadow.exe

Hello,

Windows Server 2008 and alter version are shipped with a tool called diskshadow. This program can be used to create snapshots of disks and expose them as Folder or as DriveLetter means files are in a consistent state and you can save openfiles.

Some examples. Starting diskshadow. It accept a  parameter /l  for a logfile. And a Parameter /s for a (diskshadow) script file to execute. diskshadow has the same “look and feel” like diskpart 🙂  and start with a prompt:

C:\Windows\system32>diskshadow
Microsoft DiskShadow version 1.0
Copyright (C) 2013 Microsoft Corporation
On computer:  windev,  12.06.2014 20:28:33
DISKSHADOW>

First set diskshadow in defined state with reset

DISKSHADOW> reset
Continue reading Windows: Backup with diskshadow.exe

VMware: PowerCli Scripts in native Powershell

Hi,

when you want to execute your PowerCli script you have to start the “VMware vSphere PowerCLI” shell before. But, for example Schedule Tasks, it whould be nice that the script load the PowerCli environment itself. Then you simply have to start your script like this

%Systemroot%\System32\WindowsPowerShell\v1.0\powershell.exe -File YourPowerCliScript.ps1

To load the PowerCli script Environent in your powershell script add this lines at the top of your script.
Continue reading VMware: PowerCli Scripts in native Powershell