Jump to content

Create folder and add permissions under existing location


Recommended Posts

Posted

Hello,

 

I am looking to add a folder with specific permission into all staff documents.

 

For example -

 

I want to add a folder called 'Test' into 'J.Bloggs' with security permissions for 'J.Doe' for Full Control...but I need a test folder put into every staff members documents location.

 

Has anyone done this or similar before?

Posted (edited)

You can try something like

 

FOR /d %A IN (d:\users\*) DO mkdir "%A\test"

 

use icacls to set permissions

 

FOR /d %A IN (d:\users\*) DO icacls "%A\test" /grant J.Doe(OI)(CI)F

Edited by davido38

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...