Please help me

  • Thread starter Thread starter ºa¤Ö@¤½¥q
  • Start date Start date
º

ºa¤Ö@¤½¥q

Can i create a script that perform following actions?

1. create new account for a user, e.g. test.account
2. then create a home directory for that user, e.g. f:/usrs/test.account
3. set permission of the just created user home folder to only allow
administrator and the just created user to access.

Thanks
 
Hi,
1.I can take you script + Excel!
He put user from Excel to AD.
Teke me you mail
2. to create home directory use same script method

ParentFolder = \\server\Public\users\%username%

set objShell = CreateObject("Shell.Application")
set objFolder = objShell.NameSpace(ParentFolder)
objFolder.NewFolder "%username%"

3. I think you can use Parent folder premissions
 
Depends.

If you really wanted to define "home" directory and not
the "profile" folder, then yes you can do that is script.
Setting permissions is most difficult part.
If however you mean the "profile", then no, you need to
let the system create that when the account is first used.

There is a newsgroup
microsoft.public.windows.server.scripting
but first, take a look at the MS website's Script Center
http://www.microsoft.com/technet/scriptcenter
 
Back
Top