Mark Minasi's Tech Forum
Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
JimiV

New Friend (or an Old Friend who Built a New Account)
Registered:
Posts: 58
Reply with quote  #1 
Hi all,

If I run this
 gwmi win32_printer -ComputerName OMAWS2UA7221P4M |select caption,name,deviceid,drivername,portname|Out-GridView

I get a list of the installed local printers, But I also need to see the network printers that are mapped to that computer.

Does anyone have a script that does that and one that will list software on a remote PC?

Something simple please, I'm just dipping toe back in PS and examples that are easy to follow (and work) are a HUGE help!

Thanks!!

0
cj_berlin

Avatar / Picture

Senior Member
Registered:
Posts: 300
Reply with quote  #2 
Hi,

network printer are mapped into a user session, not to a computer. So you will probably have to dive into the registry. The biggest problem being having to read the user hive that's loaded at that moment.

As to inventorying installed software, there are plenty of modules / scripts that do that.
E.g. https://www.powershellgallery.com/packages/AssetInventory/1.0.1.6 exports cmdlets for listing 32-bit and 64-bit software

__________________
Evgenij Smirnov

My personal blog (German): http://www.it-pro-berlin.de/
My stuff on PSGallery: https://www.powershellgallery.com/profiles/it-pro-berlin.de/
0
JimiV

New Friend (or an Old Friend who Built a New Account)
Registered:
Posts: 58
Reply with quote  #3 
Thanks for the quick reply.

Reading the Hive doesn't sound like something that would be easy for such a beginner as myself.  Oh well, it would be useful, but not a critical thing.

Thanks for the tip on the inventory.  I did find something that works, but always looking to learn more!
0
Pieter

Avatar / Picture

Senior Member
Registered:
Posts: 245
Reply with quote  #4 
Hi,  run "wmic printer get name > \\YOURSERVER\YourShare\%username%@%computername%.txt"  on the client, from the loginscript for example.

Be sure that users have write access to that share.





__________________
Pieter Demeulemeester
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.