Thursday, April 30th, 2009 249 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 [...]
Posted in How to, Knowledge, Tutorials | No Comments »
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 [...]
Posted in How to, Knowledge, Tutorials | No Comments »
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 [...]
Posted in How to, Knowledge, Tutorials | No Comments »
Thursday, April 30th, 2009 156 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 [...]
Posted in How to, Knowledge, Tutorials | No Comments »
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 [...]
Posted in How to, Knowledge, Tutorials | No Comments »
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 [...]
Posted in Hosting Tutorial | No Comments »
Thursday, April 30th, 2009 267 views
Our objective remains to map a drive, but this time I have chosen the K: drive. My share name and server are the same as example 1, ‘\printers’ and ‘\\server’. The only difference is to add a message box so that you know what’s happening. Pre-requisites. On Line 10 change the server name from ‘\\server’ [...]
Posted in How to, Knowledge, Tutorials | No Comments »