Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [CmdletBinding()]
  2. param(
  3.     [Parameter(Mandatory,ValueFromPipeline)][string]$VM
  4. )
  5.  
  6. process {
  7.     $ErrorActionPreference = "Stop"
  8.     write-output $VM
  9.     $collection = @()
  10.     try {
  11.         Write-Output $desktop
  12.         $collection += get-vm $desktop
  13.     }
  14.     catch {
  15.         #$collection += "$desktop does not exist"
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement