GPO for Login sripts

Posted on 2012-08-20
Last Modified: 2012-08-21

1)      This is related to the Login Script
2)      The OS for the Domain Controller is Windows 2008 server
3)      The login scrip’s name is Login.bat which contains as the followings:

REM @echo off

Net use Y: \\Bobafilesrv\Marketing

Net use W: \\Bobafilesrv\Accounting

Net use P: \\Bobafilesrv\Public


I go to the Domain Controller
- Go to C:\Windows\Sysvol\Domain\Scripts folder
- I put the Login.bat at the above Scripts folder
- I click Refresh at the Domain Controller

Then, I go to the Profile of every user, and put the Login.bat there

By doing this, I provide “the 3 network drives” to the user (when the user logs in); however, I have to do it one by one for every user.

Per other discussion, EE’s expert (G4ugm) suggests that I can do it with Group Policy (GPO) if I do no want to do it one by one.

Somebody experienced with the above GPO? If yes, please give me a hint.

Question by:tjie
    LVL 14

    Accepted Solution

    In a GPO
    User Configuration->Windows Settings
    Scripts (Logon/Logoff)

    Add the script there
    and apply the GPO to a OU with the users in it
    LVL 12

    Assisted Solution

    Log on to the Domain Controller with Domain Admin rights.
    First Create or use existing OU where all the users you want them to be.
    Expand the OU's and then select the OU on where all users are listing.
    Right Click on that OU, click on Create and Link New GPO here.
    From here you can use the above options by expanding User Configuration->Windows Settings->Scripts (Logon/Logoff)

    Simply browse and add that script over there.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
    Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  ( Here (http…
    This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
    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…

    760 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

    12 Experts available now in Live!

    Get 1:1 Help Now