VicRattlehead
Technical User
Hey guys,sorry if this is in the wrong bord.
I have a script that logs me on from My laptop to my colleges(domain) printer!Now the Admin has address the need for user name and password to this printer,Ive been given a user name and password to access to the printer and wondering How id add the user name and password to that script.
Please find below a compy of My script so far
Set WshNetwork = WScript.CreateObject("WScript.Network")
PrinterPath = "\\rockapplication\printerroome"
WshNetwork.AddWindowsPrinterConnection PrinterPath
WScript.quit
I have a script that logs me on from My laptop to my colleges(domain) printer!Now the Admin has address the need for user name and password to this printer,Ive been given a user name and password to access to the printer and wondering How id add the user name and password to that script.
Please find below a compy of My script so far
Set WshNetwork = WScript.CreateObject("WScript.Network")
PrinterPath = "\\rockapplication\printerroome"
WshNetwork.AddWindowsPrinterConnection PrinterPath
WScript.quit