Home » registry

Tag: registry

Hide Libraries and Network in Microsoft Office (x86) AND Windows Explorer (x64)

Problem:

We had hidden the Libraries and Network links in the explorer bar on our Citrix XenAPp 6.5 servers, but for some reason they continued to appear inside Office and some other applications.

Turns out the common element was 32bit apps were all still able to see libraries and Network locations etc particularly when saving files in Word or excel.

W7_Libraries_default_view

 

(screenshot shown above from windows 7 device, its exactly the same view we want to restrict however in terminal server / windows 2008 r2)

Solution:

There are two registry locations for libraries and network etc, 64bit and 32bit, edit them all as follows, be sure to assign permission to these keys as administrator first!

64bit Favorites key is:
HKEY_CLASSES_ROOTCLSID{323CA680-C24D-4099-B94D-446DD2D7249E}ShellFolder
Attributes: a9400100

64Bit Libraries key is:
HKEY_CLASSES_ROOTCLSID{031E4825-7B94-4dc3-B131-E946B44C8DD5}ShellFolder
Attributes:b090010d (hide)
Attributes:b080010d (default – show)

64bit Network key is:
HKEY_CLASSES_ROOTCLSID{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}ShellFolder
Attributes: B0940064

HIDE 32 bit verison of the same for 32bit apps
32bit Favorites key is:
[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeClassesCLSID{323CA680-C24D-4099-B94D-446DD2D7249E}ShellFolder]
“Attributes”=dword:a9400100

32Bit Libraries key is:
[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeClassesCLSID{031E4825-7B94-4dc3-B131-E946B44C8DD5}ShellFolder]
“Attributes”=dword:b090010d

32bit Network key is:
[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeClassesCLSID{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}ShellFolder]
“Attributes”=dword:b0940064

XenApp6.5_LibrariesHidden

Default user registry keys for citrix User Profile manager or Appsense Hive in and Out

These are the keys we imported and exported before finally using Appsense Personalisation

These were used in conjunction with a mandatory profile. Remember that a mandatory profile will not work well with I.E or user based certificates. There is another post here about changing the user to look like a ‘non mandatory’ user for the duration of their session so certificates work.

COMMON SETTINGS

“HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindows Messaging Subsystem”

“HKEY_CURRENT_USERSoftwareMicrosoftExchange”

“HKEY_CURRENT_USERSoftwareAdobe”

“HKEY_CURRENT_USERSoftwareMicrosoftInternet Explorer”

“HKEY_CURRENT_USERSoftwareMicrosoftOffice”

“HKEY_CURRENT_USERSoftwareMicrosoftShared Tools”

 

DESKTOP SETTINGS

“HKEY_CURRENT_USERPrinters” “HKEY_CURRENT_USERSoftwareMicrosoftActive Setup”

“HKEY_CURRENT_USERSoftwareMicrosoftIdentityCRL”

“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced”

“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAutoComplete”

“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerBitBucket”

“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerCIDOpen”

“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerCIDSave”

“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerCLSID”

“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerControlPanel”

“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerDiscardable” “HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIcons” “HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerMenuOrder”

“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerModules” “HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerNewShortcutHandlers” “HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerRunMRU”

“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerSearchPlatform” “HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerSessionInfo”

“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerStreamMRU”

“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerStreams”

“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerStuckRects2”

“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerTaskband”

“HKEY_CURRENT_USERSoftwareMicrosoftWindowsShellNoRoam”

“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerDontShowMeThisDialogAgain” “HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerTypedPaths”

“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerUserAssist”

“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settings5.0”

“HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindows”

Appsense Hiving for users Printers but default not saving?

Situation:

we had migrated our desktop from Xenapp 5.0 on w2008 sp2 (non r2) to XenApp6.5 2008 R2. This included an upgrade to Appsense 8.3 and introduction of Appsense personalisation.

Older applications still left on the old desktop needed the printer settings from the new desktop.

We had to set our new Appsense EM to hive the printer settings to the users home drive. (which was the old way)

Then on the old desktop (which was already hiving) the printers would be imported.

Hiving HKCUPrinters

Printing directly from the old desktop to the printers in question already worked, so it was not driver or server related.

 

Problem:

The old desktop and applications were getting the printers, but some apps would not get any printers and the default printer was not being set correctly.

Solution:

You also need to hive out

HKCUSoftwareMicrosoftWindows NTCurrentVersionWindows

KeyName: Device

Type: REG_SZ

Data: \serverprinter,winspool,Ne00:

Older applications that ccould only see the default printer then worked, as did the default setting of the printer

(Thats assuming that the provided default printer was of course installed, its drivers available etc)

 

Path Examples:

Home Drive

