Quantcast
Channel: PVS | Carl Webster
Viewing all articles
Browse latest Browse all 59

Using My Citrix PVS PowerShell Documentation Script with Remoting

$
0
0

I needed to figure out how to run my latest PVS documentation script without having Microsoft Word installed on the PVS server.  This turned out to be much simpler than I thought it would be.  There are only four steps involved.

  1. From the computer to run the script, start a PowerShell session as Administrator
  2. Add-PSSnapin McliPSSnapin
  3. Mcli-Run SetupConnection -p Server=PVSServerName
  4. .\PVS_Inventory_V2.ps1 -verbose

The results of my session on my Windows 7 VM against my Windows Server 2008 R2 PVS 6.1 server VM:

PS C:\webster> $env:computername
WIN7
PS C:\webster> Add-PSSnapin McliPSSnapin
PS C:\webster> Mcli-Run SetupConnection -p Server=PVS61
Run succeeded.
PS C:\webster> .\PVS_Inventory_V2.ps1 -verbose
VERBOSE: checking for McliPSSnapin
VERBOSE: Getting PVS version info
VERBOSE: Build PVS farm values
VERBOSE: Setting up Word
VERBOSE: Create Word comObject. If you are not running Word 2007, ignore the next message.
VERBOSE: The object written to the pipeline is an instance of the type "Microsoft.Office.Interop.Word.ApplicationClass"
from the component's primary interop assembly. If this type exposes different members than the IDispatch members,
scripts written to work with this object might not work if the primary interop assembly is not installed.
VERBOSE: Running Microsoft Word 2010
VERBOSE: Validate company name
VERBOSE: Validate cover page
VERBOSE: Company Name: Webster's Lab
VERBOSE: Cover Page : Motion
VERBOSE: User Name : administrator
VERBOSE: Farm Name : PVS61Farm
VERBOSE: Title : Inventory Report for the PVS61Farm Farm
VERBOSE: Filename : C:\webster\PVS61Farm.docx
VERBOSE: Load Word Templates
VERBOSE: Create empty word doc
VERBOSE: disable spell checking
VERBOSE: insert new page, getting ready for table of contents
VERBOSE: table of contents
VERBOSE: set the footer
VERBOSE: get the footer and format font
VERBOSE: Footer text
VERBOSE: add page numbering
VERBOSE: return focus to main document
VERBOSE: move to the end of the current document
VERBOSE: Processing PVS Farm Information
VERBOSE: Processing Security Tab
VERBOSE: Processing Groups Tab
VERBOSE: Processing Licensing Tab
VERBOSE: Processing Options Tab
VERBOSE: Processing vDisk Version Tab
VERBOSE: Processing Status Tab
VERBOSE: Processing Sites
VERBOSE: Processing Site PVS61Site
VERBOSE: Processing Security Tab
VERBOSE: Processing Options Tab
VERBOSE: Processing vDisk Update Tab
VERBOSE: Processing Servers in Site PVS61Site
VERBOSE: Processing Server PVS61
VERBOSE: Processing General Tab
VERBOSE: Processing Network Tab
VERBOSE: Processing Stores Tab
VERBOSE: Processing Stores for server
VERBOSE: Processing Store Store
VERBOSE: Processing Options Tab
VERBOSE: Processing Logging Tab
VERBOSE: Processing Server Tab on Advanced button
VERBOSE: Processing Network Tab on Advanced button
VERBOSE: Processing Pacing Tab on Advanced button
VERBOSE: Processing Device Tab on Advanced button
VERBOSE: Processing Bootstrap files
VERBOSE: Processing Bootstrap files for Server PVS61
VERBOSE: Processing General Tab
VERBOSE: Processing Options Tab
VERBOSE: Processing all vDisks in site
VERBOSE: Processing vDisk Update Management
VERBOSE: Processing all device collections in site
VERBOSE: Processing Collection PVS61Collection
VERBOSE: Processing General Tab
VERBOSE: Processing Security Tab
VERBOSE: Processing Auto-Add Tab
VERBOSE: Processing each collection process for each device
VERBOSE: Processing all site views in site
VERBOSE: Processing all PVS Farm Views
VERBOSE: Processing Stores
VERBOSE: Processing Store Store
VERBOSE: Processing General Tab
VERBOSE: Processing Servers Tab
VERBOSE: Processing Server PVS61
VERBOSE: Processing Paths Tab
VERBOSE: Finishing up Word document
VERBOSE: Set Cover Page Properties
VERBOSE: Update the Table of Contents
VERBOSE: Save and Close document and Shutdown Word
PS C:\webster>

That is it, that is all there is to it.

Hope this help.

Webster

The post Using My Citrix PVS PowerShell Documentation Script with Remoting first appeared on Carl Webster.

Viewing all articles
Browse latest Browse all 59

Trending Articles