This project is read-only.

Get-LocalGroupMembers

Get-LocalGroupMembers([string]$computername, [parameter(mandatory=$true)][string]$group)
This function gets the members of the local group with ADSI.

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


Returns
an array of member names.

ex)
Get-LocalGroupMembers -group Administrators;

# for remote operation
Get-LocalGroupMembers -computername $env:computername -group Administrators;

Last edited Mar 2, 2013 at 12:21 PM by Tom__S, version 3

Comments

No comments yet.