Table of Contents

PowerShell Scripts

Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
Set-ExecutionPolicy -ExecutionPolicy AllSigned -Scope Process
AllSigned FIXME
Default FIXME
RemoteSigned FIXME
Restricted FIXME
Undefined FIXME
Unrestricted FIXME

Spezifischen Drucker entfernen

deletePrinter.ps1
$Printer = Get-Printer -Name "Microsoft XPS Document Writer"
Remove-Printer -InputObject $Printer

Compare File Hash

compareHash.ps1
write-host $(If ($fileHash -eq $knownHash) {"hash matches"} Else {"hash doesn't match"})