Jump to content


  • 0
ITguy87

Adjust File Permissions in Task Sequence

Question

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.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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.

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.