policy not applying

hi, problem is  network drives (mapped by a batch file  and as part of the policy)
are not appearing for some usres

I cant see any deffinet pattern r reason

the same user name will get the drives if they logon o another machine,  but then other users will get them if logged on to the first troublesome machine.


w2003 server

batch file added to usrs logon script

w2000kpro client


help?
mhamerAsked:
Who is Participating?
 
LazarusConnect With a Mentor Commented:
If the client PC's are running the batch on login but not completing as desired, something is not being interpeted correctly. Try this:

@echo on
@net time \\SERVERNAME /set /yes

@net use M: \\SERVERNAME\SHARE1 /y
@net use I: \\SERVERNAME\SHARE2 /y


If that wont work try this vb script instead:

Set objNetwork = CreateObject("WScript.Network")
' Forces script to skip errors (rem below line to see errors)
on error resume next
Dim WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")

WshNetwork.RemoveNetworkDrive "M:"
WshNetwork.RemoveNetworkDrive "I:"

WshNetwork.MapNetworkDrive "M:", "\\SERVERNAME\SHARE1"
WshNetwork.MapNetworkDrive "I:", "\\SERVERNAME\SHARE2"

WSCript.Quit
'  End of My VBScript

Hope that does it for you.


0
 
mhamerAuthor Commented:
the batch file does work if copied to client and ran under there login
0
 
LazarusCommented:
Where does the Batch file reside currently? Should be in your NETLOGON directory
Can you post the batch file here?
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
mhamerAuthor Commented:
not the most complicated

:-)

net use m: \\fileserver\share
net use l: \\fileserver\share


thats it

i added a new line mapping to adiffernt server share and it worked,

but then this batch file works iof run manually i can resolve everythinbg  very puzzling

0
 
mhamerAuthor Commented:
in fact script is deffently running, its just some machines cant fulfil the map drive command,?  but will do if i run it locally

I added a pop up bpx to the script and every machine got that so happy script is applied
0
 
mhamerAuthor Commented:
cool thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.