Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

PrintUI and WMI (Win32_Printer) Having Issues

$
0
0

I'm using the following command (as System) to remotely install a printer for all users on the computer:

printui /ga /q /n"\\SERVER\PRINTER"

I then issued the following command (via Powershell as System and as the local user) to receive a list of printers:

Get-WmiObject Win32_Printer

This command returns every printer except for this server share installed printer.

I have then VNC'd into the machine to verify that it does have that printer installed.

I have written a VBScript that uses a WMI query on the Win32_Printer class and that also doesn't return the installed printer.

Is there a reason why this printer doesn't show up in this listing?

Is there a way to force a "refresh" of this information so I can get an accurate reading?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>