Elevated PowerShell 5.1 script exits 2 with no log when it contains a non-ASCII string literal

Domain: windows · Evidence E1 — Maintainer reviewed
powershellwindowsencodinggbkelevationmojibake

Summary

On Windows, an elevated PowerShell 5.1 script (launched via `Start-Process -Verb 'RunAs' -Wait`) exits with code 2 and writes no log at all, when the `.ps1` is …

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons