Many people have asked me where they can get copies of the various PowerShell documentation scripts. To make it easier to find, I have linked to all of them in this one article. Each script has five parts:
- ReadMe file
- Unsigned script with PS1 extension
- Unsigned script with TXT extension
- Signed script with PS1 extension
- Signed script with TXT extension
Most Current Scripts:
Version 2 PVS Farm Documentation Scripts (Creates Word 2007/2010/2013 document):
Updated March 16, 2013
Version 2 XenApp 5 Farm Documentation Scripts (Creates Word 2007/2010 document):
Updated March 14, 2013
Version 3 XenApp 6 Farm Documentation Scripts (Creates Word 2007/2010/2013 document):
Updated May 4, 2013
Version 3.1 XenApp 6.5 Farm Documentation Scripts (Creates Word 2007/2010/2013 document):
Updated May 4, 2013
XenDesktop 4 Farm Documentation Scripts:
Updated March 12, 2012
________________________________________________________________________
Older Scripts
Original PVS Farm Documentation Scripts:
Updated April 13, 2012
- ReadMe file
- Unsigned script with PS1 extension
- Unsigned script with TXT extension
- Signed script with PS1 extension
- Signed script with TXT extension
Original XenApp 6.5 Farm Documentation Scripts:
Updated October 9, 2011
- ReadMe file
- Unsigned script with PS1 extension
- Unsigned script with TXT extension
- Signed script with PS1 extension
- Signed script with TXT extension
Version 2 XenApp 6.5 Farm Documentation Scripts:
Updated January 21, 2013
- ReadMe file
- Unsigned script with PS1 extension
- Unsigned script with TXT extension
- Signed script with PS1 extension
- Signed script with TXT extension
Version 3 XenApp 6.5 Farm Documentation Scripts (Creates Word 2007/2010/2013 document):
Updated January 28, 2013
- ReadMe file
- Unsigned script with PS1 extension
- Unsigned script with TXT extension
- Signed script with PS1 extension
- Signed script with TXT extension
Original XenApp 6 Farm Documentation Scripts:
Updated October 9, 2011
- ReadMe file
- Unsigned script with PS1 extension
- Unsigned script with TXT extension
- Signed script with PS1 extension
- Signed script with TXT extension
Version 2 XenApp 6 Farm Documentation Scripts:
Updated October 9, 2011
- ReadMe file
- Unsigned script with PS1 extension
- Unsigned script with TXT extension
- Signed script with PS1 extension
- Signed script with TXT extension
Original XenApp 5 Farm Documentation Scripts:
Updated October 9, 2011
- ReadMe file
- Unsigned script with PS1 extension
- Unsigned script with TXT extension
- Signed script with PS1 extension
- Signed script with TXT extension






March 21, 2013 at 1:29 pm
Great report! Can this be emailed using something like the below?
#Sends the output via email
$msg = new-object Net.Mail.MailMessage
$smtp = new-object Net.Mail.SmtpClient(‘yoursmtpserveraddress’)
$msg.From = ‘senderemailaddress’
$msg.To.Add(‘[email protected]’)
$msg.Subject = “Test Script Output.”
$msg.Body = $output
$smtp.Send($msg)
March 22, 2013 at 12:42 pm
I sent your question to my PowerShell guru friend, MBS. Here is his sanitized reply:
I recommend you send it as an attachment. Below is fully tested and working code, just update as appropriate for you.
For error-handling, I wrap the entire thing in a try-catch block since system.net.mail.smtpclient doesn’t give me a result on the Send() method but does provide an exception.
$date = get-date
$year = $date.year
$month = $date.Month
$day = $date.Day
$suffix = “{0,4}-{1,0:d2}-{2,0:D2}” -f $year, $month, $day
$var = new-object system.net.mail.smtpclient( “mail.yourdomain.com”, 25 )
$from = new-object system.net.mail.mailaddress( “[email protected]” )
$to = new-object system.net.mail.mailaddress( “[email protected]” )
$cc = new-object system.net.mail.mailaddress( “[email protected]” )
$msg = new-object system.net.mail.mailmessage( $from, $to )
$msg.Body = “See attached files for inventory report.”
$msg.Subject = “Inventory Report for ” + $suffix
$attach = new-object system.net.mail.attachment( “$pwd\XA65Farm.docx” )
$msg.Attachments.Add( $attach )
$msg.CC.Add( $cc )
$var.Send( $msg )
$attach1 = $null
$attach2 = $null
$msg = $null
$cc = $null
$to = $null
$from = $null
$var = $null
Hope this helps.
Webster
February 21, 2013 at 10:27 am
Hi,
We tested the Version 3.1 of the XenApp 6.5 Farm Documentation Scripts on our Citrix XenApp 6.5 but it dosn’t work.
We had those errors:
I think it’s probably due to the language of Microsft Office, it’s installed in French at our server and the variables like “Styles” don’t have the same names in French.
Can you publish a vesrion of the script for Microsoft Office in French.
Thank’s
February 21, 2013 at 10:33 am
support for non-english versions of Word is planned for the next version of all the scripts.
thanks
webster