General discussion
February 19, 2003 at 01:03 AM
allanc

user credentials in vbs

by allanc . Updated 23 years, 7 months ago

Hi,

i am trying to map a printer using a vbs script.

i have the following script already.

Set objNetwork = CreateObject(“Wscript.Network”)
objNetwork.AddWindowsPrinterConnection “\\172.16.20.1\HPLaserJ”
objNetwork.SetDefaultPrinter “\\172.16.20.1\HPLaserJ”

i would also like to add some user logon details to this.

is this possible.

this is for machines not loging on to the server but using a user account ie showuser as an authenticating account to access the shared device.

This discussion is locked

All Comments