I am using powercli to create Snapshot and I have noticed that it creates two snapshots every time .
Any ideas why?
So i personally have only 2 Snapshots once i have more then 1 serviceInstance to that vCenter.
Please check with:
get-view ServiceInstance
if you see more then 1 > process this command
Disconnect-VIServer * -Confirm:$false
then connect again. and try to make new Snapshot. (but check with get-vm if you get double lines or not)
-------------------------------------------------------------------------------
So as you have a green "Write-Host" on the first line > so guessing right now that it's having something to do with that ones.
Best regards
Max
Hi.
hm could you please paste you're command syntax which you're using.
so i tested with 5.5 R1
get-vm xxxx |new-snapshot -name test
(get-vm xxx|get-snapshot |measure-object).count
i get 1 count back.
best regards
Max
Hi,
please post your script.
Frank
Get-vm XXXXX | New-Snapshot -Name Xxxxxxx. Is the command I am running and it creates two snapshots
Message was edited by: GregStz I ran the command with -Whatif and in the results of the attached pic you can see it will create two snapshots
So i personally have only 2 Snapshots once i have more then 1 serviceInstance to that vCenter.
Please check with:
get-view ServiceInstance
if you see more then 1 > process this command
Disconnect-VIServer * -Confirm:$false
then connect again. and try to make new Snapshot. (but check with get-vm if you get double lines or not)
-------------------------------------------------------------------------------
So as you have a green "Write-Host" on the first line > so guessing right now that it's having something to do with that ones.
Best regards
Max
That was it thanks a lot it had me looking for a few hours