“\servershare\usernameHIVEPATHRegistryPrinters.%domain%__%username%”

“\servershare\usernameHIVEPATHRegistrySoftware{;bks}Microsoft{;bks}Windows NT{;bks}CurrentVersion{;bks}Windows.%domain%_%username%”

 

 

 

App-V Registry Keys to force offline operation

Setting the following keys will allow app-v packages to be installed from the packages MSI (if the option is ticked for said package when sequencing) this should then allow for the packages to be run in offline / disconnect mode indefinitely.

MSI Install Example:

msiexec.exe /i “app-v msi package” sftpath=”path to matching package sft file”

Registry keys (taken from vbscript attached below)

HKEY_LOCAL_MACHINE,”SOFTWAREWow6432NodeMicrosoftSoftGrid4.5ClientNetwork”,”LimitDisconnectedOperation”,0
HKEY_LOCAL_MACHINE,”SOFTWAREWow6432NodeMicrosoftSoftGrid4.5ClientNetwork”,”Online”,0
HKEY_LOCAL_MACHINE,”SOFTWAREWow6432NodeMicrosoftSoftGrid4.5ClientConfiguration”,”AutoLoadTriggers”,0
HKEY_LOCAL_MACHINE,”SOFTWAREWow6432NodeMicrosoftSoftGrid4.5ClientConfiguration”,”AutoLoadTarget”,0
HKEY_LOCAL_MACHINE,”SOFTWAREWow6432NodeMicrosoftSoftGrid4.5ClientConfiguration”,”RequireAuthorizationIfCached”,0
HKEY_LOCAL_MACHINE,”SOFTWAREWow6432NodeMicrosoftSoftGrid4.5ClientConfiguration”,”AllowIndependentFileStreaming”,0
HKEY_LOCAL_MACHINE,”SOFTWAREWow6432NodeMicrosoftSoftGrid4.5ClientPermissions”,”ToggleOfflineMode”,0

App-V Change Tray Visibility (taken from vbscript attached below)

HKEY_LOCAL_MACHINE, “SOFTWAREWow6432NodeMicrosoftSoftGrid4.5ClientCustomSettings”
HKEY_LOCAL_MACHINE,”SOFTWAREWow6432NodeMicrosoftSoftGrid4.5ClientCustomSettings”,”TrayVisibility”,2
objReg.GetStringValue

Citrix Keys to prevent citrix thin wire session detection from ‘logging off’ the published App-V application (taken from vbscript attached below)

HKEY_LOCAL_MACHINE,”SYSTEMCurrentControlSetControlCitrixwfshellTWI”,”LogoffCheckSysModules”, strValue
objReg.SetStringValue HKEY_LOCAL_MACHINE,”SYSTEMCurrentControlSetControlCitrixwfshellTWI”,”LogoffCheckSysModules”, strValue & “,sftdcc.exe”

VBScript File (rename from .doc to .vbs)

appv_disconnected

Windows 2008 R2 change "My Computer" to be %username% on %computername%

You cannot edit this as the administrator, (only trustedinstaller is given write access) so you must take ownership of the parent registry key/s first, then assign your accounts rights to write to the key.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{20D04FE0-3AEA-1069-A2D8-08002B30309D}]
@=”Computer”
“LocalizedString”=hex(2):25,00,75,00,73,00,65,00,72,00,6e,00,61,00,6d,00,65,00,
25,00,20,00,6f,00,6e,00,20,00,25,00,63,00,6f,00,6d,00,70,00,75,00,74,00,65,
00,72,00,6e,00,61,00,6d,00,65,00,25,00,00,00

Add Desktop Shortcuts like "My computer" and "Network" for Windows 2008 and Windows 2008 R2 and in Remote Desktop

Add Desktop Shortcuts like “My computer” and “Network” for Windows 2008 and Windows 2008 R2

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel]

My Computer:{20D04FE0-3AEA-1069-A2D8-08002B30309D

Libraries: {031E4825-7B94-4dc3-B131-E946B44C8DD5}

Control Panel: {5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}

User Profile: {59031a47-3f72-44a7-89c5-5595fe6b30ee}

Network: {F02C1A0D-BE21-4350-88B0-7367FC96EF3C}

Windows Search: {9343812e-1c37-4a49-a12e-4b2d810d956b}

Public Folder: {4336a54d-038b-4685-ab02-99bb52d3fb8b}

My Network Places: {208D2C60-3AEA-1069-A2D7-08002B30309D}

Internet Explorer: {871C5380-42A0-1069-A2EA-08002B30309D}

Appsense EM 8.2 Snippet (txt renamed to doc)

Windows_Desktop_ShowIcons_EM_Snippet_8.2.216.0