HighTechTalks DotNet Forums  

adding a network printer to a non domain machine (xp Home)

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss adding a network printer to a non domain machine (xp Home) in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Dan
 
Posts: n/a

Default adding a network printer to a non domain machine (xp Home) - 05-03-2005 , 04:11 PM






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

Reply With Quote
  #2  
Old   
Jim Hughes
 
Posts: n/a

Default Re: adding a network printer to a non domain machine (xp Home) - 05-03-2005 , 09:17 PM






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

Quote:
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



Reply With Quote
  #3  
Old   
Dan
 
Posts: n/a

Default Re: adding a network printer to a non domain machine (xp Home) - 05-04-2005 , 07:17 AM



Thank you for your response
I tried that that is true when i connect to a share via \\server\ipc$ i can
pass credentials then can connect to the printer via \\server\printer and it
will use the existing connection. but when i script it to map the drive then
add the printer it doesn't use the connection even tried connecting then
scripting just the printer and that didn't work. i looked into the iis
printers directory they seem to be using an OLEinstall object to do this but
i can't find any documentation

"Jim Hughes" wrote:

Quote:
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




Reply With Quote
  #4  
Old   
Zeff Warner
 
Posts: n/a

Default Re: adding a network printer to a non domain machine (xp Home) - 09-12-2007 , 06:04 AM



Hi Dan,
I have the same problem. Did you find a solution for the XP home client?
Maybe you can help me any further?

Thanks in advance,

Zeff

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.