Hi all,<\/p>\n
I am not overly proficient in PowerShell so I am hoping somebody can help me.<\/p>\n
I need to create a script that will provide me with a list of all installed printers on all workstations in our environment. I have found the following script via another link, however it doesn’t seem to be working for me:<\/p>\n
Get-Content -Path ListOfComputers.txt | ForEach-Object {
\nGet-WmiObject -class Win32_printer -computername $_ | ft name, systemName, shareName >> C:\\result.txt
\n}<\/p>\n
Any assistance would be appreciated.<\/p>\n
Thank you,<\/p>\n
Taras<\/p>","upvoteCount":5,"answerCount":12,"datePublished":"2019-05-07T17:03:06.000Z","author":{"@type":"Person","name":"tsklierenko","url":"https://community.spiceworks.com/u/tsklierenko"},"suggestedAnswer":[{"@type":"Answer","text":"
Hi all,<\/p>\n
I am not overly proficient in PowerShell so I am hoping somebody can help me.<\/p>\n
I need to create a script that will provide me with a list of all installed printers on all workstations in our environment. I have found the following script via another link, however it doesn’t seem to be working for me:<\/p>\n
Get-Content -Path ListOfComputers.txt | ForEach-Object {
\nGet-WmiObject -class Win32_printer -computername $_ | ft name, systemName, shareName >> C:\\result.txt
\n}<\/p>\n
Any assistance would be appreciated.<\/p>\n
Thank you,<\/p>\n
Taras<\/p>","upvoteCount":5,"datePublished":"2019-05-07T17:03:06.000Z","url":"https://community.spiceworks.com/t/require-a-list-of-installed-printers-on-workstations/710822/1","author":{"@type":"Person","name":"tsklierenko","url":"https://community.spiceworks.com/u/tsklierenko"}},{"@type":"Answer","text":"