RSS

W2K defaut limitation on printer enumeration

18 Sep

I was running the standard printer enum script in my resouce kit, prnmgr.vbs (via prnadmin.dll) and could not seem to get my W2K printer to list out its printers to me remotely. However, I had no problems when doing this with W2K3. Did a search on the net and found this…

http://www.mcse.ms/message1081235.html
By default, the print spooler on Windows 2000 transfers up to 1 MB of data in an RPC call. The default on Windows Server 2003 is 50 MB. When you have a large number of print queues, the buffer size required in order to transfer the data for the EnumPrinters RPC call can be greater than 1MB.

Add the following registry value under the key:
HKLM\SYSTEM\CurrentControlSet\Control\Print
MaxRpcSize REG_DWORD (desired max size in bytes, set it to 5 or 10 MB)

restart the spooler service (“net stop spooler” and then “net start spooler” from a cmd)

Advertisements
 
Leave a comment

Posted by on September 18, 2006 in Windows

 

Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: