IanT Posted December 5, 2008 Posted December 5, 2008 I've just re-written a few logon scripts.....both a .bat and .vbs file. The logon script applies perfect on my computer ONLY for some reason......but if i go to another pc or laptop nothing, I know this is a silly problem!! any ideas?
strawberry Posted December 5, 2008 Posted December 5, 2008 could we see it? my guess is that it will have a local reference on it.
FN-GM Posted December 5, 2008 Posted December 5, 2008 Please can we see the code as there could be variations in code.
IanT Posted December 5, 2008 Author Posted December 5, 2008 Here we are, bog standard it is: @echo off Net Use I: \\shackleton\IT Net Use H: \\shackleton\Home\%username% Net Use Y: \\yoda\data Net Use P: \\shackleton\ReceptionPlasma Net Use S: \\skinnerssims\SIMS Net Use G: \\shackleton\UTILS Net Use M: \\shackleton\MediaShared
FN-GM Posted December 5, 2008 Posted December 5, 2008 change it to, it should work then. You will need to use the full DNS name. @echo off Net Use I: \\shackleton.domain.local\IT etc.... Another option would be to use the IP address instead of the server name.
FN-GM Posted December 5, 2008 Posted December 5, 2008 you will now becuase of the trust i am in a forest with 10 domains and we have to do it. you might also have to set forwarding DNS servers
IanT Posted December 5, 2008 Author Posted December 5, 2008 change it to, it should work then. You will need to use the full DNS name. @echo off Net Use I: \\shackleton.domain.local\IT etc.... Another option would be to use the IP address instead of the server name. Nope, didnt work. Ian.
kmount Posted December 5, 2008 Posted December 5, 2008 Take the echo off, and run the script visibly on a workstation other than your own. If your default dns suffix is set correctly you shouldn't need the full name.
IanT Posted December 5, 2008 Author Posted December 5, 2008 I've gone onto a laptop, logged on as me.......... I run the batch locally and runs fine but still not applying when logging on (and yes I have put it all in the AD and GP etc)
penfold Posted December 5, 2008 Posted December 5, 2008 Have the drive letters already been assigned for something else on other machines? Maybe from an old script? EDIT: Ignore me - updated whilst replying
IanT Posted December 5, 2008 Author Posted December 5, 2008 nope, no network drives are connected or anything, no old ones.
kmount Posted December 5, 2008 Posted December 5, 2008 GPUPDATE /FORCE /BOOT If it still doesn't work, you want to use GPRESULT to find out why.
IanT Posted December 5, 2008 Author Posted December 5, 2008 Any error messages nope, im going to do the GPRESULT next. Ian.
penfold Posted December 5, 2008 Posted December 5, 2008 Are you running more than 1 script at logon? I think you can change then to run syncronisly (spelling:confused: ) Have you got this in the user logon script or as a group policy in the Users OU? I used to put mapped drives in the logon scripts rather than group policies. Have you tried applying it to the logon scripts to see if it makes a difference?
jamesb Posted December 5, 2008 Posted December 5, 2008 Can you manually set up the drives on machines other than your own using those commands?
IanT Posted December 5, 2008 Author Posted December 5, 2008 Can you manually set up the drives on machines other than your own using those commands? Yup, very odd
jamesb Posted December 5, 2008 Posted December 5, 2008 Is there anything particularly odd about your machine? Is it in a seperate OU, set to ignore inheritance of group policies or anything similar?
DrPerceptron Posted December 5, 2008 Posted December 5, 2008 I would enable visible logon scripts User > Admin Templates > System > Scripts see what the script has to say about it. I am having a similar issue when using Cisco VPN Client, I can connect and ping everything manually, but as soon as I ask a script to do it, it just provides me with Error 53 - Network path not found. Haven't found a fix but it is only effecting one laptop.
strawberry Posted December 5, 2008 Posted December 5, 2008 how are you calling the script? does it work if you run it manually?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now