Solved

Logon Script working but not running

Posted on 2007-11-30
13
994 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
[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
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

I've often see, or have been asked, the question about the difference between the Exchange 2010 SP1 version, available as part of Small Business Server (SBS) 2011, and the “normal” Exchange 2010 SP1 Standard. The answer to the question is relativ…
I’m often asked about newer and larger USB drives connected to SBS2008 and 2011 failing Windows Server Backup vs the older USB drives not failing. As disk space continues to grow and drive technology change SBS2008 and some SBS2011 end up with the f…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

739 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