Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Document PrintersContent of Document Printers.ps1MD5 Hash: 180A3181C66C7CF9565E31D565944B7D |
||
$computers = "localhost"
$classes = "Win32_Printer", "Win32_TcpIpPrinterPort", "Win32_Share" $file = "C:\fso\printers.txt" Foreach($computer in $computers) { Foreach($class in $classes) { if($class -eq "win32_share") { Get-WmiObject -class $class -filter "type = 1" >> $file } ELSE { Get-WmiObject -class $class >> $file } } #end foreach class } #end foreach computer notepad $file | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |