PowerShell

File Operations

PowerShell Get-FileHash: Get SHA256/MD5 Hashes and Export a Folder to CSV

Get-FileHash basics: SHA256 and MD5 hashes, comparing two files, verifying a download, and exporting hashes of every file in a folder to CSV with dates.
File Operations

PowerShell: Compare Two Folders by File Hash to Find Changed Files

Find added, removed and changed files between two folders with Get-FileHash and Compare-Object. Tested: why comparing names or modified dates misses real changes.
PowerShell

Disconnect Remote Desktop Without Locking the PC: tscon in PowerShell

Closing Remote Desktop locks the host PC, breaking screen-based tools like computer use. Run tscon $env:SESSIONNAME /dest:console in admin PowerShell instead.
スポンサーリンク