General discussion

  • Creator
  • #2178424

    Login Script for windows 2003 server


    by clintondepoel ·

    I need help creating a Login Script that will accomidate the following:
    Allocates them the following drives:
    S: Software
    Map all users upon loggining in to their respective home directories under the drive letter H:
    Map using the letter I: access to the application directory.

All Comments

  • Author
    • #3131544

      Reply To: Login Script for windows 2003 server

      by anne.jan.elsinga ·

      In reply to Login Script for windows 2003 server

      There are a couple of possibilities:
      * batchfile
      * Kixtart
      * VBScript
      * other 3rd party tool like ScriptLogic

      I myself am a Kixtart fanatic. Easy to use and easy to understand login scripts.

      with Kixtart you can create scripts like:
      USE S: \\SRVR\Software
      USE I: \\SRVR\Apps

      Check for more information.

    • #3131535

      Reply To: Login Script for windows 2003 server

      by jdgretz ·

      In reply to Login Script for windows 2003 server

      I’d do this by combining two processes.

      First, in the user profile in AD you can set the home directory – that’s where I’d set “H”.

      The other two are simple net use statements.

      net use s: /delete
      net use s: \\servername\directoryname

      net use q: /delete
      net use q: “\\servername\share name”

      I prefer to delete the drive first, just to be sure – hold over from the old DOS days.

      Note – if there is a space in directory/sharename then you have to enclose the string in “”.


      • #2805889

        “net use” command to map network drives

        by cody ·

        In reply to Reply To: Login Script for windows 2003 server

        I use this myself for what I do as it’s the simpliest method.

        You can do it using KIX as well but I’ve found it doesn’t work well for VPN users who needs their drives mapped as it takes a long time.

        Using the “net use” command mentioned above works well and very simple.

        I too would delete the drive firstl as well in case users map it manually to something else, otherwise it won’t map it.

    • #2528165

      Drive Mapping

      by asadfarooqi1 ·

      In reply to Login Script for windows 2003 server

      save this file as filename.vbs
      and then put it in act login script in active directory user area.

      Option Explicit
      Dim objNetwork, strRemotePath1, strRemotePath2
      Dim strDriveLetter1, strDriveLetter2
      strDriveLetter1 = “M:”
      strDriveLetter2 = “P:”
      strRemotePath1 = “\\alan\drivers”
      strRemotePath2 = “\\alan\downloads reports”
      Set objNetwork = CreateObject(“WScript.Network”)
      ‘ Section which maps two drives, M: and P:
      objNetwork.MapNetworkDrive strDriveLetter1, strRemotePath1
      objNetwork.MapNetworkDrive strDriveLetter2, strRemotePath2
      ‘ Extra code just to add a message box
      WScript.Echo “Map drives ” & strDriveLetter1 & ” & ” & strDriveLetter2

Viewing 2 reply threads