I have hit a weird problem...

I am trying to list all of the members of the local group Administrators on a NT workstation (brycetest) in a different domain(garts) then myself.

here is the code using the ADSI OpenDSObject method.

code:

$group = GetObject("WinNT:").OpenDSObject("WinNT://garts/brycetest/administrators", "garts\<userid>", "<password>", 1)

? "@error:@serror"
for each $member in $group.members
? $member.name
? "@error:@serror"
next

? "@error:@serror"


Using the OpenDSObject I am only able to show local accounts that are in the Administrators not any of the domain accounts.

Using the following method I am able to display all members of Administrators.

code:

use "\\brycetest\ipc$$" /user:'garts\<username>' /password:<password>
$group = GetObject("WinNT://garts/brycetest/administrators")
? "@error:@serror"
for each $member in $group.members
? $member.name
? "@error:@serror"
next
use "\\brycetest\ipc$$" /d

I am at a loss....

Bryce

[ 07 September 2001: Message edited by: Bryce ]