![]() |
![]() |
|
|||||||
| Register | Forum Rules | Getting Started! - Guide | Blog | Videos | Gallery | Members List | Social Groups | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Guest
Posts: n/a
|
Re: Script for Users to Connect to Homefolder (Drivemapping), and 4 shared Printers in Wireless Network
> The syntax for the MapNetworkDrive method is > object.MapNetworkDrive(strLocalName, strRemoteName, [bUpdateProfile], > [strUser], [strPassword]) Heres the Result so far: __________________________________________________ ___________________ Option Explicit Dim objNetwork, strLocal, strUNCPrinter1, strUNCPrinter2, strUNCPrinter3, strUNCPrinter4,strLocalName, strRemoteName, strUsername, strPassword strLocalname = "Q:" strRemotename = "\\berndc1\pershomedir\Username" strUsername = "Username" StrPassword = "P@ZWoRD" strLocal = "Bizhub" strUNCPrinter1 = "\\berndc1\Bizhub" strUNCPrinter2 = "\\Berndc1\Konica7040" strUNCPrinter3 = "\\Berndc1\Konica7022" strUNCPrinter4 = "\\Berndc1\hp4100" Set objNetwork = CreateObject("WScript.Network") objNetwork.AddWindowsPrinterConnection strUNCPrinter1 objNetwork.AddWindowsPrinterConnection strUNCPrinter2 objNetwork.AddWindowsPrinterConnection strUNCPrinter3 objNetwork.AddWindowsPrinterConnection strUNCPrinter4 objNetwork.SetDefaultPrinter strUNCPrinter1 WScript.Quit ______________________________________________ |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Searching the Directory for Shared Printers | James U | Windows Server 2003 | 0 | 28-08-2007 09:28 AM |
| Searching the Directory for Shared Printers | James U | Windows Server 2003 | 0 | 28-08-2007 09:28 AM |
| XP Clients require password to connect to shared printers on 2003 Server | Daniel Farst | Windows Server 2003 | 11 | 28-08-2007 08:42 AM |
| XP Clients require password to connect to shared printers on 2003 Server | Daniel Farst | Windows Server 2003 | 1 | 28-08-2007 08:40 AM |
| removing/replacing network printers in a VB script | Lucas | Windows Server 2003 | 2 | 28-08-2007 06:24 AM |
< Home - Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |