Skip to content

Error on windows server 2022 #5

@hvdcgkl

Description

@hvdcgkl

Hi,

the script works on server 2012 R2 but i have this error on server 2022, could you help me ?

Get-VHD : Cannot validate argument on parameter 'Path'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
At C:\Tools\Old\Get-HyperVReport.ps1:2226 char:83

  • ... $vmDiffDisk = Get-VHD -ComputerName $VMHostItem -Path $parentPath
  •                                                           ~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Get-VHD], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Vhd.PowerShell.Cmdlets.GetVHD

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions