VMware Cloud Community
GregStz
Contributor
Contributor
Jump to solution

PowerCli 5.5 Release 1 snapshots

I am using powercli to create Snapshot and I have noticed that it creates two snapshots every time .

Any ideas why?

0 Kudos
1 Solution

Accepted Solutions
Madmax01
Expert
Expert
Jump to solution

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

View solution in original post

0 Kudos
6 Replies
Madmax01
Expert
Expert
Jump to solution

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

0 Kudos
JimKnopf99
Commander
Commander
Jump to solution

Hi,

please post your script.

Frank

If you find this information useful, please award points for "correct" or "helpful".
0 Kudos
GregStz
Contributor
Contributor
Jump to solution

Get-vm XXXXX | New-Snapshot -Name Xxxxxxx. Is the command I am running and it creates two snapshots

0 Kudos
GregStz
Contributor
Contributor
Jump to solution

Remote Desktop Connection_2014-08-07_19-36-11.png

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

0 Kudos
Madmax01
Expert
Expert
Jump to solution

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

0 Kudos
GregStz
Contributor
Contributor
Jump to solution

That was it thanks a lot it had me looking for a few hours

0 Kudos