![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I work at a university in which all students are given a laptop with xphome(we are not going to put them on the domain) a am writing a script to mapdrives and connect printers for them according to the course they are currently in. I am able to map the drives using Dim n As New IWshRuntimeLibrary.WshNetwork n.MapNetworkDrive(letter & ":", Replace(connection, "username", username), False, username & "@university.edu", pwd) however the n.addwindowsprinterconnection(\\server\printer) doesn't take credentials so all attempts to connect printers return access denied. So is there a way to connect printers from a server passing credentials |
#3
| |||
| |||
|
|
You could try connecting to the \\server\IPC$ share first. Then when using the addwindowsprinterconnection, it will use the existing credentials that were established to the IPC$ share. FYI, IPC is InterProcess Communication. Then when using the "Dan" <Dan (AT) discussions (DOT) microsoft.com> wrote in message news:92B4828F-3684-4DAB-A33C-10839D282FB9 (AT) microsoft (DOT) com... I work at a university in which all students are given a laptop with xphome(we are not going to put them on the domain) a am writing a script to mapdrives and connect printers for them according to the course they are currently in. I am able to map the drives using Dim n As New IWshRuntimeLibrary.WshNetwork n.MapNetworkDrive(letter & ":", Replace(connection, "username", username), False, username & "@university.edu", pwd) however the n.addwindowsprinterconnection(\\server\printer) doesn't take credentials so all attempts to connect printers return access denied. So is there a way to connect printers from a server passing credentials |
#4
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |