I'm a running a script to apply permissions to a folder. I've added the location to xcacls.exe in system path, played around with the syntax and I always get the following error: WshShell.Exec: The system cannot find the file specified.
I've echoed the variables. Below is the output from primal script:
Setting Permissions For dduck on \\acs01\users\PAstu\2011\d
bs(102, 1) WshShell.Exec: The system cannot find the file specified.
Below is the function.
wscript.echo("Setting Permissions For " & strUserID & " on " & strHomeDir)
Set objShell = CreateObject("WScript.Shell")
objShell.Exec "xcacls.exe " & strHomeDir & " /G builtin\administrators:F /y"
wscript.echo("Administrator Permissions granted")