I've tried everything in this thread and a lot more - without succes. Trying to save backup to a share.
Even creating a network share on the same server I'm running the backup from with full rights - nothing works.
Only backing up to c:\ works - that is really strange.
Of course the solution nshurupova suggests will work, but it is not very elegant, and will take up a lot of space.
I using Windows 2012 R2 servers and Veeam Free 9.5. From the console everything works fine - only powershell is the problem.
Do you have any new suggestions, about how to solve this?
The script I'm currently using.
Add-PSSnapin VeeamPSSnapIn
$username = "domain\username"
$PlainPassword = "password"
$SecurePassword = $PlainPassword | ConvertTo-SecureString -AsPlainText -Force
$Path = "\\hyperv04\veeamtest"
$cred = new-object System.Management.Automation.PSCredential -argumentlist $username, $SecurePassword
New-PSDrive –Name B -PSProvider FileSystem -Root $Path -Credential $Cred
$Folder = “B:\”
$VM = Find-VBRHvEntity -Name VM -Server localhost
Start-VBRZip -folder $Folder -Entity $VM