policy not applying

Posted on 2005-05-07
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

Question by:mhamer

    Author Comment

    the batch file does work if copied to client and ran under there login
    LVL 20

    Expert Comment

    Where does the Batch file reside currently? Should be in your NETLOGON directory
    Can you post the batch file here?

    Author Comment

    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


    Author Comment

    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
    LVL 20

    Accepted Solution

    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"

    '  End of My VBScript

    Hope that does it for you.


    Author Comment

    cool thank you

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
    I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now