Skip to content

Instantly share code, notes, and snippets.

@JoelAzaria
JoelAzaria / VeeamBackup.ps1
Created Sep 4, 2018 — forked from jbfriedrich/VeeamBackup.ps1
Create Backups with Start-VBRZip in Powershell (Veeam Backup Free Edition)
View VeeamBackup.ps1
################################################################################
## SMB Backup Space Credentials
################################################################################
$DriveName = "BackupSpace"
$UserName = "u123456"
$SecretPass = ConvertTo-SecureString "My Super Secret Password" -AsPlainText -Force
# Creating Credential Object to use with PSDrive
$Creds = New-Object System.Management.Automation.PSCredential($UserName, $SecretPass)
# Using PSDrive to create the drive
New-PSDrive -Name $DriveName -Credential $Creds -Root "\\backup.space\backup\Veeam" -PSProvider FileSystem