Questions

Login Script

Tags:
+
0 Votes
Locked

Login Script

r39hive
I need a simple login script for drive mappings, printers and pushing exe file through login script for example DST push.

Anybody knows a site?
  • +
    0 Votes
    Jacky Howe

    This site has a lot of information and explanations.

    http://www.computerperformance.co.uk/Logon/logon_scripts.htm

    +
    0 Votes
    CookieOrc

    Old sample of mine for a batch file setup

    Echo Off
    REM Drive map for Casselle, Misc, and Quicken Drives shared on the server
    REM Created by:Bryce Boone
    REM Date: 08/11/05
    REM --------------------------------------------------
    net use O: \\<ServerName>\<Share>
    net use M: \\lgsvr01\Misc
    net use N: \\lgsvr01\Quicken

    +
    0 Votes
    CookieOrc

    This is a VBS example

    ' Drivemap.vbs - Map Network Drives for Caselle, Quicken & Misc
    ' -----------------------------------------------------------------'
    Option Explicit
    Dim objNetwork, strRemotePath1, strRemotePath2, strRemotePath3
    Dim strDriveLetter1, strDriveLetter2, strDriveLetter3

    strDriveLetter1 = "O:"
    strDriveLetter2 = "M:"
    strDriveLetter3 = "N:"
    strRemotePath1 = "\\<server name>\<share name>"
    strRemotePath2 = "\\lgsvr01\Misc"
    strRemotePath3 = "\\lgsvr01\Quicken"

    Set objNetwork = CreateObject("WScript.Network")

    ' Section which maps two drives, O: , M: and N:
    objNetwork.MapNetworkDrive strDriveLetter1, strRemotePath1
    objNetwork.MapNetworkDrive strDriveLetter2, strRemotePath2
    objNetwork.MapNetworkDrive strDriveLetter3, strRemotePath3

    Wscript.Quit

    ' End of Windows Logon Script

    +
    0 Votes
    scott_heath

    I suggest you use vbscript as you can easily map drives based on group membership and execute all sorts of other things.

  • +
    0 Votes
    Jacky Howe

    This site has a lot of information and explanations.

    http://www.computerperformance.co.uk/Logon/logon_scripts.htm

    +
    0 Votes
    CookieOrc

    Old sample of mine for a batch file setup

    Echo Off
    REM Drive map for Casselle, Misc, and Quicken Drives shared on the server
    REM Created by:Bryce Boone
    REM Date: 08/11/05
    REM --------------------------------------------------
    net use O: \\<ServerName>\<Share>
    net use M: \\lgsvr01\Misc
    net use N: \\lgsvr01\Quicken

    +
    0 Votes
    CookieOrc

    This is a VBS example

    ' Drivemap.vbs - Map Network Drives for Caselle, Quicken & Misc
    ' -----------------------------------------------------------------'
    Option Explicit
    Dim objNetwork, strRemotePath1, strRemotePath2, strRemotePath3
    Dim strDriveLetter1, strDriveLetter2, strDriveLetter3

    strDriveLetter1 = "O:"
    strDriveLetter2 = "M:"
    strDriveLetter3 = "N:"
    strRemotePath1 = "\\<server name>\<share name>"
    strRemotePath2 = "\\lgsvr01\Misc"
    strRemotePath3 = "\\lgsvr01\Quicken"

    Set objNetwork = CreateObject("WScript.Network")

    ' Section which maps two drives, O: , M: and N:
    objNetwork.MapNetworkDrive strDriveLetter1, strRemotePath1
    objNetwork.MapNetworkDrive strDriveLetter2, strRemotePath2
    objNetwork.MapNetworkDrive strDriveLetter3, strRemotePath3

    Wscript.Quit

    ' End of Windows Logon Script

    +
    0 Votes
    scott_heath

    I suggest you use vbscript as you can easily map drives based on group membership and execute all sorts of other things.