Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to create a new user in AD with the New-ADUser command. When i look in the Users and Computers gui, all the parameters i've passed through powershell, is populated to correct fields, including HomeDrive and HomeDirectory.

However, the folder is not created on the share server, but when setting parameters manually in AD gui, the folder is created.

So my question(s) is/are, the powershell command, is it passed to Active Directory and Active Directory then handles the rest?

Or is powershell handling the entire thing and also passing the directory commands by itself?

P.s Active Directory is on server1(Windows 2008 R2) and usershares is on server2(Windows Server 2003).

I've verified that the Permissions ar correct as per http://support.microsoft.com/kb/555046

Thanks to anyone who possibly can shed some light on this.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Active Directory doesn't take care of creating the homedir, it's the ADUC console that does the work.

So if you want to do it via Powershell you need to do it "manually" (create the folder with powershell)

share|improve this answer
    
Thanks, ill do that. Found this msmvps.com/blogs/richardsiddaway/archive/2012/02/29/… It seems this is the way to go then. –  Alexander Jan 9 '13 at 20:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.