Skip to content

Set Folder Permissions during Command Prompt

Featured Replies

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

The command line is in a batch file i take it?

 

If it is not, then the variable %~dp0 will not work.

  • Author

Hello

Yes, the command is in an Batch File. The Batch and the CScript.exe is in the same directory

 

many thanks.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.