Solved

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

Posted on 2010-08-13
4
671 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
  • 2
  • 2
4 Comments
 
LVL 7

Expert Comment

by:adiloadilo
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Normally after a failure of Domain Controller, when promoting new DC the DC is renamed, we will discuss the options in Dcpromo to re-create the DC with the same name. Scenario: You are a small IT shop with two Domain Controllers (Domain Contr…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

763 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

7 Experts available now in Live!

Get 1:1 Help Now