How can I modify the profile tab of every user in AD to include a logon script and connect to there own personal home folder?

I have a new Domain Controller and I've imported around 400 users.  I would like all users to refrence a bat file and connect to a home folder.  Is there a way to enable this for all users at once instead of having to do it 400 times?
SpammyChickenAsked:
Who is Participating?
 
Krzysztof PytkoConnect With a Mentor Senior Active Directory EngineerCommented:
Yes, sure. Just on a DC in command-line type

dsquery user -samid * -limit 0 | dsmod user -loser login.bat

Open in new window


Where login.bat in syntax is a logon script name

Regards,
Krzysztof
0
 
Sarang TinguriaConnect With a Mentor Sr EngineerCommented:
Give a try to this tool www.joeware.net/freetools/tools/admod/
Or you may also use GPO to configuere startup scripts if the batch file for all users are same
0
 
ryan_johnstonConnect With a Mentor Commented:
You can do both with GPO.  

Here's the technet about folder redirection.  And the there should be a fairly obvious section in gpo about login scripts.  I'd point you directly to it, but I don't have my dc available currently where I'm at.

http://technet.microsoft.com/en-us/library/cc782799(v=ws.10).aspx
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
SpammyChickenAuthor Commented:
@iSiek I tried your command and I get -loser is an unknow parameter.
0
 
SpammyChickenAuthor Commented:
I figured it out... the command was dsquery user -samid * -limit 0 | dsmod user -loscr login.bat  Thanks guys!
0
 
Sarang TinguriaSr EngineerCommented:
Thanks SpammyChicken for posting the commands with correction this will help others too
0
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.

All Courses

From novice to tech pro — start learning today.