Announcement

Collapse
No announcement yet.

Drive mapping Problem

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Drive mapping Problem

    Hi,
    Just an anoying problem with drive mapping
    i have have a little script for some drive mappings for the users in the domain on the sbs 2003 server i`ve tested the script and its working fine when i put it in a policy the user see under "my computer"2 disconnected network drives
    when they click on it they have access to the correct share and can do their thing. in quick words right away from startup they have the disconnected drives but they are working fine. when i map the drive in my computer/tools by hand all works fine and the drives show not disconnected.

    what did i do to solve this? checked the script its good,
    went out on the internet found at microsoft a solution but it didnt work for me
    (Disable autodisconnect KB 297684). search at petri but didnt found what i was looking fore.
    last resource, ask it in a good forum like this one

    a few specs:
    SBS 2003 R2 premium with latest hotfixes on it
    users have all xp Pro

    any help is very welcome

    Thanks

    Marco

  • #2
    Re: Drive mapping Problem

    How about posting the script? And what policy did you use? Your issue is the drives are mapped but disconnected and the user, upon first access, is able to re-connect -- correct?
    Cheers,

    Rick

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

    2006-2099 R Valstar. This post is offered "as is" for discussion purposes only with no express or implied warranty of any kind including, but not limited to, correctness or fitness for use. Nothing herein shall be construed as advice. Attempting any activity based on information in this post is done at your own risk.

    Comment


    • #3
      Re: Drive mapping Problem

      thanks for the quick reply

      the policy i use is the startup script under computerconfiguration

      the script i `ve used is also working on an other server and is working fine, it is a vb script and partialy written in dutch i am almost a 100 % sure that the script itself is not the problem

      Comment


      • #4
        Re: Drive mapping Problem

        Try using "/persistent:yes" switch in your login script. Also make sure that that power saving and network card power saving mode is off.
        If you can post your script that will help a lot. Cheers

        Comment


        • #5
          Re: Drive mapping Problem

          thank for the reply
          here is the script it has worked for a long time on the other server
          some things are in dutch.

          were do i put te persistent:yes?


          Script

          'Definities (definitions)

          server1 = "off-fs01"



          'Script Core definities (script core defenitions)
          On Error Resume Next
          Set wshNetwork = CreateObject("WScript.Network")
          Set oShell = CreateObject("Shell.Application")
          Set RunShell = WScript.CreateObject("WSCript.shell")

          'Het Uitvoeren van opdrachten. (run)
          ' RunShell.Run "c:\windows\system32\cmd.exe /c net time \\"+(server1)+" /set /yes"

          'Het verwijderen van alle netwerkstations (remove all network stations)
          ' Set colDrives = wshNetwork.EnumNetworkDrives
          ' For i = 0 to colDrives.Count-1 Step 2
          ' strDriveLetter = colDrives.Item(i)
          ' wshNetwork.RemoveNetworkDrive strDriveLetter, True ,True
          ' Next


          'Het aanmaken van netwerk stations

          wshNetwork.MapNetworkDrive "K:", "\\"+(server1)+"\onwikkeling"
          oShell.NameSpace("K:").Self.Name = "DEV"

          wshNetwork.MapNetworkDrive "M:", "\\"+(server1)+"\SharedMusic"
          oShell.NameSpace("M:").Self.Name = "Muziek"




          '---Einde script---

          Comment


          • #6
            Re: Drive mapping Problem

            Have you considered changing it from a startup script to a logon script?

            Here's what I have set for logon scripts in my local computer / group policy:
            \Computer Configuration\Administrative Templates\System\Scripts

            Run logon scripts synchronously = Enabled

            \Computer Configuration\Administrative Templates\System\Logon

            Always wait for the network at computer startup and logon = Enabled

            \User Configuration\Administrative Templates\System\Scripts

            Run logon scripts synchronously = Enabled
            Run logon scripts visible = Enabled

            \User Configuration\Windows Settings\Scripts (Logon/Logoff)\Logon

            Put your script here
            Last edited by rvalstar; 10th December 2006, 21:12. Reason: added more detail
            Cheers,

            Rick

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

            2006-2099 R Valstar. This post is offered "as is" for discussion purposes only with no express or implied warranty of any kind including, but not limited to, correctness or fitness for use. Nothing herein shall be construed as advice. Attempting any activity based on information in this post is done at your own risk.

            Comment


            • #7
              Re: Drive mapping Problem

              sorry thats what i ment it is a logon policy
              it is for me a puzzle why ,
              on server in domain x there is no problem
              and that on anothers server in domain Y it is failing

              Comment


              • #8
                Re: Drive mapping Problem

                Problem solved

                rvaltar`s hint did the trick
                finally i can go home.

                thanks for all the input guys. if could i`d buy you a beer

                Comment

                Working...
                X