Solved

Logon Script working but not running

Posted on 2007-11-30
13
979 Views
Last Modified: 2008-09-07
This is driving me nuts. I have a drivemount .vbs in sysvol I'm trying to execute it via the group policy. If I double click on the script and run it it works fine and mounts the drive on the server but if I log on from another machine the script does not run . However, if I connect through the network andmanually execute the script it works correctly.

The  sbs_logon_script.bat designed for mounting users folders, has the same problem and won't mount.
I have read all the previous questions tried multiple variations relating to this but to no avail.

I have also tried it on a virtual server and it worked first time.
0
Comment
Question by:jimbrennan69
  • 5
  • 3
  • 2
  • +2
13 Comments
 
LVL 15

Expert Comment

by:Dave_AND
ID: 20381750
why not just use Net commends in the script?

net use z: \\<server>\%username% for example.

Using the script in sysvol is for older windows PCs you should use the script in the GPO to run login scripts:

http://www.serverwatch.com/tutorials/article.php/1474241 (its the same for 2003)
0
 

Author Comment

by:jimbrennan69
ID: 20382196
HI Dave
Thanks for you response.
I have tried putting the scripts indifferent places including the sysvol and have used GPO as well. The problem doesn't appear to be with the script it self as it works fine when ran manually but with the windows system that actually activates the scripts. Do you have any understanding of how this is done and how I might find out the problem.
0
 
LVL 26

Expert Comment

by:farhankazi
ID: 20383392
Whats the name of logon script file? Did you try renaming it with some other name?
Check following links for troubleshooting:

"Troubleshooting Logon Script Problems"
http://www.computerperformance.co.uk/Logon/Logon_Script_Troubleshooting.htm

"Group Policy Login or Logon Scripts Not Running, Not Working or Not Executing"
http://www.mydigitallife.info/2006/09/13/group-policy-login-or-logon-scripts-not-running-not-working-or-not-executing/

"Frequently Asked Questions About Logon Scripts"
http://www.rlmueller.net/LogonScriptFAQ.htm

Hope this helps!
Farhan
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 15

Expert Comment

by:Dave_AND
ID: 20385075
Hi jim,

Im not 100% sure, but i think vbs will be blocked unless you have admin rights, net use can be used as user rights, and is far safer. Try making a script running the net use z: "\\<server>\users\%username%" just to rule out the vbs script.
0
 

Author Comment

by:jimbrennan69
ID: 20385110
Hi Guys
Thanks for your contributions. I am pretty sure the script or location is not to blame, as I tried rolling my server configuration back to an earlier image with just the system and patches in place, before I installed Symantec End Point Protection, Backup Exec and GFI Mail essentials. I then recreated the script and it worked perfectly first time. So my sense is that one of the three programs or adobe reader have created the problem but I don't know witch or why. Weird
0
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 20400576
The best way to do this is to use the default SBS_LOGIN_SCRIPT.bat file.  See http://sbsurl.com/login for details.

You should also know that if you joined the workstations to the domain using http://<servername>/connectcomputer that there would automatically be a link in their My Network Places folder to \\Servername\Users\%username% called username.lnk

If you didn't use connectcomputer you can fix this by following the steps I've outlined at http://sbsurl.com/rejoin

Jeff
TechSoEasy
0
 

Author Comment

by:jimbrennan69
ID: 20410492
Hi Jeff
Thanks for your suggestions, I have tried using the default script and also loginin in with computerconnect and still  I can't get no Satisfaction. I am still unable to run any scripts including startup scripts and it feels like some default group policy setting is preventing this from working. I have had two it manager friends look at it and still  I can't get no Satisfaction, but I try and I try and I try and I try but  I can't get no Satisfaction. Any futher throughts would be gratefully appreciated.
0
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 20410623
"loginin in with computerconnect"

Are you saying you DID join the workstations using connectcomputer?  or you just "tried" joining them that way and didn't succeed?  

Jeff
TechSoEasy
0
 

Author Comment

by:jimbrennan69
ID: 20410638
Hi Jeff

I am saying that I did join my workstation using connectcomputer, this works fine
0
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 20410668
So, is there a link in My Network Places that goes to the User's Home Folder on the server as I described above?

Jeff
TechSoEasy
0
 

Author Comment

by:jimbrennan69
ID: 20438272
Problem Solved

Symantec End Point Protection 11 client incorporates a feature called network threat protection which stopped the Group Policies from working.  Once switched off they worked a treat an log into the server was as quick as a whip.

Also I didn't realise that there were errors in the local pc event log which pointed to this.  Dooh
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 22413844
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

The SBS 2011 release date (RTM) is supposed to be around Christmas, 2011.  This article is a compilation of my notes -- things I have learned first hand.  The items are in a rather random order, but I think this list covers most of what is new and d…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

770 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