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?

Posted on 2012-08-10
Last Modified: 2012-08-10
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?
Question by:SpammyChicken
    LVL 18

    Assisted Solution

    Give a try to this tool
    Or you may also use GPO to configuere startup scripts if the batch file for all users are same
    LVL 8

    Assisted Solution

    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.
    LVL 39

    Accepted Solution

    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


    Author Comment

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

    Author Closing Comment

    I figured it out... the command was dsquery user -samid * -limit 0 | dsmod user -loscr login.bat  Thanks guys!
    LVL 18

    Expert Comment

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

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now