Posts

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...

VMware Workstation now free for commerical use

Image
As a user of VMware Workstation it was interesting this week that VMware workstation is now free even for commercial use. https://blogs.vmware.com/cloud-foundation/2024/11/11/vmware-fusion-and-workstation-are-now-free-for-all-users/ The latest version of VMware Workstation Pro for Windows is currently 17.6.1 and can be download from the Broadcom portal. https://support.broadcom.com/group/ecx/productfiles?subFamily=VMware%20Workstation%20Pro&displayGroup=VMware%20Workstation%20Pro%2017.0%20for%20Windows&release=17.6.1&os=&servicePk=524543&language=EN  While you're here - Why not check out our Windows Server Documentation and Audit Tool?

SOLVED: Compile the vSphere Management SDK WSDL for C#.NET leads to CS8078: An expression is too long or complex to compile

Image
If you want to generate a .NET assembly to use the vSphere Management SDK to manage a vSphere environment you may run into difficulties.  VMware (now Broadcom) dropped support for the vSphere Management SDK for .NET stating that developers should use "modern programming languages" such as Java, or pyvmomi and govmomi for Python/Go. https://knowledge.broadcom.com/external/article?legacyId=87965 If you want to use the vSphere Management SDK (which is a SOAP web service) you need to import the WSDL into .NET. Ideally you want to compile this into a .NET library of the version of the framework you're using. However this web service is extremely large and can cause several issues. Having spent a day or two on this I decided to document the process. While you're here why not check out our VMware documentation tool - XIA Configuration Server? Create the VimService.cs File Access the VMware SDK site https://developer.vmware.com/sdks Find the vSphere Management SDK. Extract th...

Windows Server 2025 Domain and Functional Levels domainFunctionality and forestFunctionality attributes

Image
The Active Directory domain and functional levels have changed for Windows Server 2025 with a new functional level being added. However the documetnation for the 3.1.1.3.2.26 domainFunctionality and 3.1.1.3.2.27 forestFunctionality attributes have not been updated. https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adts/6dd88965-8feb-4369-ae7e-075985da8071 0 DS_BEHAVIOR_WIN2000 1 DS_BEHAVIOR_WIN2003_WITH_MIXED_DOMAINS 2 DS_BEHAVIOR_WIN2003 3 DS_BEHAVIOR_WIN2008 4 DS_BEHAVIOR_WIN2008R2 5 DS_BEHAVIOR_WIN2012 6 DS_BEHAVIOR_WIN2012R2 7 DS_BEHAVIOR_WIN2016 The new value  10 DS_BEHAVIOR_WIN2025 Notice there is a gap of two numbers for Server 2016 and Server 2019 that didn't have an update to the domain and forest functional levels.  While you're here - Why not check out our  Active Directory Documentation Tool ?

Enable-ClusterStorageSpacesDirect : Feature S2D is not supported on node 'NodeName'. Run cluster validation, including the Storage Spaces Direct tests, to verify the configuration

When you run the  Enable-ClusterStorageSpacesDirect cmdlet you may received the error  Feature S2D is not supported on node ' NodeName '. Run cluster validation, including the Storage Spaces Direct tests, to verify the configuration. This can occur if the operating system on the machine is Standard Edition. Storage spaces direct is only supported on Azure Stack HCI and data center editions of Windows Server.

SOLVED: The requested security information is either unavailable or can't be displayed

Image
When using Microsoft Cluster manager you see the error "The requested security information is either unavailable or can't be displayed" on the Cluster Permissions tab. This can occur if the following registry value is missing or corrupt. HKEY_LOCAL_MACHINE\Cluster\Security Descriptor REG_BINARY