Avatar of KUPAdmin
KUPAdmin
 asked on

Script to list users network printers to a .txt file

Unfortunately I have no knowledge of scripting but I know this is going to be easy for you guys.  Anyway we are going through a PC replenishment and I need to be able to logon to the old xp machines and get a list of network printers that a user may have installed on that system and have it sent to the root of the drive as a text file.  I appreciate any help you folks can provide.
VB ScriptProgramming Languages-Other

Avatar of undefined
Last Comment
graye

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Bill Prew

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
KUPAdmin

ASKER
Will this list all network printers installed under all user profiles?  Since there may be multiple user profiles on the system.   Is there a way to do this by specifying a specific user profile name while logged in as a local administrator.  Unfortunately we cannot log on as the user because of not knowing the password.  Hope I'm making sense.  Thanks again
Bill Prew

No, that would only report the currently logged in users connections.  I'm not aware of a way to get it for all user profiles on a system, but someone else may know a way.

~bp
SOLUTION
yo_bee

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
KUPAdmin

ASKER
yo bee I wish I could but most users are University faculty and not available over the summer.  We are looking to complete the replenishment while they are off campus.  Thanks again for your help.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
graye

You might consider a ready-made utility that will accomplish what you want.   I've got such a utility, called SOSOS, that even comes with VB.Net source code.

You can run it from an adminstrator's PC to "poll the network" for all sorts of information (to include the mapping of user's printer).  Yes, as yo_bee says, it will temporarily attached each user's NTUSER.DAT file, perform the search, and then detached it.

OK, I'll admit that SOSOS is probably total overkill, but you're welcome to try it (it's free) and perhaps even poke around the source code to derive something else that suits your needs.  Anyway, if you'd like to take a look, it's at:  http://www.sosos.emmet-gray.com