Location Adaptive Logon Script

KB Home   |   Location Adaptive Logon Script

Main.AdaptiveLogonScript History

Hide minor edits - Show changes to output

Added lines 37-38:
'''TIP:''' Also consider setting the ''default printer'' to the most sensible selection for the given location.
Added line 39:
[-keywords: mapping printers, logon script -]
Changed lines 1-2 from:
Writing a location adaptive login script is a good solution for small to medium sized networks or networks where computers are named using a convention relevant to location.  This solution has been adopted by PaperCut users with small networks. Frank from Rowland Medical Library has contributed an [[LogonScriptCon2prt |example]] that uses [[LogonScriptCon2prt |con2prt]]. 
to:
(:title Location Adaptive Logon Script :)

Writing
a location adaptive login script is a good solution for small to medium sized networks or networks where computers are named using a convention relevant to location.  This solution has been adopted by PaperCut users with small networks. Frank from Rowland Medical Library has contributed an [[LogonScriptCon2prt | example]] that uses [[http://support.microsoft.com/kb/181663 | con2prt]]. 
Changed lines 37-40 from:
Also see: AddingPrintersInAnEducationEnvironment for more examples.
to:
Also see: [[AddingPrintersInAnEducationEnvironment | +]] for more examples.

----
''Categories:'' [[!Scripting]], [[!Users]]
Changed line 1 from:
Writing an adaptive login script is a good solution for small to medium sized networks or networks where computers are named using a convention relevant to location.  This solution has been adopted by PaperCut users with small networks. Frank from Rowland Medical Library has contributed an [[LogonScriptCon2prt example]] that uses [[LogonScriptCon2prt con2prt]]. 
to:
Writing a location adaptive login script is a good solution for small to medium sized networks or networks where computers are named using a convention relevant to location.  This solution has been adopted by PaperCut users with small networks. Frank from Rowland Medical Library has contributed an [[LogonScriptCon2prt example]] that uses [[LogonScriptCon2prt con2prt]]. 
Added lines 34-35:

Also see: AddingPrintersInAnEducationEnvironment for more examples.
Changed lines 1-33 from:
Describe AdaptiveLogonScript here.
to:
Writing an adaptive login script is a good solution for small to medium sized networks or networks where computers are named using a convention relevant to location.  This solution has been adopted by PaperCut users with small networks. Frank from Rowland Medical Library has contributed an [[LogonScriptCon2prt example]] that uses [[LogonScriptCon2prt con2prt]]. 

Another alternative is to use a [=VBScript=] based logon script.  An example follows:

'''loginscript.vbs'''
 [=
 '
 ' A Login script to set up printers based on location.
 '
 Dim oNet
 Set oNet = CreateObject("WScript.Network")
 Dim strComputerName
 strComputerName = oNet.ComputerName

 '
 ' If computer is in the science lab (ie. a computer name starting with
 ' SCI_LAB then add the science lap laser printer.
 '
 If InStr(strComputerName, "SCI_LAB") > 1 Then
    oNet.AddWindowsPrinterConnection "\\MainServer\SCI_LAB_Laser"
 End If

 '
 ' If in library then add library printers
 '
 If InStr(strComputerName, "LIBRARY") > 1 Then
    oNet.AddWindowsPrinterConnection "\\MainServer\LibaryHP"
    oNet.AddWindowsPrinterConnection "\\MainServer\LibaryColor"
 End If
=]

Administrator should use group policies to define the login script.  More information is available at:
->[[http://www.microsoft.com/resources/documentation/Windows/2000/server/reskit/en-us/Default.asp?url=/resources/documentation/Windows/2000/server/reskit/en-us/prork/prda_dcm_xfbt.asp Microsoft's MSDN Website]]

Comments

Share your findings and experience with other PaperCut users. Feel free to add comments and suggestions about this Knowledge Base article. Please don't use this for support requests.

Article last modified on April 09, 2008, at 11:05 AM
Printable View   |   Article History   |   Edit Article