Find information about the local administrator account on remote systems with PowerShell

I wanted to get some basic information about the local administrator account on all my systems.
Well, as it seemed my predecessor had a policy to manually rename the local administrator account, which is great… but he wasn’t consistent in this.
Next to that, some of our users had or have local administrator permissions.

That means they can do all kind of things with local accounts, such ad rename or disable the local administrator account.
I’ve written this small function which utilizes a CIM class to list the local administrator account, with some basic information:

Get-LocalAdministrator

Leave a Reply

Your email address will not be published. Required fields are marked *