CmdID / PowerShell / Cmdlets / Uninstall
Uninstall-HgsServer
Removes a local node from a Host Guardian Service and from the domain. Windows Server PowerShell reference
From the Windows Server PowerShell reference 6 parameters Its page in the reference
Parameters
-ForceForces the command to run without asking for user confirmation.-HgsDomainCredentialSpecifies the Active Directory domain administrator credentials for the primary HGS server.-LocalAdministratorPasswordSpecifies the password for the local administrator account when the computer is no longer a domain controller.-RestartIndicates that a reboot is initiated automatically after running this command.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-WhatIf, -wiShows what would happen if the cmdlet runs.