Posts

Showing posts from December, 2024

SOLVED: Windows Admin Center Viewing Hyper-V Server "Unable to configure either CredSSP or local PowerShell options."

Image
When your using Windows Admin Center to manage a virtual machine in Hyper-V you see the error "Unable to configure either CredSSP or local PowerShell options." You may see this error if the virtual machine has a passthrough physical hard disk drive configured. These disks are no longer recommended by Microsoft and it looks like Windows Admin Center crashes if they're in place.  While you're here - Why not check out our Windows Server Documentation and Audit Tool?

Take a screenshot of a Hyper-V virtual machine guest using WMI and Invoke-CimMethod

Image
Using the CIM cmdlets  it's possible to take a screenshot of a virtual machine with the GetVirtualSystemThumbnailImage  method.  This needs to be run on the Hyper-V host as a user with Administrator rights. $managementService = Get-CimInstance -Namespace "root\virtualization\v2" -ClassName "Msvm_VirtualSystemManagementService" ; $vm = Get-CimInstance -Namespace "root\virtualization\v2" -ClassName "Msvm_ComputerSystem" -Filter "Name=' $VirtualMachineIdentifier '"; $videoHead = Get-CimAssociatedInstance -ResultClassName "Msvm_VideoHead" -InputObject $ vm ; $xResolution = $videoHead . CurrentHorizontalResolution; $yResolution = $videoHead . CurrentVerticalResolution; $result = Invoke-CimMethod -MethodName "GetVirtualSystemThumbnailImage" -InputObject  $managementService -Arguments @{ TargetSystem = $ vm ; WidthPixels = $xResolution ; HeightPixels = $yResolution }; The dat...