From where and how are you running the script ?
The PowerCLI prompt, a GUI....
And which PowerShell version are you running this in ?
Do a $psversiontable.
Btw I discovered a flaw in my original script, I just updated the code above.
From where and how are you running the script ?
The PowerCLI prompt, a GUI....
And which PowerShell version are you running this in ?
Do a $psversiontable.
Btw I discovered a flaw in my original script, I just updated the code above.