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
crp0499CEOAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joseph MoodyBlogger and wearer of all hats.Commented:
Sure - you can do this in PowerShell.

Use the new-item cmdlet with the -credentials parameter.
0
crp0499CEOAuthor Commented:
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!
0
Joseph MoodyBlogger and wearer of all hats.Commented:
:)

Powershell is your friend!

Open Powershell as an administrator. Type update-help and wait for the help files to finish updating.

 Then type get-help new-item

You will see all of the parameters and examples on using them.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2012

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.