#75955 - 2003-07-19 12:29 AM
Re: Error in expression.!
|
Viggen
Starting to like KiXtart
Registered: 2002-03-22
Posts: 110
|
I have tried this: shell "dsquery group OU=Some_school,OU=Schools,DC=school,DC=mycompany,DC=com -scope subtree -name Students"
And that works. The problem is that I get the result on screen and I need the script to work with the result.
I have tried the following: shell "dsquery group OU=Some_school,OU=Schools,DC=school,DC=mycompany,DC=com -scope subtree -name Students > C:\Temp\query.txt"
Thought I'd do a Readline after that, but again the command works only at the console. If I try to let kix do it I get an dsquery error stating that '>' is an unknown command, so it seems that it doesn't get passed to dos correctly?? strange...
note. What i'm trying to do is search AD to see if a specific group exist. If it does... fine If it doesn't... create it I thought to myself that "hehe... there's a builtin tool for this in win2k3, why not be lazy and use it" But NO... not a snowballs chance in hell that it should work ![[Big Grin]](images/icons/grin.gif) [ 18. July 2003, 12:36: Message edited by: Viggen ]
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 1198 anonymous users online.
|
|
|