Announcement

Collapse
No announcement yet.

Administrator Account Not Mapping Drives

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

  • Administrator Account Not Mapping Drives

    Hello All,

    I have a SBS 2003 that is not mapping drives when using a vbs script. Windows XP machines are successfully mapping the drives. On the 2003 machine the mapdrives.vbs is listed in two areas under Group Policy Management. Those are under SBSUsers/Auto-Mapped Drives and Group Policy Objects/Auto Mapped Drive. Authenticated Users are listed in both under Security Filtering.

    Any ideas for a solution would be appreciated.

    Thanks,

  • #2
    Re: Administrator Account Not Mapping Drives

    Moved to SBS forum
    Can you post the script please?
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

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

    Comment


    • #3
      Re: Administrator Account Not Mapping Drives

      Attached is the vbs script file.

      thanks,
      Attached Files

      Comment


      • #4
        Re: Administrator Account Not Mapping Drives

        Sorry to be awkward, but I do not like opening unknown zip files, and most other members feel the same way.
        Could you please put the script contents straight into your post, using the CODE or QUOTE tags
        Tom Jones
        MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
        PhD, MSc, FIAP, MIITT
        IT Trainer / Consultant
        Ossian Ltd
        Scotland

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

        Comment


        • #5
          Re: Administrator Account Not Mapping Drives

          Listed below is the code for the script file

          '************************************************* *********************************
          ' Set Environment Variables
          '************************************************* ********************************
          Set WSHNetwork = WScript.CreateObject("WScript.Network")
          Set WSHShell = WScript.CreateObject("WScript.Shell")

          On Error Resume Next

          Domain = WSHNetwork.UserDomain
          UserName = ""

          While UserName = ""
          UserName = WSHNetwork.UserName
          MyGroups = GetGroups(Domain, UserName)
          Wend

          '************************************************* ********************************
          ' Main Process:
          '************************************************* ********************************
          GrpMeb UserName
          ShowBox

          Wscript.Quit

          '************************************************* ********************************
          'Function: GetGroups
          '************************************************* ********************************
          Function GetGroups(Domain, UserName)
          Set objUser = GetObject("WinNT://" & Domain & "/" & UserName)
          GetGroups=""
          For Each objGroup In objUser.Groups
          GetGroups=GetGroups & "[" & UCase(objGroup.Name) & "]"
          Next
          End Function

          '************************************************* *******************************
          'Function: InGroup
          '************************************************* *******************************
          Function InGroup(strGroup)
          InGroup=False
          If InStr(MyGroups,"[" & UCase(strGroup) & "]") Then
          InGroup=True
          End If
          End Function

          '************************************************* ********************************
          ' MapDrives Subroutine
          '************************************************* ********************************
          Sub MapDrive(sDrive,sShare)
          On Error Resume Next
          WSHNetwork.RemoveNetworkDrive sDrive, 1, 1
          wscript.sleep 1000
          Err.Clear
          WSHNetwork.MapNetworkDrive sDrive,sShare
          End Sub

          '************************************************* *******************************
          'Map Drives:
          '************************************************* *******************************
          Sub GrpMeb(UNAME)
          MapDrive "E:", "\\medcaresvr1\EZCLAIM"
          MapDrive "R:", "\\medcaresvr1\Backups"
          MapDrive "H:", "\\medcaresvr1\Users"
          WSHNetwork.AddWindowsPrinterConnection "\\Allen-001\TOSHIBAe"
          End Sub

          Comment


          • #6
            Re: Administrator Account Not Mapping Drives

            Have you done an RSoP for the machine in question and the administrator account, and confirmed the script is picked up.


            You might also want to review this on running VBS on a DC:
            http://www.symantec.com/connect/foru...-dc-vbs-script
            Tom Jones
            MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
            PhD, MSc, FIAP, MIITT
            IT Trainer / Consultant
            Ossian Ltd
            Scotland

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

            Comment


            • #7
              Re: Administrator Account Not Mapping Drives

              you've got commands in there to check group membership - is the admin a member of the correct groups
              Please do show your appreciation to those who assist you by leaving Rep Point https://www.petri.com/forums/core/im.../icon_beer.gif

              Comment


              • #8
                Re: Administrator Account Not Mapping Drives

                When I log into a client system with the administrator account the drives are not mapped.

                The Simulated Security Group Membership from RSoP is listed below:
                MEDCARELLC\administrator
                MEDCARELLC\Offer Remote Assistance Helpers
                BUILTIN\Administrators
                BUILTIN\Users
                MEDCARELLC\Domain Users
                Everyone
                NT AUTHORITY\Authenticated Users
                NT AUTHORITY\This Organization
                MEDCARELLC\Domain Admins
                MEDCARELLC\Group Policy Creator Owners
                MEDCARELLC\SBS Mobile Users
                MEDCARELLC\Schema Admins
                MEDCARELLC\Enterprise Admins
                MEDCARELLC\SBS Report Users

                Does the Administrator account have to be part of the SBSUsers group for the script to run? Shouldn't any authenticated user have the script executed. If it is not the SBSUser membership, what would be the restriction that would prevent the script from running?

                Thanks,

                Nick

                Comment


                • #9
                  Re: Administrator Account Not Mapping Drives

                  Does the RSoP show the specific GPO being applied?
                  Tom Jones
                  MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
                  PhD, MSc, FIAP, MIITT
                  IT Trainer / Consultant
                  Ossian Ltd
                  Scotland

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

                  Comment


                  • #10
                    Re: Administrator Account Not Mapping Drives

                    The only applied GPO listed is "Default Domain Policy".

                    An account in the SBSUsers group lists both the "Default Domain Policy" and the "Auto-Mapped Drives" in the applied GPO's.

                    Thanks,

                    Nick

                    Comment


                    • #11
                      Re: Administrator Account Not Mapping Drives

                      OK -- so add the administrator to SBSUsers and re-run RSoP

                      Since policy is not being applied, no way the script will run, so we need to get the policy to apply.

                      Where is the policy linked -- to the domain or to an OU?
                      Tom Jones
                      MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
                      PhD, MSc, FIAP, MIITT
                      IT Trainer / Consultant
                      Ossian Ltd
                      Scotland

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

                      Comment


                      • #12
                        Re: Administrator Account Not Mapping Drives

                        I've uploaded a PDF file of the settings. Please let me know how you think I should proceed. As far as adding the Administrator to the SBSUsers group, I must be missing something very basic, but I can not find any group labled with that name.

                        Thanks,

                        Nick
                        Attached Files

                        Comment


                        • #13
                          Re: Administrator Account Not Mapping Drives

                          SBS Users is an OU -- your best bet would be to link the automapped drives policy to the domain -- right click the MedCareLLC.com domain and "link a GPO here" then select the drives GPO
                          Tom Jones
                          MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
                          PhD, MSc, FIAP, MIITT
                          IT Trainer / Consultant
                          Ossian Ltd
                          Scotland

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

                          Comment


                          • #14
                            Re: Administrator Account Not Mapping Drives

                            I will not be able to try your suggestion until all users are off of the system this evening. So I take from your explanation that the administrator account can not be a member of the SBSUsers OU?

                            Comment


                            • #15
                              Re: Administrator Account Not Mapping Drives

                              Why not? -- no reboot or anything else needed

                              By default the administrators account is in the Users container and SBS being SBS, it is better if it stays there. So linking the GPO to the domain will apply it to "Users"
                              Tom Jones
                              MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
                              PhD, MSc, FIAP, MIITT
                              IT Trainer / Consultant
                              Ossian Ltd
                              Scotland

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

                              Comment

                              Working...
                              X