For Event 7 I did the Following Script, using DPAPI (only decryptable by same user on same Computer ) for Encrypting : PARAM ( $mode ) Switch ( $mode ) { ' e ' { $ss = ConvertTo-SecureString - string ( [System.IO.File]::ReadAllText( " $(pwd)\alice2.txt