Decrypt a password in an unattend.xml file

Source: https://michlstechblog.info/blog/windows-script-to-recover-lost-passwords-from-a-unattendsysprep-xml-file/

With powershell 🙂

$encryptedpwd = get-content C:\temp\pwd.txt
[System.Text.Encoding]::Unicode.GetString([System.Convert]::FromBase64String($encryptedpwd))


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.