Hello, this is my first post to the forum. I have Windows 2008 Svr and am running vCenter 5.5 I am wanting to run a script to delete clones. I know the syntax is correct because I used the same script before and it worked but that wa before I had to reimage the system. I have installed the VIToolkit and loaded the "Import System Modules" when launching the powershell.
Here is the command that fails:
Get-VM DR-Xymon| Remove-VM -DeletePermanently -Confirm:$false
I have also tried the following syntax but get the same message.
Remove-VM -VM DR-Xymon -DeletePermanently -Confirm:$false
ERROR:
Remove-VM: A parameter cannot be found that matches parameter name 'DeletePermanently'.
At C:\delete.ps1:2 char:42
+Get-VM DR-Xymon| Remove-VM -DeletePermanently <<<< -Confirm:$false
+CategoryInfo :InvalidArgument: (:) [Remove-VM], ParameterBindingException
+FullyQualifiedErrorId :NameParameterNotFound,VMWare.WimAutomation.Commands.RemoveVM
I have tried to run this script both as Admin and as a domain admin and get the same error. I doubt the command is deprecated and that I must be missing something simple. Any help would be fantastic!