Solved

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

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

To effectively work with Diskpart on a Server Core, it is necessary to write some small batch script's, because you can't execute diskpart in a remote powershell session. To get startet, place the Diskpart batch script's into a share on your loca…
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…
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…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

920 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

17 Experts available now in Live!

Get 1:1 Help Now