Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1010
  • Last Modified:

Logon Script working but not running

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
jimbrennan69
Asked:
jimbrennan69
  • 5
  • 3
  • 2
  • +2
1 Solution
 
Dave_ANDCommented:
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
 
jimbrennan69Author Commented:
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
 
Farhan KaziSystems EngineerCommented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Dave_ANDCommented:
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
 
jimbrennan69Author Commented:
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
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
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
 
jimbrennan69Author Commented:
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
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
"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
 
jimbrennan69Author Commented:
Hi Jeff

I am saying that I did join my workstation using connectcomputer, this works fine
0
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
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
 
jimbrennan69Author Commented:
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
 
Computer101Commented:
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 5
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now