Windows 2008 Server: Login Script

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

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

The problem that I have:
-      When I login at the Workstation (XP or 7), as the permitted users, I DID NOT see the Y: drive, W: drive and P: drive

However, When I copied the Login.bat file to the Workstation (XP or 7) and execute it there; I can see all the network drives (Y: drive, W: drive and P: drive)

Is there any setting that I should ENABLE or CONFIGURE at the Windows 2008 (as the Domain Controller)?

Question by:tjie
    LVL 12

    Accepted Solution

    you need to set the logon script in the users Active Directory settings on the profile page.

    Author Comment

    Do you mean that I have to setup the login script one by one per user?
    LVL 12

    Assisted Solution

    Well either that, or use a group policy and set up the script in there.

    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

    Trying to figure out group policy inheritance and which settings apply where can be a chore.  Here's a very simple summary I've written which might help.  Keep in mind, this is just a high-level conceptual overview where I try to avoid getting bogge…
    This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
    This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

    729 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

    15 Experts available now in Live!

    Get 1:1 Help Now