HyperV-Backup-Utility icon indicating copy to clipboard operation
HyperV-Backup-Utility copied to clipboard

False error message when VM specified with a -Prefix

Open nkomarov opened this issue 3 months ago • 0 comments

I want to back up a specific VM, I give its full name using a command with parameters:

powershell.exe -ExecutionPolicy Bypass -File "F:\WindowsImageBackup\scripts\HyperV-Backup-Utility-251014\Hyper-V-Backup.ps1" -BackupTo "F:\Hyper-V\VM-Backups" -Prefix "BackupTestVM01" -CaptureState CaptureSavedState -Compress -Sz -Keep 14 -L "F:\WindowsImageBackup\logs" -LogRotate 30

I receive an error message in red telling me following.

2025-10-15 16:40:20 [ERROR] With a VM list file configured, -AllVMs and -Prefix will have no effect.

After that, the VM is backed up successfully.

But I haven't configured any VM file list!

I believe, there should only be an error message shown if there was no VM found with this prefix found or if no Prefix has been specified at all.

nkomarov avatar Oct 15 '25 15:10 nkomarov