Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: Globally add printers

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Globally add printers
Alex at school 12.07.2007 16:06:05
sI have been using a bat file to add printer globally to work station
computers in school computer labs. This has worked just fine on Windows OS
2000. It doesn’t work on XP machines. Is there a script that can replace it?
Or can it be changed so it will work on Xp machines.
The bat file is:
rundll32 printui.dll,PrintUIEntry /in /q /n \\sever_name\printer_name
rundll32 printui.dll,PrintUIEntry /ga /q /n \\ sever_name\printer_name

Re: Globally add printers
"Alan Morris [MSFT]" <alanmo[ at ]online.microsoft.com> 12.07.2007 16:27:46
If you remove the space in the second line of \\ server_name to
\\server_name this should work in XP as well.

There are policy settings on XP that will block connections to servers on a
different domain. Can you make the connection manually as the user?

prnmngr.vbs in system32 can also be used to make connections on XP
prnmngr -ac -p "\\server\printer"


--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.

"Alex at school" <Alex at school[ at ]discussions.microsoft.com> wrote in message
news:85429667-8905-4987-B159-B12E42FDF4F6[ at ]microsoft.com...
[Quoted Text]
> sI have been using a bat file to add printer globally to work station
> computers in school computer labs. This has worked just fine on Windows OS
> 2000. It doesn't work on XP machines. Is there a script that can replace
> it?
> Or can it be changed so it will work on Xp machines.
> The bat file is:
> rundll32 printui.dll,PrintUIEntry /in /q /n \\sever_name\printer_name
> rundll32 printui.dll,PrintUIEntry /ga /q /n \\ sever_name\printer_name
>


Re: Globally add printers
Alex at school 12.07.2007 18:02:02
The space and spelling of server are my mistake in the messge, in the bat
file there is no space. And I can manually connect.
I will try the vbs and see if I can make that work
Thanks

"Alan Morris [MSFT]" wrote:

[Quoted Text]
> If you remove the space in the second line of \\ server_name to
> \\server_name this should work in XP as well.
>
> There are policy settings on XP that will block connections to servers on a
> different domain. Can you make the connection manually as the user?
>
> prnmngr.vbs in system32 can also be used to make connections on XP
> prnmngr -ac -p "\\server\printer"
>
>
> --
> Alan Morris
> Windows Printing Team
> Search the Microsoft Knowledge Base here:
> http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Alex at school" <Alex at school[ at ]discussions.microsoft.com> wrote in message
> news:85429667-8905-4987-B159-B12E42FDF4F6[ at ]microsoft.com...
> > sI have been using a bat file to add printer globally to work station
> > computers in school computer labs. This has worked just fine on Windows OS
> > 2000. It doesn't work on XP machines. Is there a script that can replace
> > it?
> > Or can it be changed so it will work on Xp machines.
> > The bat file is:
> > rundll32 printui.dll,PrintUIEntry /in /q /n \\sever_name\printer_name
> > rundll32 printui.dll,PrintUIEntry /ga /q /n \\ sever_name\printer_name
> >
>
>
>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net