11 August 2015

Send-MailMessage -Encoding parameter


Send-MailMessage -From 'some.address@domain.com' -To 'some.address@domain.com' -Subject 'test' -Encoding ([System.Text.Encoding]::Unicode)

06 August 2015

Autosave files location when powershell ISE crash


%LocalAppData%\Microsoft_Corporation\powershell_ise.exe_StrongName_lw2v2vm3wmtzzpebq33gybmeoxukb04w\3.0.0.0\AutoSaveFiles

05 August 2015

Converting ASCII codes to characters and characters to ASCII codes


ASCII to character:

[char]65

characters to ASCII code

[int][char]'A'


to covert an entire word:

[int[]][char[]]'word'