Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $a = Get-Date
- $year = $a.Year
- $key = "HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\0a0d020000000000c000000000000046"
- $data = "Z:\archive-" + $year + "\.pst"
- $bytes = [Text.Encoding]::Unicode.GetBytes($data);
- $bytes += 0,0
- Set-ItemProperty -path $key -name "001f0324" -value ([byte[]]($bytes))
- Set-ItemProperty -path $key -name "001f032c" -value ([byte[]]($bytes))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement