Scripts

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.
File Operations

Robocopy Destination Folder Hidden After Copying a Drive? Use attrib

Copying a drive root like B:\ with robocopy gives the destination folder hidden and system attributes, so Explorer hides it. Fix it with attrib -s -h. Batch included.
File Operations

Robocopy Exit Codes Explained: Below 8 Is Success (Tested)

Robocopy returns non-zero even on success. Exit codes below 8 mean success, 8 or higher mean failures. Each code reproduced, plus batch and PowerShell checks.
AWS

RDP to EC2 Without Opening Port 3389: aws login + SSM in One Click

Connect to Windows Server on EC2 over RDP via SSM port forwarding, with no inbound 3389 and no stored access keys. A batch file does login, tunnel and mstsc in one click.
スポンサーリンク