Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Friday, 14 October 2011

wiismui.dll not found when adding components to Windows Server 2003

Happened when I tried to add\remove Windows Components to Windows Server 2003 R2 x64, after it was deployed and after Service Pack 2 was applied to it. Needed to add Application Server -> Internet Information Server (IIS).
Everything went OK but then Windows Components Wizard complained that it couldn't find wiismui.dll - asked me to insert the compact disk labeled 'Windows Server 2003 Standard x64 Edition CD-ROM' and still didn't find the file when I did browse... to the location of i386 folder.

The solution was to download the executable for the Service Pack 2, unpack it and point to it, instead of original i386. TO unpack it - run it in command prompt with /x option

The location for "Windows Server 2003 Service Pack 2 for x64 Editions" is:
http://www.microsoft.com/download/en/details.aspx?id=10018

UPDATE: when the above didn't help I had to copy the contents of original i386 folder from Windows 2003 Server DVD, renaming all files - prepending w. So all names started with w. Then pointed the wizard to resulting folder. For some files had to do some other renaming, i.e. saved appsrv.ms_ as appsrv64.ms_

UPDATE2: On another VM, same problem. Helped to have i386 folders from 32 bit version, 64 bit version with and without service packs.

Friday, 30 September 2011

Some tips on reclaiming the disk space on windows

Watch this space. Some tips on how to free up some space on your hard drive if you had fairly recent Windows OS installed (Vista, Windows 7, Windows Server 2008, etc)

%WINDIR%\SoftwareDistribution\Download - delete whatever is older than 10 days there. Later files may still be needed by ongoing Windows Update

%WINDIR%\Installer\$PatchCache$ - mostly safe to delete.

DO NOT however delete whatever is in the root of %WINDIR%\Installer !!

download msizap utility which comes in Windows Installer SDK - http://msdn.microsoft.com/en-us/library/windows/desktop/aa370834(v=vs.85).aspx - and run it with g option, i.e. msizap g - it will delete orphaned windows installer files. Other options of this utility may be risky - general rule is that messing with windows installer files that are in your windows folder may break your system and you will need to reinstall it.
More info on msizap: http://msdn.microsoft.com/en-us/library/windows/desktop/aa370523(v=vs.85).aspx

Friday, 17 June 2011

Message box for user from a DOS prompt

Approach 1:
Works in Windows XP onwards:
msg * "Hello, Cruel World!"

Approach 2:
works in Windows NT, 2000, XP. Doesn't work in Vista onwards, requires messenger windows service to be running:
net send %USERNAME% "Blah"

Approach 3:
1) Create a file messagescript.vbs:
<script type="text/vbscript">
MsgBox "your text here"
</script>

2) Run the commandwscript /nologo messagescript.js