Ok, I've run that script, and it does fail when it comes to the InGroup. I don't understand why, unless it's something to do with the type of group it is in the AD (Global Security Group).

I've just run it with the /f (it took a minute to figure out to include the name of the script) and it worked properly. I tested by deleting the lpt mapping, then ran it again, and it worked again.

What's the /f do?

I've now tried without the /f and it still works. What's up with that? By the way, the script doesn't fail now either.

I don't know why - it must be something to do with the /f, but it seems to work right now.

Thanks a bunch.

[ 01. October 2002, 21:54: Message edited by: Robert Leslie ]