Windows 2008 R2

Citrix policy gone after editing

Problem:

Citrix policies are gone after editing.

Solution:

Restore \\Domain\SYSVOL\domain\Policies\{UniqueID}\User\Citrix\GroupPolicy\Policies.gpf

Links:

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:

VDA Redirector melding Citrix IE

Problem:

I noticed in some environments that after installing XA650W2K8R2X64025 and HDXFlash200WX64001 for XenApp 6.5 The users are getting an popup in Internet Explorer about the VDAredirector.exe opening outside IE protected mode:

Citrix FTA, URL VDA Redirector - Security Warning

This program will open outside of Protected mode. Internet Explorer’s Protected mode helps protect your computer. If you do not trust this website, do not open this program.

Name: Citrix FTA, URL VDA Redirector Publisher: Citrix Systems, INC

Solution:

After selecting “Do not show me the warning for this program again” and clicking on “Allow” i searched the registry and found the following key :

[HKCU\Software\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\{BFFC40A2-FFE2-4E6F-B179-3641561D4FCD}] “AppName”=”VDARedirector.exe” “AppPath”=”C:\\Program Files (x86)\\Citrix\\system32″ “Policy”=dword:00000003

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\{5C1359F1-E04E-4231-9E7E-955DE92A17E1}] “AppName”=”redirector.exe” “AppPath”=”C:\\Program Files (x86)\\Citrix\\ICA Client” “Policy”=dword:00000003

Import these settings using Group Policy or using a Workspace management solution like RES or AppSense.

Links:

http://jamesscanlonitkb.wordpress.com/tag/url-vda-redirector/

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:

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:

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:

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:

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

Internet Explorer settings Security tab are greyed out

Problem:

When logging in as a new user my Internet Explorer Security Settings are greyed out, when I perform a reset everything is working perfect. I don’t use any GPO’s the change settings.

Solution:

1) Login as user with the problem.

2) Reset the internet Explorer setting in the Advanced tab.

3) Export the registry settings of the following key:
     HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\

4) Load the ntuser.dat from the default user as “Default” using Load Hive in Regedit.
     C:\Users\Default\NTUser.dat

5) Edit the Exported .reg file and use find and replace
        Find: HKEY_CURRENT_USER
        Replace: HKEY_Users\Default

6) Import the changed settings.

7) Unload the hive for Default.

Now when a new user logs in the Internet Eplorer settings are correct.

Links:

http://discussions.citrix.com/topic/346840-internet-explorer-11-security-tab-grayed-out/

 

The application was unable to start correctly (0xc01500002). ConfigWizard.exe

Problem:

After installing Provisioning Server 7.1 and you want to start the Configuration Wizard you receive the following error: “The application was unable to start correctly (0xc01500002)”

Error configwizard

Solution:

When looking at the Event Log you will see the following error message:

Activation context generation failed for “C:\Program Files\Citrix\Provisioning Services\LicHelp.dll”. Dependent Assembly Microsoft.VC90.CRT,processorArchitecture=”amd64″,publicKeyToken=”1fc8b3b9a1e18e3b”,type=”win32″,version=”9.0.21022.8″ could not be found. Please use sxstrace.exe for detailed diagnosis.

 

This means the program needs the Visual C++ 2008 Redistributable Package. Download and install it and you will be able to open the Configuration Wizard.

Download link for Visual C++ 2008 SP1 Redistributable Package: http://www.microsoft.com/en-us/download/details.aspx?id=2092

Links:

Failed to connect to data source

Problem:

I was receiving the following error: Failed to connect to data source ‘The broker service reported an error. See the event log for more information.’  in the event viewer ( Event ID 5) when using Desktop Director, and the latency wasn’t displayed.

Latency

Solution:

It looks like the performance counters are corrupted, I repaired them using the following command lodctr /r.

Links:

http://technet.microsoft.com/en-us/library/cc727160.aspx

 

 

 

 

Update ADMX files for Windows 8.1 and Windows 2012 R2 on Windows 2008 R2 domain

Problem:

You would like to manage Windows 8.1 and Windows 2012 R2 through GPO from Windows 2008 R2 domain without updating your domain.

Solution:

Download and install the Administrative Templates (.admx) for Windows 8.1 Update and Windows Server 2012 R2 Update and copy the definitions to your central store.

\\Domain\SYSVOL\Domain\Policies\PolicyDefinitions

To see what’s new: Group Policy Settings Reference for Windows and Windows Server

Links:

http://www.microsoft.com/en-us/download/details.aspx?id=43413&WT.mc_id=rss_alldownloads_all

 

SQL setup won’t start

Problem:

The SQL setup won’t start when you double click setup.exe, when executing setup.exe from command prompt you will receive the following error:

ERROR: Runtime error: This method explicitly uses CAS policy, which has been obsoleted by the .NET Framework. In order to enable CAS policy for compatibility reasons, please use the NetFx40_LegacySecurityPolicy configuration switch. Please see http://go.microsoft.com/fwlink/?LinkID=155570 for more information.

Error message

Solution:

The solution is to remove .Net Framework 4.5

After removing you can install SQL.