Files
2017-10-16 10:23:41 -04:00

9 lines
289 B
PowerShell

Function Write-Ini([string]$path, [string]$launcher)
{
# -Encoding ASCII is needed otherwise it will write in unicode
# this will cause ntsd to not execute our code
".shell" | Out-File -Encoding ASCII "$path\ntsd.ini"
"$launcher" | Out-File -Encoding ASCII "$path\ntsd.ini" -Append
}