leusa Posted May 19, 2014 Report post Posted May 19, 2014 Hello I try do deploy an Application during the Tasksequence but it fails becaus it can't set the Permission with xCACLS.vbs. But when i run the Script if im loged in to the installed Windows Machine it works fine. But not during the Task Sequence. This is the Command Line: Cscript.exe "%~dp0XCACLS.vbs" "%programfiles%\star" /E /T /G BUILTIN\USERS:m /I copy /Q do you know why it fails or is there an other way to set the Permissions? Many thanks for your help Quote Share this post Link to post Share on other sites More sharing options...
Mikey C Posted May 19, 2014 Report post Posted May 19, 2014 The command line is in a batch file i take it? If it is not, then the variable %~dp0 will not work. Quote Share this post Link to post Share on other sites More sharing options...
leusa Posted May 20, 2014 Report post Posted May 20, 2014 Hello Yes, the command is in an Batch File. The Batch and the CScript.exe is in the same directory many thanks. Quote Share this post Link to post Share on other sites More sharing options...
Mikey C Posted May 20, 2014 Report post Posted May 20, 2014 I always use SetACL whcih i find very reliable, i dont know that script. http://helgeklein.com/download/#setacl Quote Share this post Link to post Share on other sites More sharing options...