Get-LocalUsers

function global:Get-LocalUsers([string]$computername)
This function gets the local users with ADSI.

Parameters
Name Necessary Summary
computername No target computer. If it's not inputted, the target will be the local computer.


Returns
an array of the local user names.

ex)
Get-LocalUsers;

# for remote operation
Get-LocalUsers -computername $env:computername;

Last edited Mar 2, 2013 at 11:23 AM by Tom__S, version 3

Comments

No comments yet.