Re: Remote user creation

From: Oli Restorick [MVP] (oli_at_mvps.org)
Date: 07/27/04


Date: Tue, 27 Jul 2004 23:56:25 +0100

I've come across this exact same issue. I ended up using a command called
setacl.exe along with script by Richard Mueller

http://groups.google.com/groups?selm=OYXlsATuDHA.2072%40TK2MSFTNGP10.phx.gbl&output=gplain

Basically, you can create the user and get the SID back straight away.
Then, when setting the file ACL, you provide the SID rather than the
username.

It's not pretty and I've come across some weird issues with the inheritence
of ACLs on profile directories. I was planning to share the script I have,
but these issues have got in the way of me doing that.

Hope this helps

Oli

"Chris Dahl" <ChrisDahl@discussions.microsoft.com> wrote in message
news:5DF8E12A-3AB8-4C89-898D-272D875B0740@microsoft.com...
> Is there a way within a script to ensure that an AD user account is
> created on a specific server?
>
> I have a need to create student accounts (15-16K) with home directories
> on remote servers. When run though I receive errors about home
> directories and find the newly created user does have permissions.
>
> It appears that when the home directory is created on a server it does not
> know about the account that was just created and cannot assign the proper
> permissions.
>
> Thanks in advance
>
> Chris Dahl



Relevant Pages

  • Re: Entourage account setup applescript not working
    ... I pasted the script at the end just in case. ... When comparing the account settings on 2 computers, ... This script assists a user with the setup of his Exchange account ... Customize the network and server properties below with information ...
    (microsoft.public.mac.office.entourage)
  • Re: Chage script for Linux servers?
    ... I'm looking for a script that allows control of account expiration ... I have complete control over the server in question. ...
    (comp.lang.php)
  • Re: User access & security
    ... If there is a user with non-root access to their account, we are dependent on their having a good password to ward off too much nasty activity. ... to do (permissions permissions permissions)). ... lately most attacks against webservers seem to target vulnerable php, perl script and spawn a custom script, ... which is located at some anonymous or compromised server, which launches a reverse shell so ... ...
    (comp.os.linux.security)
  • Re: Chage script for Linux servers?
    ... I'm looking for a script that allows control of account expiration ... I have complete control over the server in question. ...
    (comp.lang.php)
  • Re: How do u get around expiring password problems
    ... changepassword method, in fact you should be able to have the mainframe script ... has the ability to set the password of that account. ... Joe Richards Microsoft MVP Windows Server Directory Services ... >>server runs a second script which sets the password on the account. ...
    (microsoft.public.win2000.security)