PC Review


Reply
Thread Tools Rate Thread

Adding Global Printer

 
 
Daniel
Guest
Posts: n/a
 
      15th Sep 2004
Hello,

I have the following batch that I run on my network to add printers
globally, since my users can't seem to grasp the concept of connecting to
the printers on their own.

@Echo off
rundll32 printui.dll,PrintUIEntry /ga /c\\%1 /n\\%2
start /wait sc \\%1 stop spooler
start /wait sc \\%1 start spooler

The batch name is addgprinter.cmd and is in the system32 dir. Usage:
c:\>addgprinter destcomp printserv\printershare

It works fine on XP machines, but when I run it on 2000 machines, it will
stop the spooler, but will not start it. I have to manually start it. Can
anyone help me?

Thanks,

Daniel


 
Reply With Quote
 
 
 
 
Mark V
Guest
Posts: n/a
 
      15th Sep 2004
In microsoft.public.win2000.cmdprompt.admin Daniel wrote:

> Hello,
>
> I have the following batch that I run on my network to add
> printers globally, since my users can't seem to grasp the concept
> of connecting to the printers on their own.
>
> @Echo off
> rundll32 printui.dll,PrintUIEntry /ga /c\\%1 /n\\%2
> start /wait sc \\%1 stop spooler
> start /wait sc \\%1 start spooler
>
> The batch name is addgprinter.cmd and is in the system32 dir.
> Usage: c:\>addgprinter destcomp printserv\printershare
>
> It works fine on XP machines, but when I run it on 2000 machines,
> it will stop the spooler, but will not start it. I have to
> manually start it. Can anyone help me?


Just a suggestion. YMMV
...
start /wait sc \\%1 stop spooler
ping.exe -n 11 127.0.0.1 >nul
start /wait sc \\%1 start spooler

Please say if that helps.

 
Reply With Quote
 
Ed Siff
Guest
Posts: n/a
 
      20th Sep 2004
Try 'call start /wait sc \\%1 stop spooler'.

Ed

In article <#(E-Mail Removed)>, "Daniel"
<(E-Mail Removed)> wrote:
>Hello,
>
>I have the following batch that I run on my network to add printers
>globally, since my users can't seem to grasp the concept of connecting to
>the printers on their own.
>
>@Echo off
>rundll32 printui.dll,PrintUIEntry /ga /c\\%1 /n\\%2
>start /wait sc \\%1 stop spooler
>start /wait sc \\%1 start spooler
>
>The batch name is addgprinter.cmd and is in the system32 dir. Usage:
>c:\>addgprinter destcomp printserv\printershare
>
>It works fine on XP machines, but when I run it on 2000 machines, it will
>stop the spooler, but will not start it. I have to manually start it. Can
>anyone help me?
>
>Thanks,
>
>Daniel
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding global objects to a web application Andy B Microsoft ASP .NET 5 29th Apr 2008 05:50 PM
Adding .dll to the global assembly cache jcolston5@hotmail.com Microsoft ASP .NET 0 26th Sep 2005 10:17 AM
need help adding global DEFAULT printer for all users on XP pc =?Utf-8?B?QmV3aWxkZXJlZCBJVCBnaXJs?= Windows XP Print / Fax 1 16th Sep 2005 06:46 PM
Adding global printers to XP =?Utf-8?B?c3RldmVv?= Windows XP Print / Fax 1 7th Oct 2004 09:47 PM
adding global text to a new field =?Utf-8?B?RGFyY2llIEhhcnJpcw==?= Microsoft Outlook 1 7th Oct 2004 01:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:26 AM.