Keep in mind that many "DOS" commands only work with double quotes! I've gotten into the habit of using single quotes for nearly all Kix strings, so embedding double quotes into commands are not an issue. Also - you should try this when building Shell or Run commands:
 Code:
$Cmd = 'xcacls "c:\program files\infostrait" /g "Domain\Werknemers":f;f /E'
'running: ' $Cmd ?
Shell $Cmd
@SERROR ?

I'd even comment out the shell command the first time - you should be able to copy the command from the screen and run it manually - successfully. If that's so - then you know the command will work from within the script.

Again, it's my "best practice" for any scripts I write - lets me confirm what's being run.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D