powershell


Updating Your Boot Device Manager (BDM) Partition with Provisioning Services 7.9 2

Provisioning Services has included support for a Boot Device Manager (BDM) Partition since version 7.0. There are some use cases where it is preferable to choose the BDM partition, and it is simple to do when provisioning machines using the XenDesktop Setup Wizard within the Provisioning Services Console. One limitation […]


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 […]