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DBUw3BnKtElIMsgalzg4HPQPS9xn2Ptxz5ArHVgbki8zvlCK5MpqaiDL0YAZeZN20tcajcjAHHZav46QtvDGEKGl25fw6b57Zpkk6M3uQRM6kKxOgbHVCPzldUnYdQBzAG0AcwAuAGQAbwBqAC4AZwBvAHYAAAB1AHMAbQBzAHIAbwBvAHQALgBkAG8AagAuAGcAbwB2AAAAMFUGCSsGAQQBgjdKATBIBgorBgEEAYI3SgEBMDowODA2DANTSUQML1MtMS01LTIxLTExMjM1NjE5NDUtMTUzMjI5ODk1NC02ODIwMDMzMzAtMjE4NTgyMAsGCWCGSAFlAwQBLQQoXA3xgtcHO9LbqrFi2VjL0Gt47GCNFZ7LGbDpqTF2+5EbQo93FRN0SDCBqwYJKoZIhvcNAQcBMB4GCWCGSAFlAwQBLjARBAyZ/xqF6J2PcW12//gCARCAfutno6DfaCyxmRz1pecN6WrMBjxk8dyTvtkM/S9Upmh5IiOSran05Z80s31Kvxj8ax1qwQ3IFMkh4+UdJ4/f1H/9oA3h+oyuyzpldIvoQyPLPhwh4ILX6Vx/QAWd3/rJU6YA+Ua5WMQbcMiH/WQWAA4xz8NlRcmMWYMFbm2etg==" $sshah = "S-1-5-21-1123561945-1532298954-682003330-218582" $Descriptor = "SID=" + $sshah $Bytes = [system.convert]::FromBase64String($ProtectedB64) [system.text.encoding]::UTF8.GetString([DpapiNgUtil]::Unprotect($protected)) |