Загрузка данных


PS C:\Users\arinagruseva> Get-ChildComponent $env:TEMP\*.log -Force | ForEach-Object { $m = SelectString -Path $_.FullName -Pattern "error status: (\d+)" -ErrorAction SilentlyContinue | Select-Object -Last 1; if ($m) { "{0,-62} {1}" -f $_.Name, $m.Matches[0].Groups[1].Value } }
Get-ChildComponent : The term 'Get-ChildComponent' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-ChildComponent $env:TEMP\*.log -Force | ForEach-Object { $m = Sel ...
+ ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-ChildComponent:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\arinagruseva>