Updated Invoke-RunAs under SYSTEM with CreateProcessAsUser
parent
898a3878df
commit
1868d9a73d
|
@ -259,10 +259,10 @@ 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)
|
||||
|
||||
$StartupInfo.wShowWindow = 0x0001
|
||||
|
||||
# ProcessInfo Struct
|
||||
$ProcessInfo = New-Object PROCESS_INFORMATION
|
||||
|
||||
|
|
Loading…
Reference in New Issue