#I am using Quest AD CmdLets for getting a list of Servers
http://www.quest.com/powershell/act...erver.aspx#Gets servers with Windows 2003
Get-QADComputer -OSName *2003* | ForEach-object `
{
#check their ping
if (Test-Connection $_.name -quiet)
{
$c=$_.name
"++++++++++$c++++++++"
[string]$strComputer = $c
#getti active directory services interfaces object
$computer = [ADSI]("WinNT://" + $strComputer + ",computer")
#getting all local users with their description
$computer.psbase.children | Where-Object { $_.psbase.schemaclassname -eq 'user' } | Format-Table Name, Description -autoSize
#trap for any errors
trap {'{0}' -f $_.Exception.Message; continue}
}
}