Hello, we have an issue where an old VMM server is still appearing as a managedcomputer in SCVMM 2016 Update Rollup 3. Although it doesn't appear in the UI, it does when PS queried.
PS > Get-SCVMMManagedComputer | ? computername -eq vmm-server
StateString : Responding
RoleString : Not associated
State : Responding
VersionState : UpToDate
VersionStateString : Up-to-date
MarkedForDeletion : False
Name : vmm-server.domain.com
MostRecentTaskID : ba88968b-22aa-42b4-bba2-xxxxxxxxxx8
MostRecentTaskUIState : Failed
MostRecentTask : Remove infrastructure server
FullyQualifiedDomainName : vmm-server.domain.com
FQDN : vmm-server.domain.com
ComputerName : vmm-server
Description : Virtual Machine Manager Library Files
AgentVersion : 3.2.8292.0
Role : NotAssociated
UpdatedDate : 09/12/2015 11:54:25
ComplianceStatus :
ServerConnection : Microsoft.SystemCenter.VirtualMachineManager.Remoting.ServerConnection
ID : ba88968b-22aa-42b4-bba2-xxxxxxxxxx8
IsViewOnly : False
ObjectType : AgentServer
IsFullyCached : True
I tried to remove this and this is what came up.
PS > Remove-SCVMMManagedComputer -VMMManagedComputer $orphan -Credential $cred
Remove-SCVMMManagedComputer : vmm-server.domain.com is not an infrastructure server in VMM. Add it as aninfrastructure server and try the operation again. (Error ID: 20560, Detailed Error: )
At line:1 char:1
+ Remove-SCVMMManagedComputer -VMMManagedComputer $orphan -Credential ( ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ReadError: (:) [Remove-SCVMMManagedComputer], CarmineException
+ FullyQualifiedErrorId : 20560,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.RemoveManagedComputerCmdlet
Anyone knows how to remove this?
--
Alex