Retrieve User Accounts From A Remote Machine

 

This PowerShell script will list the User accounts on a remote machine. Change Machine_Name with the Domain controller, SMS server or SQL server you want to enumerate.

 

PowerShell Script:

 

Gwmi Win32_UserAccount -Comp Machine_Name |

Sort-Object Name |

Format-Table FullName, Name, Domain

 

Published Sunday, October 29, 2006 5:08 PM by dhite
Filed under:

Comments

No Comments