Technical tips collected over several decades in IT

Intune Powershell Scripts – Encoding Gotcha

Just had a powershell script that was failing When I went in to the registry key that stores the results of the script running I saw some corrupted characters The problem turned out to be I had a file that was encoded in UTF-16LE So I saved the powershell script as...


Blog History