fachinformatiker-wiki

it's easy when it's here

User Tools

Site Tools


microsoft:powershell:scripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
microsoft:powershell:scripts [2024/02/17 19:03] – external edit 127.0.0.1microsoft:powershell:scripts [2026/07/12 22:13] (current) gsys
Line 18: Line 18:
 $Printer = Get-Printer -Name "Microsoft XPS Document Writer" $Printer = Get-Printer -Name "Microsoft XPS Document Writer"
 Remove-Printer -InputObject $Printer Remove-Printer -InputObject $Printer
 +</code>
 +
 +===== Compare File Hash ======
 +
 +<code powershell compareHash.ps1>
 +write-host $(If ($fileHash -eq $knownHash) {"hash matches"} Else {"hash doesn't match"})
 </code> </code>
microsoft/powershell/scripts.txt · Last modified: by gsys