ServerHome
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
ASKER
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