Batch file to create a folder in multiple other folders and assign NTFS Perms to itFixing lost administrator...

What is the data structure of $@ in shell?

Clues on how to solve these types of problems within 2-3 minutes for competitive exams

What is the difference between rolling more dice versus fewer dice?

How can a large fleets maintain formation in interstellar space?

Is there a Linux system call to create a “view” of a range of a file?

Is a new Boolean field better than a null reference when a value can be meaningfully absent?

If I delete my router's history can my ISP still provide it to my parents?

Is Krishna the only avatar among dashavatara who had more than one wife?

Do authors have to be politically correct in article-writing?

Crontab: Ubuntu running script (noob)

What is a good reason for every spaceship to carry a weapon on board?

Does Skippy chunky peanut butter contain trans fat?

How can my powered armor quickly replace its ceramic plates?

Why did the villain in the first Men in Black movie care about Earth's Cockroaches?

How to play electric guitar and bass as a duet

How should I handle players who ignore the session zero agreement?

Why is it that Bernie Sanders is always called a "socialist"?

Why zero tolerance on nudity in space?

Avoid page break between paragraphs

Alien invasion to probe us, why?

Absorbing damage with Planeswalker

What is the purpose of easy combat scenarios that don't need resource expenditure?

Consequences of lack of rigour

Why am I able to open Wireshark in macOS X without root privileges?



Batch file to create a folder in multiple other folders and assign NTFS Perms to it


Fixing lost administrator permissions on a NAS in a Windows environmentNTFS Permissions - Create Files and Folder but prevent Deletion and ModificationNTFS Compression on multiple foldersBatch moving files from one folder to multiple folders based on file maskCMD Command Prompt DIR Batch FileCut/paste file between folders no longer keep the original folder permissionsNeed assistance creating a batch file to rename multiple foldersDeleting user home directories/setting permissions via PowershellNTFS permissions added from command line create protected root folderbatch file to delete folders













0















so I have a series of folders which receive .pdf files from paper scans made by staff at a photocopier. One folder per Business Unit on w2k server, so :



Scan$

Unit 1

Unit 2

Unit 3



What I'm trying to do is write a batch file to create a folder named :



'Temp area - files will be deleted after 14 days !'



and place it into each of the Unit 1,2,3 'root' folders to remind staff not to store data there long-term. Once I have created that folder I need to set the NTFS perms, maybe with icals, to only allow Domain Admins to access the folder I created, so staff cannot delete it.



I've written batch files before to create 'home' folders reading names from a .txt, eg for /f %%a in (users.txt) do ..icacls filerPersonal$Home%%a /grant:r "CompanyDomain Admins:(OI)(CI)F"



But I'm struggling with this issue, any help appreciated :-)









share







New contributor




Alice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    so I have a series of folders which receive .pdf files from paper scans made by staff at a photocopier. One folder per Business Unit on w2k server, so :



    Scan$

    Unit 1

    Unit 2

    Unit 3



    What I'm trying to do is write a batch file to create a folder named :



    'Temp area - files will be deleted after 14 days !'



    and place it into each of the Unit 1,2,3 'root' folders to remind staff not to store data there long-term. Once I have created that folder I need to set the NTFS perms, maybe with icals, to only allow Domain Admins to access the folder I created, so staff cannot delete it.



    I've written batch files before to create 'home' folders reading names from a .txt, eg for /f %%a in (users.txt) do ..icacls filerPersonal$Home%%a /grant:r "CompanyDomain Admins:(OI)(CI)F"



    But I'm struggling with this issue, any help appreciated :-)









    share







    New contributor




    Alice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      so I have a series of folders which receive .pdf files from paper scans made by staff at a photocopier. One folder per Business Unit on w2k server, so :



      Scan$

      Unit 1

      Unit 2

      Unit 3



      What I'm trying to do is write a batch file to create a folder named :



      'Temp area - files will be deleted after 14 days !'



      and place it into each of the Unit 1,2,3 'root' folders to remind staff not to store data there long-term. Once I have created that folder I need to set the NTFS perms, maybe with icals, to only allow Domain Admins to access the folder I created, so staff cannot delete it.



      I've written batch files before to create 'home' folders reading names from a .txt, eg for /f %%a in (users.txt) do ..icacls filerPersonal$Home%%a /grant:r "CompanyDomain Admins:(OI)(CI)F"



      But I'm struggling with this issue, any help appreciated :-)









      share







      New contributor




      Alice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      so I have a series of folders which receive .pdf files from paper scans made by staff at a photocopier. One folder per Business Unit on w2k server, so :



      Scan$

      Unit 1

      Unit 2

      Unit 3



      What I'm trying to do is write a batch file to create a folder named :



      'Temp area - files will be deleted after 14 days !'



      and place it into each of the Unit 1,2,3 'root' folders to remind staff not to store data there long-term. Once I have created that folder I need to set the NTFS perms, maybe with icals, to only allow Domain Admins to access the folder I created, so staff cannot delete it.



      I've written batch files before to create 'home' folders reading names from a .txt, eg for /f %%a in (users.txt) do ..icacls filerPersonal$Home%%a /grant:r "CompanyDomain Admins:(OI)(CI)F"



      But I'm struggling with this issue, any help appreciated :-)







      permissions batch ntfs





      share







      New contributor




      Alice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Alice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Alice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 4 mins ago









      AliceAlice

      1




      1




      New contributor




      Alice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Alice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Alice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Alice is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1409967%2fbatch-file-to-create-a-folder-in-multiple-other-folders-and-assign-ntfs-perms-to%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Alice is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Alice is a new contributor. Be nice, and check out our Code of Conduct.













          Alice is a new contributor. Be nice, and check out our Code of Conduct.












          Alice is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1409967%2fbatch-file-to-create-a-folder-in-multiple-other-folders-and-assign-ntfs-perms-to%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...