Hello,
I'm trying to list the group members of the local groups on member servers and workstations in the domain. I'm trying every permutation of
$group = [ADSI]"WinNT://mycomputer/Administrators"
$group.members()
that I can think of. But I only ever retrieve arrays with no members, blank members, or the name of the group itself. I clearly have the syntax wrong. I realize it is a beginner's question, but could someone please post the proper syntax so that I can retrieve the list of members that are in the local Administrator's group on a member server?
(I have googled, read the TFM book, and even the ADSI scripting SAPIEN book, but clearly my lack of experience with scripting is causing me to miss something very basic).
Thanks in advance!
Jim