I’m having a problem using this command.
Why does this work:
$csjob = get-wmiobject win32_computersystem -comp file-01 -asjob
…but this fails:
$csjob = get-eventlog system -comp file-01 -asjob
Get-EventLog : A parameter cannot be found that matches parameter name ‘asjob’.
At line:1 char:44
- $csjob = get-eventlog system -comp file-01 -asjob
-
~~~~~~
- CategoryInfo : InvalidArgument: (
[Get-EventLog], ParameterBindingException
- FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.GetEventLogCommand
- CategoryInfo : InvalidArgument: (