Update Invoke-TokenManipulation.ps1

Removed 2 unnecessary lines.
This commit is contained in:
FixTheExchange 2015-10-30 12:48:05 -05:00
parent 17dd6835b9
commit e179b2e932
1 changed files with 0 additions and 2 deletions

View File

@ -1691,8 +1691,6 @@ Blog on this script: http://clymb3r.wordpress.com/2013/11/03/powershell-and-toke
ForEach ($SystemToken in $SystemTokens)
{
$SystemTokenInfo = Get-PrimaryToken -ProcessId $SystemToken.Id -WarningAction SilentlyContinue -ErrorAction SilentlyContinue
$SystemProcessName = $SystemToken.Name
$SystemProcessID = $SystemToken.Id
}
if ($systemTokenInfo -eq $null -or (-not (Invoke-ImpersonateUser -hToken $systemTokenInfo.hProcToken)))
{