This Article will show you how to locate printers and default printer for each user in
First, for those of you who doesn’t know, there is a file on each Windows Xp called prnmngr.vbs
and located under c:\windows\system32.
As Administrator you can use many methods for deploying the script. Group POlicy is a good idea
(use computer or user configuration\windows settings\scripts\startup script).
we choose to work with users Login scripts ( script will be placed under \\DC_Server\Netlogon).
1. Create a bat file (something like LocatePRN.bat)
2. if you depoy the script to windows XP stations, copy the following lines to the empty LocatePRN.bat:
cscript c:\windows\system32\prnmngr.vbs -l > \\FileServer\ShareName\%username%Printer.TXT
cscript c:\windows\system32\prnmngr.vbs -g > \\FileServer\ShareName\%username%defprinter.TXT
The script will use cscript to generate the prnmngr.vbs for two targets:
-L will generate a list of printers that the user have under "Printers"
-G will generate the name of the default printers that the user have under "Printers"
this task will end up presenting two files:
UsernamePrinter.TXT – the user printers
UsernamedefPrinter.TXT – the user default printers
3. if you deploy the script to Windows Servers 2003, copy the following lines to the empty LocatePRN.bat:
REGSVR32/s "\\Windows 2003 server\NETLOGON\PRNADMIN.DLL"
cscript c:\windows\system32\prnmngr.vbs -l > G:\PRINNA.TXT
cscript c:\windows\system32\prnmngr.vbs -g > G:\PRINNAdef.TXT