No announcement yet.

Group Policy issue

  • Filter
  • Time
  • Show
Clear All
new posts

  • Group Policy issue

    Hey guys,
    Here is my scenario. I have a user that moves from site to site between 2 different branches. He has been setup to use a batch file for a login script. This script maps the required network drives. The problem is this. How do I create a batch file for him to map certain drives for each site? He wont need mapped drives s: or y: at the main site, but he will need them at the remote site. And opposite when he goes to the remote site. He will only need drives n: and o:, not s: and y: This is confusing because his login script is only setup for him to use the remote site now. He needs to have all those drives available to him regardless of which site he is at. Here comes the other issue though. How will the batch file know what site he is at? If it doesnt know what network drives to use for his software at whichever site he is currently, then it will cross the wan link and take forever to reach the necessary software. I know this sounds confusing and trust me... it is, but I have to get this resolved somehow. The main site has Windows 2000 Server and the remote site uses Windows 2003 Server Standard. Both are AD replicated, however the master role is on the main site. I dont know if there is a way to basically prioritize which site is where he is going to be mapped or not. I havent found a way to do this. I mean I can create a batch file for him (a remote user script), but the problem is... where he logs in at. How is it going to realize what drives to use for his software? I cant have it cross the wan link to find the stuff he needs and that is whats occuring now. I can explain more if needed. Please suggest ideas. Thanks.


  • #2
    Can't give you an exact syntax at the moment but you could use something like:

    IF %logonserver% = "remotesiteservername" THEN Net use s: \\remotesiteservername\share

    IF %logonserver% = "mainsiteservername" THEN Net use s: \\mainsiteservername\share

    Hope that helps
    Server 2000 MCP
    Development: ASP, ASP.Net, PHP, VB, VB.Net, MySQL, MSSQL - Check out my blog

    ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **


    • #3
      creat a batch file for each site and ask the user to run it after he logs on to the network
      place the bach files locally on the user`s computer
      Good Luck


      MCSE 2003+Security;MCSE 2003+Messaging

      So, from me to all of you out there, wherever you are, remember:
      the light at the end of the tunnel may be you. Good Day!


      • #4
        IF %logonserver% = "remotesiteservername" THEN Net use s: \\remotesiteservername\share

        IF %logonserver% = "mainsiteservername" THEN Net use s: \\mainsiteservername\share

        Do these entire strings go into the batch file instead of this?

        net use f: \\remotesiteservername\sys
        net use s: \\remotesiteservername\apps

        And also, they do have a private profile path. Im wondering if I can just put the seperate batch files in there as opposed to something more difficult? That might be what the one guy mentioned.