Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine Set-ExecutionPolicy -ExecutionPolicy AllSigned -Scope Process
| AllSigned | |
| Default | |
| RemoteSigned | |
| Restricted | |
| Undefined | |
| Unrestricted | |
$Printer = Get-Printer -Name "Microsoft XPS Document Writer" Remove-Printer -InputObject $Printer
write-host $(If ($fileHash -eq $knownHash) {"hash matches"} Else {"hash doesn't match"})