I have four Hyper-V 2019 hosts, I normally set the default virtual hard disk path to the first CSV, however these all give this error when trying to set the path, has anyone seen this?
It the same in the GUI and i'm running PoSh as administrator and the path does exist.
PS C:\> Set-VMHost -VirtualHarddiskPath 'C:\ClusterStorage\CSV1'Set-VMHost : Failed to modify service settings.
The default virtual hard disk path cannot be changed to 'C:\ClusterStorage\CSV1': One or more arguments are invalid (0x80070057) Ensure the path is valid and the
directory exists. If the directory is remote, ensure that it is properly configured for sharing, and that the current user and computer accounts have read/write access.
At line:1 char:1
+ Set-VMHost -VirtualHarddiskPath 'C:\ClusterStorage\CSV1'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-VMHost], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.SetVMHost