Hyper-V-Backup

3.7

Creates a full backup of running Hyper-V Virtual Machines.

This script will:

Create a full backup of Virtual Machine(s), complete with configuration, snapshot, and VHD files.
If the -noprems switch is used, the script will shutdown the VM and copy all the files to the backup location, then start the VM.
You should use the -noperms switch if Hyper-V does not have the
Creates a full backup of running Hyper-V Virtual Machines.

This script will:

Create a full backup of Virtual Machine(s), complete with configuration, snapshot, and VHD files.
If the -noprems switch is used, the script will shutdown the VM and copy all the files to the backup location, then start the VM.
You should use the -noperms switch if Hyper-V does not have the appropriate permissions to the backup location to do an export.
If the -noprems switch is NOT used, the script will use the built-in export function.

Important note: This script should be run on a Hyper-V host. The Hyper-V PowerShell management modules should be installed.

Please note: to send a log file using ssl and an SMTP password you must generate an encrypted
password file. The password file is unique to both the user and machine.

The command is as follows:

$creds = Get-Credential
$creds.Password | ConvertFrom-SecureString | Set-Content c:\foo\ps-script-pwd.txt

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Hyper-V-Backup -RequiredVersion 3.7

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Author(s)

Mike Galvin twitter.com/digressive

Copyright

(C) Mike Galvin. All rights reserved.

Owners

Tags

Hyper-V Virtual Machines Backup Export Permissions

Dependencies

This script has no dependencies.

Version History

Version Downloads Last updated
22.6.22 13 6/22/2022
22.6.18 14 6/18/2022
22.6.17 9 6/17/2022
22.6.11 11 6/14/2022
22.3.26 136 3/27/2022
22.2.8 100 2/9/2022
22.1.19 50 1/20/2022
21.12.28 46 12/28/2021
21.11.9 82 11/12/2021
21.11.5 18 11/5/2021
21.8.10 140 8/10/2021
21.7.2 63 7/2/2021
21.6.14 42 6/14/2021
21.6.2 23 6/2/2021
21.5.30 5 5/30/2021
20.7.13 422 7/26/2020
20.3.20 229 3/20/2020
20.2.28 34 2/28/2020
20.2.14 38 2/17/2020
4.5 145 9/4/2019
4.4 88 5/26/2019
4.3 282 6/21/2018
4.2 67 3/4/2018
4.1 16 3/3/2018
4.0 25 1/15/2018
3.9 6 1/12/2018
3.8 6 1/12/2018
3.7 (current version) 51 10/16/2017
3.6 31 10/6/2017
3.5.1 9 10/5/2017
Show less