Solved

Logon Script working but not running

Posted on 2007-11-30
13
960 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 15

Expert Comment

by:Dave_AND
Comment Utility
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
Comment Utility
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
Comment Utility
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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:jimbrennan69
Comment Utility
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
Comment Utility
"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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

IT, Stop Being Called Into Every Meeting

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

This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Small Business Server 2011. NOTE: This guide has been written using the preview version of SBS2011 therefore some of the screens may …
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to dynamically set the form action using jQuery.

743 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

12 Experts available now in Live!

Get 1:1 Help Now