Link to home
Start Free TrialLog in
Avatar of Tiva-IT
Tiva-IT

asked on

Login Script not running

We have a weird problem we've been asked by a client to add 1 single drive mapping to their login script
Net use Z: \\server\postscan
when they login its not there, I've put a 'pause' in the login script I can see straight after Z: mapping I can see 'Command Completed Successfully' so its like the script is running fine and the syntax is correct.
If I type net use from a command prompt there is no Z: drive
if I browse to \\server\netgon and double click the logon.bat file the Z: drive appears
If I copy the logon.bat file to the local startup it does hat same thing no Z: drive
An y ideas?
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Why not map the drives with GPO map drive preferences?
1. Share and NTFS Permission on \\Server\postscan set correctly?
2. for testing use ip-Adress net use z: \\172.16.99.3\postscan any changes ?
3. network and share center: network identification is on?
It sounds like the mapped location is not accessible at logon (like the network is not active yet), if you do a Group Policy Preference you can specify "wait for network logon". That'd tell you.
ASKER CERTIFIED SOLUTION
Avatar of Tiva-IT
Tiva-IT

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tiva-IT
Tiva-IT

ASKER

found a working fix