+ PSv2 Compatibility
Fix for unable to index into object of type System.Diagnostic.Process on PSv2.
This commit is contained in:
parent
b895866c3b
commit
e47c52a090
|
|
@ -3346,7 +3346,7 @@ function Invoke-CredentialInjection
|
||||||
}
|
}
|
||||||
elseif ($PsCmdlet.ParameterSetName -ieq "ExistingWinLogon")
|
elseif ($PsCmdlet.ParameterSetName -ieq "ExistingWinLogon")
|
||||||
{
|
{
|
||||||
$WinLogonProcessId = (Get-Process -Name "winlogon")[0].Id
|
$WinLogonProcessId = (Get-Process -Name "winlogon"| Select-Object -first 1).Id
|
||||||
}
|
}
|
||||||
|
|
||||||
#Get a ushort representing the logontype
|
#Get a ushort representing the logontype
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue