Solved

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

Posted on 2010-08-13
4
676 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

Turn Insights Into Action

You’ve already invested in ITSM tools, chat applications, automation utilities, and more. Fortify these solutions with intelligent communications so you can drive business processes forward.

With xMatters, you'll never miss a beat.

Question has a verified solution.

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

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…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
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 give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

691 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