Two people reported an issue with running the new scripts. My friend Michael B. Smith helped me find and fix the error. The PVS, XenApp 5, XenApp 6 and XenApp 6.5 scripts have all been updated. The XenDesktop 5 script currently in development has the fix.
This code snippet is the problem:
#Find out if winword is running in our session
[bool]$wordrunning = ((Get-Process 'WinWord' -ea 0)|?{?_.SessionId -eq $SessionID}) -ne $null
if ($wordrunning)
{
Write-Host "Please close all instances of Microsoft Word before running this report."
exit
}
{?_.SessionId -eq $SessionID}
should be
{$_.SessionId -eq $SessionID}
http://carlwebster.com/where-to-get-copies-of-the-documentation-scripts/
Sorry for the inconvenience.
Webster







March 14, 2013 at 3:20 pm
I use these script weekly to help document customers sites love to see new features all the time. Great job.
Donovan Sobrero