Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2010-08-13
4
Medium Priority
?
678 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 2000 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
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…

618 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