Re: need a script to reset the permissions on users home drives
- From: "Olaf Engelke [MVP Windows Server]" <oenews01@xxxxxxxx>
- Date: Tue, 14 Jun 2005 15:28:11 +0200
Hi, Shayne D. Swann wrote:
given you have a list of user names as text file you could download the xcacls.vbs from microsoft.com (or use the not fully bugfixed .exe file from Support Tools) and create a line for each user, likeI have file server that has had it's permissions reset on the NTFS partition that host the users home drives and the terminal server users roaming profile. is there a script that can reset the permissions back for each user?
xcacls d:\home\user01 /T /G domain\user01:C Administrators:F /Y
="xcacls d:\home\" & Users!A2 & " /T /C /G domain\" & Users!A2 & ":C Administrators:F /Y"
given the work*** with the user names us Users, domain stands for the domain name, first user name is listed in A2.
Use the concatenation operator in Excel and fill the lines down, then copy/paste the result into notepad and save it with the extension cmd. Execute the file on the server which hosts the homedrives.
The sequence of the parameters for XCACLS may vary, so check the syntax with one line before doing the script.
Example line changes (not edits) the permissions for the users folder in D:\Home and its subfolders (/T), /C continues on Access denied errors, /Y confirms each line automatically, otherwise you would have to press ok.
Best greetings from Germany
Olaf.
.
- References:
- need a script to reset the permissions on users home drives
- From: Shayne D. Swann
- need a script to reset the permissions on users home drives
- Prev by Date: need a script to reset the permissions on users home drives
- Next by Date: Startup script succcessfull in Win2k, not XP
- Previous by thread: need a script to reset the permissions on users home drives
- Next by thread: Startup script succcessfull in Win2k, not XP
- Index(es):