You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Join a Windows Server 2016 Core server to a domain.
Added 3 domain groups to the local administrators group.
Moved the server back into a workgroup.
Ran Get-LocalGroupMember -Group Administrators
Expected behavior
It should return the group members as it would prior to moving to a workgroup and just display the unresolved SIDs for the old domain. Then ideally allow you to reference those unresolved SIDS for Remove-LocalGroupMember.
Actual behavior
Throws an exception:Failed to compare two elements in the array
Prerequisites
Steps to reproduce
Join a Windows Server 2016 Core server to a domain.
Added 3 domain groups to the local administrators group.
Moved the server back into a workgroup.
Ran Get-LocalGroupMember -Group Administrators
Expected behavior
It should return the group members as it would prior to moving to a workgroup and just display the unresolved SIDs for the old domain. Then ideally allow you to reference those unresolved SIDS for Remove-LocalGroupMember.
Actual behavior
Error details
See: https://github.com/PowerShell/PowerShell/issues/2996
Environment data
Visuals
See: #2996
The text was updated successfully, but these errors were encountered: