BRONZE PARTNER:
BRONZE PARTNER:
Industry News:

| |
 |
 |
 |
| PowerShell script to list Local Groups on a remote computer |
 |
|
|
By: Ying Li
Posted On: 8/31/2007
Here is a PowerShell script to list Local Groups on a remote computer
This article was Previously posted on Ying Li's Blog
$strComputer = "XYZ"
$computer = [ADSI]("WinNT://" + $strComputer + ",computer") $computer.name
$group = $computer.psbase.children |where{$_.psbase.schemaclassname -eq "group"}
foreach ($member in $group.psbase.syncroot) {$member.name}
|
 |
 |
 |
|
|