DSQuery

Batch, ASP, JScript, Kixtart, etc.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
jshaper
Posts: 2
Joined: Fri Dec 10, 2010 8:17 am

DSQuery

Post by jshaper » Fri Dec 10, 2010 9:37 am

Hello, I am creating a batch script for dsquery and am having some trouble....I trieddsquery group domainroot -name %1 | dsget group -members -extend | dsget user -samidThis batch is going to get called via an excel vb script my problem is that once it gets to a group the dsget user -samid errors out. Any ideas?

User avatar
jshaper
Posts: 2
Joined: Fri Dec 10, 2010 8:17 am

DSQuery

Post by jshaper » Fri Dec 10, 2010 9:37 am

Hello, I am creating a batch script for dsquery and am having some trouble....I trieddsquery group domainroot -name %1 | dsget group -members -extend | dsget user -samidThis batch is going to get called via an excel vb script my problem is that once it gets to a group the dsget user -samid errors out. Any ideas?

User avatar
jvierra
Posts: 13301
Joined: Tue May 22, 2007 9:57 am
Contact:

DSQuery

Post by jvierra » Fri Dec 10, 2010 10:04 am

I believe you have to fo it this way:

dsquery group domainroot -name %1 | dsget group -members | dsget user

Locked