20
May 15
#==================================================================
#==== Simple one liner to run a query for printers to see if things change.
#==== I needed something I could run to see if the default printer changed.
#==================================================================
PS C:\> while ($true) {Get-WmiObject -Class Win32_printer | select Name, Default| ft -autosize;start-sleep 5}

Name Default
---- -------
\\PRINTSRVTP01\HP_3505 True

Name Default
---- -------
\\PRINTSRVTP01\HP_3505 True

Leave a Reply