Skip to content

Commit

Permalink
Create Hyper-VAutoCheckpoint
Browse files Browse the repository at this point in the history
Creates a checkpoint on Hyper-V server, can be run as scheduled task
  • Loading branch information
De1337NY authored Oct 1, 2020
1 parent 1803479 commit c22df53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Servers/Hyper-VAutoCheckpoint
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Automatically creates a checkpoint on a Hyper-V Server
$VmName = "SERVERNAME"
$Date = Get-Date -Format "MM/dd/yyyy HH:mm"
$CheckpointName = 'AutoCheckpoint ' + $Date

Get-VM -Name $VmName | checkpoint-VM -SnapshotName $CheckpointName

0 comments on commit c22df53

Please sign in to comment.