====== 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 ====== $Printer = Get-Printer -Name "Microsoft XPS Document Writer" Remove-Printer -InputObject $Printer ===== Compare File Hash ====== write-host $(If ($fileHash -eq $knownHash) {"hash matches"} Else {"hash doesn't match"})