Author Archives: dirk

Windows XP SP3 wsus client not updating

When you run the WSUS Client Diagnostics Tool, you get the following error at the end :

WinHttpDownloadFileToMemory(szURLDest, NULL, 0, NULL, NULL, NULL, &downloadBuffe r) failed with hr=0x80072efd

A connection with the server could not be established

In addition, your WSUS server is most likely not configured to listen on port 80.

In my case manually updating the WUAgent to v7.4 (x86 | x64) solved the problem.

I suspect the client is trying to execute a selfupdate but this fails because the WSUS server is not responding on port 80.

Invalid XSL format (or) file name.

Are you executing some wmic commands, most likely with a format command and getting the following error : Invalid XSL format (or) file name.

for example : wmic process list FULL /FORMAT:CSV

You running on Windows 7 (64-bit) or Windows 2008 R2 and have installed additional keyboards or language settings.

It seems that some wmic commands use files that are located in a localized folder:

on 32-bit : C:WindowsSystem32wbemen-US
on 64-bit : C:WindowsSysWOW64wbemen-US

If you have for example a UK keyboard layout installed, simply copy C:WindowsSysWOW64wbemen-US to C:WindowsSysWOW64wbemen-GB.

Your format command above should work fine now.

Korn Shell

enable TAB completion : set -o viraw (or use set -o vi, works on my redhat enterprise 5.7)

prompt formatting : PS1='[$USER@$HOSTNAME]:${PWD#${PWD%/*/*}/} # ‘

http://osr507doc.sco.com/en/OSUserG/_The_Korn_shell_profile_and_kshrc.html

Disable UAC for Windows Servers through Group Policy

In Computer Configuration | Policies | Windows Settings | Security Settings | Local Policies | Security Options configure the following values:

– User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode
– User Account Control: Detect application installations and prompt for elevation
– User Account Control: Turn on Admin Approval Mode

Source.

Pagefile Management for Windows Server Core

First you need to disable the automatic management:

wmic
>computersystem where name=”hostname” set AutomaticManagedPagefile=False

Next, you select where to put the pagefile and how big it should be (expressed in MB)

wmic
>pagefileset where name=”C:\pagefile.sys” set InitialSize=8192,MaximumSize=8192

More info : http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2007/12/27/page-files-in-server-core.aspx

Free eBook: Understanding Microsoft Virtualization R2 Solutions

Learn about the latest Microsoft Virtualization technologies, including Hyper-V and Windows Azure. Download Understanding Microsoft Virtualization R2 Solutions, written by industry expert Mitch Tulloch along with the Microsoft Virtualization team.

http://blogs.technet.com/b/johnbaker/archive/2011/11/04/free-ebook-understanding-microsoft-virtualization-r2-solutions.aspx