Add files via upload
Added a check for the `UacPoll` type so that the cmdlet will run properly on a second and later invocationchunking
parent
a910bd5ee4
commit
107d1d7594
|
@ -136,8 +136,9 @@ public static class UacPoll
|
|||
}
|
||||
}
|
||||
"@
|
||||
|
||||
Add-type -typedefinition $assembly -Language CSharp
|
||||
if (-not [bool]([appdomain]::CurrentDomain.GetAssemblies() | ? { $_.gettypes() -match 'UacPoll' })) {
|
||||
Add-type -typedefinition $assembly -Language CSharp
|
||||
}
|
||||
[UacPoll]::IsProcessElevated()
|
||||
|
||||
}
|
Loading…
Reference in New Issue