Create folders

  • Thread starter Thread starter Gil
  • Start date Start date
G

Gil

hi,
1. I have on the AD a OU with 200 users. I want to automaticlly create
folders with the name of the user on one of my servers. How can I do it ? I
can do it with GPO and a script. Can somone give me the correct syntax of
the commands ???
2. In case I can edit the permissions of the new folder with a command it
will GREAT ! How can I do it ?
3. What is the command line to do a log-off and then a login for the user ?

thanks.
 
Hi Gil,

Your home folders task is not something you can do with a GPO. You can use
the md command to create directories, and the xcacls or cacls utilities to
set the permissions on them from the command line.

You can log a user off with the shutdown command line tool. You cannot
automatically log them back in - they need to press Ctrl Alt Del and login.

--
--
Brian Desmond
Windows Server MVP
(e-mail address removed)12.il.us

Http://www.briandesmond.com
 
Back
Top