Skip to content

Adjust File Permissions in Task Sequence

Featured Replies

Good morning,

 

I'm trying to figure out how to apply a concatenated icacls command as part of a task sequence to enable inheritance on two files. Here's the command below:

icacls "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config" /inheritance:e & icacls "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config" /inheritance:e

I tried inputting this same command as part of a task sequence but it did not work.

 

Any and all help is appreciated.

  • Author

Dumb question but why not make it two commands? Why must it be one commend line?

 

I could make it two commands. Just thought I'd use the & to my advantage and just use one entry in the task sequence. I'll break it down into two steps now and see how that goes.

  • Author

It ended up working. Turns out it was just a spelling error. All good :)

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.