• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Can't map network printer w/ logon script on Windows

Cooky

Golden Member
I have this line in my logon script:
rundll32 printui.dll,PrintUIEntry /in /y /n \\pghdc01\engineer

It works w/ most printers on our network, except this particular printer, "engineer".
When users logon, they get error
"This operation cannot be completed".
Anyone know how I can get this fixed?

Thanks.

Edit
It turns out you can't have both /in and /y switches in the same line.
That was the problem; I was mistaken when I said the line worked on other printers.

It's all good now. Thanks for everyone's input.
 
Users can manually map to the printer successfully so yes they have rights to the "engineer" printer.

What do you mean can we resolve the name? It's not in the DNS like computers, but just a shared printer name on the print server.
 
try to ping pghdc01
try to net view pghdc01
other then that, if it's scripting, I have no idea. You could try to use IP istead of name, i.e. \\10.10.10.10.\engineer
 
Thanks for the quick reply.

I'm able to ping pghdc01, and I can see the printers w/ "net view".
The same script line works w/ all the other printers but this one.
 
is it possible that you have a space at the end of the sharename "engineer" that would probably prevent you from installing with a script. good luck
 
I did some experiment and found out that whenever we have the /y switch to set the printer as the default, that line would throw out the error.
If we map the printers w/o the /y switch, everything's fine.

Does anyone know why we can't get the /y (default printer) switch to work?
 
rundll32 printui.dll,PrintUIEntry /in /y /n \\pghdc01\engineer

It turns out you can't have both /in and /y switches in the same line.
That was the problem; I was mistaken when I said the line worked on other printers.

It's all good now. Thanks for everyone's input.
 
Back
Top