Link to home
Start Free TrialLog in
Avatar of ServerHome
ServerHomeFlag for Gambia

asked on

Powershell script to reverse Snapshots

Hello

Is there any way to use a PowerShell script to reserve a snapshot.

We need to do some tests on a VM during the night, and if the tests fail, we want to run a script to reserve a snapshot.

The snapshot name will always be the same, I don’t want to add vCenter credentials in the script as plain text.

I have found same examples on the internet, but there not what I need.

Please don’t provide just links.

Is this possible?

Thank You

JL
SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ServerHome

ASKER

Hello

Thank You for your reply.

@hanccocka: I mean reserve the VM to a snapshot

@Seaton007: I found that one also, but that one don’t explain how to send credentials to vCenter(or host) without adding them on the script.

Thank You

JL
I did not get a 100% answered question, but I will close this.
You cannot RESERVE (protect) LOCK a snapshot, you would need to copy the VM with the Snapshot.