Dramatically Reduce Logon “Time to Desktop” By Moving From Group Policy Preferences to Powershell Logon Script 33

Update 5/16/2017: Thanks to tabularasa for some improvements to this, fixing some missing slashes among other things! In years past, logon scripts were the bane of many logon experiences due to their synchronous nature.  Beginning with Windows 7, logon scripts can be processed asynchronously.  We glossed over this fact: “Nice […]

Quick and Dirty Powershell Script to Check PVS Write Cache Sizes

Add-PSSnapin Citrix* $reg=get-brokerdesktop -MaxRecordCount 9999 -RegistrationState Registered -DesktopGroupName VDIWIN7 -adminaddress citrixdc.contoso.local $results=@(); $reg | %{ $comp=$_.hostedmachinename; $cache=dir “\$compD$.vdiskcache” -force; $results+=”$comp;$($($cache.length)/1GB)”} $path0=”D:WriteCachelatest.txt” $path1=”D:WriteCachewc_$(get-date -format `”yyyy-MM-dd_hh-mm_ss`”).txt” $results | out-file $path0 $results | out-file $path1 Using this script you can go to Excel, Data, Import from Text, select Latest.txt, pivot table. Then all you […]

Powershell Remoting Again

The plan was simple:  Create a script to remotely rename several hundred machines to match the new organizational naming standard.  This would require pulling from several asset and employee databases as well as querying AD for user properties.  “Powershell should be great!”  The data pulls work fantastic, however, the rename […]