Skip to content

Error in Start-SearchJob with how the progress bar is calculated #30

@ryan-niemes-helix

Description

@ryan-niemes-helix

Not sure what's causing this, but this keeps showing up. Search appears to work just fine.

I think I'd like a way to kill off the 'progress bar' because I'm wanting to run this in a script.

here's what I'm running currently:

$startdate = Get-Date -Year 2021 -Month 07 -Day 11 -Hour 00 -Minute 00 -Second 00
$enddate = Get-Date -Year 2021 -Month 07 -Day 11 -Hour 00 -Minute 15 -Second 00

Start-SearchJob -Query "_collector=""""" -From $startdate -To $enddate | Get-SearchResult -Type Message | Out-File -FilePath "./result.txt"

Line |
102 | … $title -Status $text -PercentComplete ($processedMs / $totalMs * 100)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot validate argument on parameter 'PercentComplete'. The -1500 argument is less than the minimum allowed range of -1. Supply an argument that is greater
| than or equal to -1 and then try the command again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions