Skip to content

Instantly share code, notes, and snippets.

@JoelAzaria
JoelAzaria / VeeamBackup.ps1
Created September 4, 2018 18:18 — forked from jbfriedrich/VeeamBackup.ps1
Create Backups with Start-VBRZip in Powershell (Veeam Backup Free Edition)
################################################################################
## 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