Posts Tagged ‘Windows 2008’

Error “WindowsUpdate_80244019” or “WindowsUpdate_dt000” during update your Windows.

The problem in majority of the cases is related to the wrong DNS loading. The problem itself very often happens when you are behind several routers (like one from internet connection vendor and one your WiFi router) and until you don’t flush your current DNS configuration you can try anything but you won’t be successful.
What’s really funny that’s so easy – just run the command prompt with admin rights, then run the following command:

ipconfig /flushdns

make a coffee and get back to the WU heaven 🙂
All other applications are able to deal with that – WU not. From my point of view this is a bug and I am just surprised it’s nowhere documented.

You could also register the DNS in command prompt with:

ipconfig /registerdns

and check your current DNS settings with:

ipconfig /displaydns

Hope this helps!

RDP default port number.

Recently, I had problems with connection to the Windows 2008R2 server. I could ping it but I cannot connect to it using RDP. I’ve checked many obvoius remote settings but overlooked another – someone changed remote desktop default port in the registry. I wasted a huge amount of time to find it.
Anyway, the simplest way to checked if RDP is listening on default port is to use netstat command and to change the default port for RDP – run regedit and go to this key:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

Find the “PortNumber” subkey and notice its value – it should be 00000D3D, hex for (3389), the default RDP port. After changing this value, the restart is needed.

Categories: MS Windows, OS Tags: , ,

Finding the HP product number of any of your HP servers using PowerShell.

You can easily find the HP product number of any of your HP server by looking on the server itself or on the warranty card. The HP product number is nice to have if you want to easily find that date your HP server will be out of warranty. This product number is no longer mandatory if you are using warranty check tool, but in some case you will still need it.
If your HP server was built using HP SmartStart (or the newer HP Intelligent Provisioning) the product number could be found in the windows registry:


Here is how to use PowerShell to read this information:

$reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine', "NameOfServer")
$regkey = $reg.OpenSubkey("HARDWARE\\DESCRIPTION\\System\\BIOS")
$SystemSku = $regkey.GetValue("SystemSku")

This could easily be part of a small script that would allow you to get more information about your servers:

$Servers = Get-content "C:\server_list.txt"

foreach($Server in $Servers){
#Read HP product number from registry
$reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine', $Server)
$regkey = $reg.OpenSubkey("HARDWARE\\DESCRIPTION\\System\\BIOS")
$SystemSku = $regkey.GetValue("SystemSku")

#Get Manufacturer, Model, SerialNumber from WMI query
$HardwareInfo = Get-WmiObject win32_computersystem -ComputerName $Server
$SerialNumber = Get-WmiObject win32_bios -ComputerName $Server

#Create a CSV file with Inventory information
$Server + "," + $HardwareInfo.Manufacturer + "," + $HardwareInfo.Model + "," + $SerialNumber.SerialNumber.Trim() + "," + $SystemSku | Add-Content C:\inventory.csv

Remove-Variable REG, regkey, SystemSku
Remove-Variable HardwareInfo, SerialNumber, Server
Remove-Variable Servers

-put all your HP servers names (or IP addresses) running MS operating systems in c:\server_list.txt
-run the script (Copy/Paste) saved in a PS1 file
-output will be in C:\inventory.csv

It turns out that above script works even if your HP server was installed without HP SmartStart or HP Intelligent Provisioning. Moreover – the script works with every HP laptop/PC with MS Windows.

Microsoft .NET Framework 4 fails to install due to “The setup cannot run in compatibility mode” error.

2012-06-25 14 comments

I was having this issue trying to install the full version of .NET v4.0 on Windows 2008R2. No matter what I tried: changing compatibility modes, running as administrator – I’ve got “The setup cannot run in compatibility mode” error. I received the message whether I tried to install OR uninstall it (Using add/remove programs).

Here is how you could resolve this issue:
1. Download the full installer (dotNetFx40_Full_x86_x64.exe) from here Microsoft site.
2. Extract it into a new folder using WinRAR or 7-Zip, for example “c:\downloads\dotNetFx40_Full_x86_x64\”.
3. Once extracted, you need to edit 3 files, all “ParameterInfo.xml”. Following from the example folder in step two, the three files are located:


EDIT ALL three files, do NOT edit one and copy it to the other folders – they are different and this won’t work. In each file, you’re looking for a block of code that looks like this:

<BlockIf DisplayText="#(loc.Blocker_in_OS_Compatibility_Mode)" ID="AppCompatMode">
<IsInOSCompatibilityMode />

Remove these these 5 lines from each file to disable the compatibility mode check. Remember to save.

4. Once that is done, open a DOS prompt in Administrator Mode and run the setup utility located in the “dotNetFx40_Full_x86_x64” folder created above. You need to tell it what architecture you’re on. If you’re running 32-bit Windows, use:

setup /x86

If you’re using 64-bit windows, use:

setup /x64

It should bring up the installer and continue normally without receiving the compatibility mode error. I suspect other installers suffering from this error might be able to be modified in a similar way.

Desktop icons in Windows 2008 R2.

Have you noticed that you cannot add the desktop icons (Computer, Network, etc.) to your Windows Server 2008 R2 desktop? Am I the only one who is annoyed by this? If not, here’s how to get them back.

First, you’ll have to go into Server Manager and access the Features section. In Features, you will select to add a feature and then select the Desktop Experience feature. Once added, you will have to reboot the server. That’s right! A reboot is required to add icons to your desktop.

Now this is really insane. Think about it. You can add your own icons for shortcuts on the desktop, but to get Computer and Network, you have to add the entire Desktop Experience feature. What a ridiculous decision Microsoft made here.

Now that I’ve expressed my suffering, we shall move on.

Once you’ve rebooted the server, simply right-click on the Desktop and select Personalize. From here, you can add the desktop icons you desire as usual.

That’s should be all.

Enable multiple RDP connections per user in Windows Server 2008.

In Windows Server 2003 you could have multiple Remote Desktop session with the same user. In Windows Server 2008 this is not possible by default. If you login with the same user account the first session will be taken over by second session.

There are several (at least 4 methods to change this), here are two of them:
Method 1.
Allow multiple Remote Desktop sessions per user by changing a registry key.
1. Click Start, then Run and type regedit.
2. Check out the following registry key:


3. If the fSingleSessionPerUser value doesn’t exist, create a new DWORD value named fSingleSessionPerUser.
4. Open the fSingleSessionPerUser value. The possible values for this setting are as follows:
– 0x0 Allow multiple sessions per user
– 0x1 Force each user to a single session

Method 2.
1. Click Start, then Run and type tsconfig.msc.
2. You should untick the Restrict each user to a single session option.

That’s should be all.

Categories: MS Windows, OS Tags: , , ,