We help IT Professionals succeed at work.

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?

SpammyChicken
on
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?
Comment
Watch Question

BRONZE EXPERT
Top Expert 2012
Commented:
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
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
Senior Active Directory Engineer
BRONZE EXPERT
Top Expert 2012
Commented:
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

Author

Commented:
@iSiek I tried your command and I get -loser is an unknow parameter.

Author

Commented:
I figured it out... the command was dsquery user -samid * -limit 0 | dsmod user -loscr login.bat  Thanks guys!
BRONZE EXPERT
Top Expert 2012

Commented:
Thanks SpammyChicken for posting the commands with correction this will help others too

Explore More ContentExplore courses, solutions, and other research materials related to this topic.