Powershell: Set Mouse Pointer Scheme to NONE for XenDesktop VM's

Why to do this? Better user experience; reduced cpu load on zero client devices like xenith compared to aero mouse scheme. Powershell Script References Hey Scripting Guy! SystemParametersInfo

Delete shortcut pointing to a specific URL

There will be cases where some users are asked to test a dev/training webapp. Few of these users tend to create shortcuts/bookmark to the dev/training webapp and still keep using the dev even after the webapp was rolled to production. Desktop guys to rescue to clean out these shortcuts or bookmarks 🙂

Force logoff XenApp 6/6.5 Session at Disconnect

Two ways to achieve this http://support.citrix.com/article/CTX126775 Computer Configuration/Administrative Templates/Windows Components/Remote Desktop Services/Remote Desktop Session Host/Session Time Limits/Set time limit for disconnected sessions The least one may set is 1 minute. But there are use cases where you may want this to happen right after disconnect. The next method achieves this. http://support.citrix.com/article/CTX127491 Configure

Programmatically remove Public Folders under Windows 7 Libraries

Download Orinal source code from Microsoft CSWin7ShellLibrary.exe Modify Source to the following class Program { static void Main(string[] args) { string[] LibArray = new string[] { “Pictures”, “Videos”, “Documents”, “Music” }; foreach (string libraryName in LibArray) { using (ShellLibrary library = ShellLibrary.Load(libraryName, false)) { string folderPath = “C:\\Users\\Public\\” + libraryName; library.Remove(folderPath); } } } } […]

Disable Particular IE add-on via registry

Step 1: Get the Class ID from IE > Tools  > Manage  Add-ons Step 2: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext\Settings\{47833539-D0C5-4125-9FA8-0819E2EAAC93}] “Flags”=dword:00000001 Note: 0 is for enable and 1 is for disable.

Powershell [System.Printing] – Add/Remove network printers – WMI alternative

Script ########################################################################### # # NAME: EP-Printer-Connction.ps1 # # AUTHOR: smulpuru # # COMMENT: Adding network printers using .Net System.Printing Class # # VERSION HISTORY: # 1.0 3/2/2012 – Initial release # ########################################################################### Add-Type -AssemblyName System.Printing $printerTXT = “\\FILESRV01\Printer_Scripts\EPprinters.txt” if(Test-Path $printerTXT) { $allRead = Get-Content $printerTXT #for citrix using sessionstate monitor – http://support.citrix.com/article/CTX127491 – #$endPointClientName will […]

Windows 7 AutoPlay Registry Settings

Reg Settings [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\AutorunINFLegacyArrival] @=”MSAutoRun” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\HandleBDBurningOnArrival] @=”MSCDBurningOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\HandleCDBurningOnArrival] @=”MSCDBurningOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\HandleDVDBurningOnArrival] @=”MSDVDArrivalDvdMaker” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\MixedContentOnArrival] @=”MSPromptEachTime” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayBluRayOnArrival] @=”MSTakeNoAction” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayCDAudioOnArrival] @=”MSPlayCDAudioOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayDVDAudioOnArrival] @=”VLCPlayDVDAudioOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayDVDMovieOnArrival] @=”MSTakeNoAction” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayEnhancedCDOnArrival] @=”iTunesImportSongsOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayEnhancedDVDOnArrival] @=”VLCPlayDVDMovieOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayMusicFilesOnArrival] @=”VLCPlayMusicFilesOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlaySuperVideoCDMovieOnArrival] @=”MSPlaySuperVideoCDMovieOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayVideoCDMovieOnArrival] @=”MSPlayVideoCDMovieOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\PlayVideoFilesOnArrival] @=”MSOpenFolder” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\ShowPicturesOnArrival] @=”MSOpenFolder” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\UnknownContentOnArrival] @=”MSOpenFolder” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers] @=”” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\AutorunINFLegacyArrival] @=”MSAutoRun” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\HandleBDBurningOnArrival] @=”MSCDBurningOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\HandleCDBurningOnArrival] @=”MSCDBurningOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\HandleDVDBurningOnArrival] @=”MSDVDArrivalDvdMaker” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\MixedContentOnArrival] @=”MSPromptEachTime” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\PlayBluRayOnArrival] @=”MSTakeNoAction” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\PlayCDAudioOnArrival] @=”MSPlayCDAudioOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\PlayDVDAudioOnArrival] @=”VLCPlayDVDAudioOnArrival” [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\PlayDVDMovieOnArrival] […]

Handling UserProfile Picture Sync In VDI (Win7 – Citrix UPM)

When a domain user changes their profile picture, the following files are created. Image is created and placed in AppData\Local\Temp\<UserDomain>.bmp Config is stored in %ProgramData%\Microsoft\User Account Pictures\<UserDomain>+<UserName>.dat This change by default does not roam with the user, but can be achieved by following the steps below. Step 1 Have Citrix UPM sync the bmp image […]