Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [CmdletBinding()]
- param(
- [Parameter(Mandatory,ValueFromPipeline)][string]$VM
- )
- process {
- $ErrorActionPreference = "Stop"
- write-output $VM
- $collection = @()
- try {
- Write-Output $desktop
- $collection += get-vm $desktop
- }
- catch {
- #$collection += "$desktop does not exist"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement