Discussion Locked

user credentials in vbs

0 helpful
0 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

0 replies

No replies were posted before this discussion closed.

This discussion is closed to new replies.