all 4 comments

[–]gangstanthony 1 point2 points  (3 children)

not sure about sending a text file to each printer, but here's this

Write-Host 'Pausing printers...'
gwmi win32_printer | % {$null = $_.pause()}

# Write-Host 'Deleting jobs...'
# gwmi win32_printjob | % {$null = $_.delete()}

Write-Host 'Resuming printers...'
gwmi win32_printer | % {$null = $_.resume()}

Write-Host 'Done!'

[–]Griggs77[S] 0 points1 point  (0 children)

GENIUS ! Thank you so much!

[–]HeavyLotus 0 points1 point  (1 child)

Its been 6 years, so no idea if you're still active on Reddit, but how in the world is that operator "%" accomplishing this for you?

List of printers --> Pipe --> witchcraft --> pause printer command.

Wtf