Updated Invoke-RunAs under SYSTEM with CreateProcessAsUser

chunking
benpturner 2018-10-18 10:56:18 +01:00
parent 898a3878df
commit 1868d9a73d
1 changed files with 3 additions and 3 deletions

View File

@ -259,9 +259,9 @@ echo ""
# StartupInfo Struct
$StartupInfo = New-Object STARTUPINFO
$StartupInfo.cb = [System.Runtime.InteropServices.Marshal]::SizeOf($StartupInfo)
$StartupInfo.dwFlags = 0x00000001
$StartupInfo.wShowWindow = 0x0001
$StartupInfo.cb = [System.Runtime.InteropServices.Marshal]::SizeOf($StartupInfo)
# ProcessInfo Struct
$ProcessInfo = New-Object PROCESS_INFORMATION