MapNetworkDrive to Multiple Drives

Thursday, April 30th, 2009 248 views

Our objective is to map two drives, M: and P: with a logon script. The corresponding shares are held on a Windows 2003 server. However, you could use any Microsoft machine later than Windows 95 to host the shared folders. Pre-requisites for MapNetworkDrive On Line 15 change the server name from ‘\\server’ to your server [...]

Map two printers: Set your Default Printer

Thursday, April 30th, 2009 151 views

Once you add a second or third printer, it makes sense to set the default printer rather than leave it to chance. In this example I have set the default printer to strUNCPrinter1, however, you may wish to amend this value. ‘ PrinterSetDefault.vbs – Windows Logon Script. ‘ VBScript – Set Default Printer ‘ Version [...]

Map two printers in Your Network printing

Thursday, April 30th, 2009 152 views

Here in Stage Two is where we fulfil our mission and add more printers. Let us build on the success of Stage One and add an extra command, which maps a second printer. ‘ PrintersTwo.vbs – Windows Logon Script. ‘ VBScript – Connect two network printers ‘ Version 3.1 – by: http://www.tips247.net/tag/mapped-network/ Option Explicit Dim [...]

Printer AddWindowsPrinterConnection

Thursday, April 30th, 2009 155 views

Mapping Printers is a classic job for a Windows logon script. All you need to test this script is a shared network printer, the key method is AddWindowsPrinterConnection. The script works on XP, Windows 2003 and NT 4.0 clients. However, if you have Windows 9x machines, they as usual they need extra arguments. This page [...]

Windows 9x with AddWindowsPrinterConnection

Thursday, April 30th, 2009 189 views

Pre-requisites for AddWindowsPrinterConnection This is the same basic script as example 1 and 2. The difference in this example, is that Windows 9x adds an extra argument, which specifies the printer driver. Incidentally, I found the name of the printer driver buy looking on the advanced tab, Drivers. (See diagram) You must have already installed [...]

Printer Script with AddWindowsPrinterConnection

Thursday, April 30th, 2009 203 views

This script has the same core as the first example but with a few extra coding niceties. As you get to know my VBScript style, so you will see my familiar heading section, liberal use of variables, and a WScript.Echo message box to confirm what has happened. ‘ PrintersLong.vbs – Windows Logon Script. ‘ VBScript [...]