PowerShell Notes

Find OS product key in registry:

Get-ItemProperty 'hklm:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform' -name BackupProductKeyDefault | select BackupProductKeyDefault

Find current internet IP address:

(Invoke-RestMethod -uri "https://api64.ipify.org?format=json").ip