Link to home
Start Free TrialLog in
Avatar of crp0499
crp0499Flag for United States of America

asked on

AD, new user creation, scripting with elevated permissions

I have a helpdesk user who has delegated privileges so she can create users in AD.  One of the things she does is assign the users home folder to a folder on the server.  

The problem is she as a user doesn't have rights to create folders on the server, so I gave her NTFS permissions to do this.  The end result is that she's the owner of every home folder that she creates.

So, is there a script that I can use that will ask her some info, let her fill in some blanks and then using an elevated username/password (encrypted) allow the home folder to be created?

In other words, can I script the new user creation process and build in elevated privileges so she can create the home folders successfully?

Thanks

Cliff
Avatar of Joseph Moody
Joseph Moody
Flag of United States of America image

Sure - you can do this in PowerShell.

Use the new-item cmdlet with the -credentials parameter.
Avatar of crp0499

ASKER

um, I'm gonna need a little more there.  :)  script or hyperlink or something.  GUI's are my friend and powershell is the anti-Christ in my book!
ASKER CERTIFIED SOLUTION
Avatar of Joseph Moody
Joseph Moody
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial