Hyper-V-Backup

20.3.20

This script will create a full backup of virtual machines, complete with configuration, snapshots/checkpoints, and VHD files.
This script should be run on a Hyper-V host and the Hyper-V PowerShell management modules should be installed.

To send a log file via e-mail using ssl and an SMTP password you must generate an encrypted password file.
The password file is uniq
This script will create a full backup of virtual machines, complete with configuration, snapshots/checkpoints, and VHD files.
This script should be run on a Hyper-V host and the Hyper-V PowerShell management modules should be installed.

To send a log file via e-mail using ssl and an SMTP password you must generate an encrypted password file.
The password file is unique to both the user and machine.
To create the password file run this command as the user and on the machine that will use the file:

$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

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deloy 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 Contact: mike@gal.vin / twitter.com/mikegalvin_

Copyright

(C) Mike Galvin. All rights reserved.

Owners

Tags

Hyper-V Virtual Machines Full Backup Export Permissions Zip History

Functions

Get-DateFormat Write-Log OptionsRun

Dependencies

This script has no dependencies.

Version History

Version Downloads Last updated
20.3.20 (current version) 148 3/20/2020