Knowledge Base

Windows 2008

Fatal error occurred while trying to sysprep the machine

Problem:

Fatal error occurred while trying to sysprep the machine

Solution:

This error shows that sysprep was run multiple times on the machine, please open a command prompt, type:slmgr /dlv to view how many times of remaining Windows Activation count. Generally speaking, to sysprep the image on a single computer for multiple times, you need to configure the

Microsoft-Windows-Security-SPP |SkipRearm to 1 in the unattend.xml file. I am assuming whether you configure the Microsoft-Windows-Security-Licensing-SLC |SkipRearm to 1 instead of SPP, the SLC setting is deprecated and should not be used.

As a work around of this problem, please type: regedit in the Start Search box to open Registry Editor, set the value ofGeneralizationState under HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus to7, then run sysprep again. If the same issue still persists, please unistall the MSDTC and Reinstall it, then try the sysprep.

To uninstall MSDTC :- msdtc -uninstall

To reinstall MSDTC :- msdtc -install

Links:

http://social.technet.microsoft.com/Forums/en/w7itproinstall/thread/425bd101-8a87-488c-b2e2-9f2f8113a0d9 http://support.microsoft.com/kb/929828

Clean WINSXS folder

Problem:

Windows 2008 R2 and Windows 7 are using a lot of space, most of this space is used by the WINSXS folder. WINSXS folder actualy doesn’t use this space but it hardlinked to DLL files of the system.

Solution:

After installing a Servicepack you can cleanup the folder using the following command: DISM.exe /online /Cleanup-Image /spsuperseded

Links:

Change the computer icon name Windows

Problem:

Some people like to see the computer name on the Computer icon on there desktop or in the start menu.

Username on Computername

Solution:

  1. Open the Registry using Regedit.
  2. Go to HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}
  3. Make the user you use Owner and give it Full Control
  4. Edit the LocalizedString with the following: %username% on %computername%.
  5. Close the registry and logoff

When you logon the Computername will be changed.

Link:

VAMT 3.0 keeps crashing at startup

Problem:

When starting VAMT 3.0 you receive an MMC error: “MMC has detected an error in a snap-in and will unload it”

Solution:

Despite Microsoft doesn’t mention .Net framework 3.5 requirements you need to install .Net Framework 3.5, this will fix the problem.

Links:

Delete Specific Printer Connection

Problem:

When migrating a print driver or moving to another print server you would like to delete existing connections to the printer.

Solution:

Create a Log-on or Logoff script to remove the printer connections based on print server or based on Print driver:

Based on driver:

strComputer = “.”
Set objWMIService = GetObject(“winmgmts:” _
    & “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2”)

Set colInstalledPrinters =  objWMIService.ExecQuery _
    (“Select * from Win32_Printer Where DriverName = ‘Printdriver'”)

For Each objPrinter in colInstalledPrinters
    objPrinter.Delete_
Next

Where ‘Printdriver’ is the name of the print driver when looking at the Print server properties.

Based on print server:

strComputer = “.”
Set objWMIService = GetObject(“winmgmts:” _
    & “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2”)

Set colInstalledPrinters =  objWMIService.ExecQuery _
    (“Select * from Win32_Printer Where ServerName like ‘Printserver'”)

For Each objPrinter in colInstalledPrinters
    objPrinter.Delete_
Next

Where ‘Printserver’ is the name of the old print server.

Links:

Removing System Reserved Partition

Problem:

You like to delete the System Reserved partition in Windows.

Follow the below steps:

  1. Open a elevated command prompt and execute the following command:
    bcdboot C:\Windows /s C:
  2. Mark the C: Partition as Active within the Disk Management
  3. Reboot the machine
  4. Delete the System Reserved partition
  5. Reboot

Now the System Reserved partition is gone and you can Extend the C drive using a Third-party tool.

Links:

Google embedded streetview shows Grey screen

Problem:

When connecting to a Windows 2008 server using ICA and watching a site which using embedded streetview, the streetview section is grey and only lets you show the controls for streetview.
When connecting using RDP the problem doesn’t occur.

Solution:

After searching I found that disabling speedscreen will do the trick.

Configure SpeedScreen Browser Acceleration for a farm

  1. Depending on the version of XenApp you have installed, from the Start menu, select All Programs > Citrix > Management Consoles and choose Access Management Console or Delivery Services Console.
  2. In the left pane, select the farm.
  3. From the Action menu, select Modify farm properties > Modify all properties.
  4. From the Properties list, select Server Default > SpeedScreen > Browser Acceleration.
  5. Deselect the SpeedScreen Browser Acceleration check box to disable speedscreen browser acceleration.

Now the streetview images are displayed and everything is working.

Links:

http://support.citrix.com/proddocs/topic/xenapp5fp-w2k8/ps-sf-browser-speed-screen-acceleration-config-v2.html

 

Update is not applicable to your computer

Problem:

When having you receive the following message: “Update is not applicable to your computer” when installing a hotfix which you downloaded from the Microsoft site and you defenitly know your system is supported

Update not applicable

Solution:

First we need to extract the MSU file and then use the pkgmgr to install the hotfix:

  1. Extract the Windows6.1-KB2740374-v2-x64.msu:
    expand -f:* “C:\Windows6.1-KB2740374-v2-x64.msu” %TEMP%
  2. Use pkgmgr to install:
    pkgmgr /n:%TEMP%\Windows6.1-KB2740374-v2-x64.xml

Install PKGMGR

 Link: http://technet.microsoft.com/en-us/library/cc749465(v=ws.10).aspx

banner