Skip to content

Remove-ADAccountasLocalAdministrator #26

@untiltheshout

Description

@untiltheshout

Hello,

I am trying to delete a user account that was put on the servers by a gpo but has now been deleted from AD. I have tried:

Remove-ADAccountasLocalAdministrator.ps1 -Computer C85194 -Trustee S-1-5-21-791979409-2170594181-2350697253-311158

Remove-ADAccountasLocalAdministrator.ps1 -Computer C85194 -Trustee WinNT://S-1-5-21-791979409-2170594181-2350697253-311158

Both run and appear to have run successfully but after checking computer... the SID is still there.

Any thoughts?

Bill

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions