reg query 'HKEY_LOCAL_MACHINE\SOFTWARE\' -
reg query 'HKEY_LOCAL_MACHINE\SOFTWARE\TelecomApp'
Add-Type -AssemblyName System.Security
$encryptedString = (reg query 'HKLM\SOFTWARE\TelecomApp' /v EncryptedPassword | findstr 'REG_SZ')
$encryptedString = $encryptedString.Trim() -replace '^.*REG_SZ\s+', ''
$encryptedBytes = [Convert]::FromBase64String($encryptedString)
$decryptedBytes = [System.Security.Cryptography.ProtectedData]::Unprotect($encryptedBytes, $null, [System.Security.Cryptography.DataProtectionScope]::LocalMachine)
$plaintextPassword = [System.Text.Encoding]::UTF8.GetString($decryptedBytes)
$plaintextPassword

image.png