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.
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.
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.
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