Here's all of the message:

quote:

ERROR : Error in expression.!
Script: C:\Temp\Users.kix
Line : 350

This is line 350:
$dsq = shell "dsquery group OU=Some_school,OU=Schools,DC=school,DC=mycompany,DC=com -scope subtree -name Students"

The script worked perfekt until I added this line to check for a group in AD.

I have tried with "%COMSPEC /C" --> no result...
I have tried to do it manually in the console --> works perfectly

If i comment out the line the script runs smooth again

note.
This is done on an Win2k3 DC

My forehead is starting to hurt and the wall I'm sitting next to is starting to get dents, from me banging the head against it.

Can some one tell me what the heck I'm doing wrong?
(With the line... not the wall/head [Wink] )