А что именно выгружаете?
Покажите скрипт
Может там параллелить можно
$servers = (Get-ADComputer -SearchBase "OU=Domain Controllers,DC=,DC=,DC=" -Filter * ).Name
Invoke-Command -ComputerName $servers -ScriptBlock { get-childitem "C:\Windows\System32\winevt\Logs\Security.evtx" (Get-date).AddDays(-2) | select FullName | forEach{
%{Get-WinEvent -FilterHashTable @{path=$_.Fullname;ID=4624 } -ErrorAction Stop |
? {$_.Properties[5].Value -match $UserName} |
Select-Object -Property TimeCreated, `
@{Name='SecurityId';Expression={$_.Properties[4].Value}}, `
@{Name='AccountName';Expression={$_.Properties[5].Value}}, `
@{Name='AccountDomain';Expression={$_.Properties[6].Value}}, `
@{Name='LogonId';Expression={$_.Properties[7].Value}}, `
@{Name='LogonType';Expression={$_.Properties[8].Value}}, `
@{Name='Workstation';Expression={$_.Properties[11].Value}}, `
@{Name='LogonGuid';Expression={$_.Properties[12].Value}}
} }
} |
Export-Csv