Solved

Windows Small Biz Server 2008 - Login Script via GPO not pushing down

Posted on 2010-08-13
4
675 Views
Last Modified: 2012-06-27
Hi All,

I have a new windows sbs 2008 server. I am trying to push down a login script via GPO but for some reason it is not working. The GPO is linked and enforced. I have also un-forced and unlinked all the default GPO's that come with sbs2008. The login script is pushing down to all brand new Windows 7 machines. Here is what I have:

The GPO I have in place:
User -> Policies -> Windows -> Settings -> Login -> login.bat

The login.bat file which is saved in the \\server\NETLOGON folder:

@ECHO OFF
LOGIN SCRIPT
ECHO. ADDING PRINTER
Cscript \\server\\sysvol\domain.local\scripts\AddPrinter.vbs
ECHO. ADDING MAPPED DRIVE
Cscript \\server\\sysvol\domain.local\scripts\MapDrive.vbs

The AddPrinter.vbs which is saved in \\server\NETLOGON folder:

Set WSHNetwork = CreateObject(“WScript.Network”)
WSHNetwork.AddWindowsPrinterConnection “\\server\TOSHIBA"
WSHNetwork.SetDefaultPrinter “\\server\TOSHIBA"

The MapDrive.vbs which is saved in \\server\NETLOGON folder:

net use S: \\server\share1

Any ideas what is going on?

Thanks,
0
Comment
Question by:RLComputing
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 7

Expert Comment

by:adiloadilo
ID: 33432829
try this instead , and place all scripts on netlogon folder
@REM 
@echo off
@wscript %0\..\AddPrinter.vbs
@wscript %0\..\MapDrive.vbs
@REM 
@REM

Open in new window

0
 
LVL 1

Author Comment

by:RLComputing
ID: 33433300
Now when I login with a user account its saying it can't find the location of the script.
Users have read access to the NETLOGON folder
script-error.jpg
0
 
LVL 7

Accepted Solution

by:
adiloadilo earned 500 total points
ID: 33434182
put the files inside the scripts folder inside c:windows\sysvol\domail\localdomain\scripts .  in your domain controller .
0
 
LVL 1

Author Comment

by:RLComputing
ID: 33481602
thanks adiloadilo. In addition to moving the scripts to that location, we drop the WSHNetwork and used con2prt.exe file we had and it worked.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
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…

733 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