[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

policy not applying

Posted on 2005-05-07
6
Medium Priority
?
206 Views
Last Modified: 2011-09-20
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?
0
Comment
Question by:mhamer
  • 4
  • 2
6 Comments
 

Author Comment

by:mhamer
ID: 13950367
the batch file does work if copied to client and ran under there login
0
 
LVL 20

Expert Comment

by:Lazarus
ID: 13950406
Where does the Batch file reside currently? Should be in your NETLOGON directory
Can you post the batch file here?
0
 

Author Comment

by:mhamer
ID: 13950439
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
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 

Author Comment

by:mhamer
ID: 13950544
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
 
LVL 20

Accepted Solution

by:
Lazarus earned 1500 total points
ID: 13951123
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
 

Author Comment

by:mhamer
ID: 14010736
cool thank you
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.

Question has a verified solution.

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

Numerous times I have been asked this questions that what is it that makes my machine log on so slow, there have been cases where computers took 23 minute exactly after taking password and getting to the desktop. Interesting thing was the fact th…
Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

834 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