Digressive / HyperV-Backup-Utility

Flexible Hyper-V Backup Utility
https://gal.vin/posts/vm-backup-for-hyper-v/
MIT License
127 stars 40 forks source link

Username and password for network storage?! #36

Closed metanodotto closed 2 months ago

metanodotto commented 3 months ago

I'm not able to set user and password for my NAS.

I'm using the ps1 script with these settings: -BackupTo \mynasip\backup-server2024\hyperv -Keep 3 -L \ mynasip\backup-server2024\hyperv\log

obviously I get this error :

`Add-Content : Username or password wrong. In C:\bcks\Hyper-V-Backup.ps1:234 car:17 Add-Content -Path $Log -Encoding ASCII -Value "$Evt"

I read about smtp username and password but nothing about credentials to network shared folder.

Can someone help me?

Thanks!!

MilanStarLink commented 2 months ago

Hi, you can use New-PSDrive to mount a shared network directory. I think the better option is to use iSCSI if the NAS allows it.

Digressive commented 2 months ago

Update 24.08.29 has support for SMB authentication.