TechTalkz.com Logo Ask the Expert

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Windows Server 2003

Notices

Script for Users to Connect to Homefolder (Drivemapping), and 4 shared Printers in Wireless Network

Windows Server 2003


Reply
 
Thread Tools Display Modes
Old 28-08-2007, 10:27 AM   #11
pau_zathrus@hotmail.com
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
______________________________________________

  Reply With Quote
Reply

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?

All times are GMT +5.5. The time now is 12:45 PM.


vBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2010, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional