rundll32 printui.dll,PrintUIEntry /ga /n\\server\printer ref > https://www.papercut.com/kb/Main/MakingPrintersAvailableToAllUsers#easier-methods-to-deploy-printers https://www.robvanderwoude.com/2kprintcontrol.php
Category Archives: Profile Customization
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 [code language=”powershell”] $RegConnect = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey([Microsoft.Win32.RegistryHive]"CurrentUser", "$env:COMPUTERNAME") $RegCursors = $RegConnect.OpenSubKey("Control Panel\Cursors", $true) $RegCursors.SetValue("", "") $RegCursors.SetValue("AppStarting", "") $RegCursors.SetValue("Arrow", "") $RegCursors.SetValue("Crosshair", "") $RegCursors.SetValue("Hand", "") $RegCursors.SetValue("Help", "") $RegCursors.SetValue("IBeam", "") $RegCursors.SetValue("No", "") $RegCursors.SetValue("NWPen", "") $RegCursors.SetValue("Scheme Source", 0, …
Continue reading “Powershell: Set Mouse Pointer Scheme to NONE for XenDesktop VM's”
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 🙂 [code language=”css” title=”Powershell …
Continue reading “Delete shortcut pointing to a specific URL”
SetDefaultPrinter using Pinvoke and Powershell
[code language=”powershell” wraplines=”false” collapse=”false”] $code = @’ using System; using System.Runtime.InteropServices; namespace ChangeDefaultPrinter { public class Program { [DllImport("Winspool.drv", CharSet=CharSet.Auto, SetLastError=true)] private static extern bool SetDefaultPrinter(string printerName); public static bool Run(string PrinterName) { bool default_result = SetDefaultPrinter(PrinterName); return default_result; } } } ‘@ cls Add-Type -TypeDefinition $code -Language CSharp #Set Default Printer – for network …
Continue reading “SetDefaultPrinter using Pinvoke and Powershell”
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 [code language=”text” highlight=”2,4″] …
Continue reading “Force logoff XenApp 6/6.5 Session at Disconnect”
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); } } } } …
Continue reading “Programmatically remove Public Folders under Windows 7 Libraries”
Adobe Acrobat X Pro / Std and Adobe Reader Installed together in Windows 7 Virtual Desktop (Citrix/Vmware)
Download Adobe X Std and Reader together.docx
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 …
Continue reading “Powershell [System.Printing] – Add/Remove network printers – WMI alternative”
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] …