major update to override Write-Output func
This commit is contained in:
@@ -7,7 +7,7 @@ If (! ($(Get-Service -Name 'spooler').StartType -eq "Disabled") ) {
|
||||
Control-Service -Stop -Name $SERVICE
|
||||
|
||||
## Delete all print jobs
|
||||
LogMsg "Deleting all print jobs from ""${Env:WINDIR}\System32\spool\PRINTERS"""
|
||||
Write-Output "Deleting all print jobs from ""${Env:WINDIR}\System32\spool\PRINTERS"""
|
||||
Try { Remove-Item "${Env:WINDIR}\System32\spool\PRINTERS\*" -Recurse }
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user