diff --git a/scripts/Windows/OS/User/Add.ps1 b/scripts/Windows/OS/User/Add.ps1 index 36a090e6..8326b73d 100644 --- a/scripts/Windows/OS/User/Add.ps1 +++ b/scripts/Windows/OS/User/Add.ps1 @@ -174,7 +174,7 @@ function Start-EventDrivenTask() { $entry = $event.SourceEventArgs.Entry; if ($entry.EventID -eq $EventID) { - New-Event -SourceIdentifier $identifier; + $null = New-Event -SourceIdentifier $identifier; } }; @@ -184,6 +184,6 @@ function Start-EventDrivenTask() { }; Write-EventLog -LogName Application -Source "Application" -EventId $EventID -Message "This event was created by $env:Username"; - Wait-Job $job; + $null = Wait-Job $job; } -args $EventID }