Jose Rivera-Hernandez
asked on
Change permissions Domain Wide on %WinDir%
I work in a windows XP Server 2003 environment. I am wanting to temporarily give all my users permission to edit the %windir% in order to run a batch file within a logon or logoff script to update an .ini file located here. My question is what would be the easiest way to do this? Thanks
Use cacls (http://www.ss64.com/nt/cacls.html) in a script that you can put out in a GPO, and apply the permissions on the folders that you want...
i.e.
cacls c:\Windows /G <domain>\Everyone:C /C
cacls c:\Windows /G <domain>\Everyone:C /C
ASKER
I am receiving an invalid arguments error when trying the following on one of my machines from the command line.
cacls c:\windows /G oshq\authenticated users /C
cacls c:\windows /G oshq\authenticated users /C
you need to use "authenticated users" (in quotes)
ASKER
Still a no go with cacls c:\windows /G oshq\"authenticated users" /C or cacls c:\windows /G "oshq\authenticated users" /C
Will this only work with single files or will it work with folders? I am looking at the site listed above and it is only referring to individual files. Thanks
Will this only work with single files or will it work with folders? I am looking at the site listed above and it is only referring to individual files. Thanks
Cacls does work for folders - you may need to use %windir% instead of c:\windows
ASKER
Still not working, any ideas?
First of all - you need the permission you want to write, i.e. "oshq\authenticated users":R
R Read
C Change (write)
F Full Control
P Change Permissions (special access)
O Take Ownership (special access)
X EXecute (special access)
E REad (Special access)
W Write (Special access)
D Delete (Special access)
R Read
C Change (write)
F Full Control
P Change Permissions (special access)
O Take Ownership (special access)
X EXecute (special access)
E REad (Special access)
W Write (Special access)
D Delete (Special access)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.