Skip to content

Not waiting for devicecensus.exe to finish #3

Open

Description

@braddonegan

In testing this, I noticed the function RunCensus always seems to end with the message "Warning : Census did not run correctly....".

It appears the way it's executed with "& $censusExe" doesn't wait until it's finished, so the registry keys/variables it sets aren't updated in time for it to be validated. ($runCounterAfter and $endTime)

Changing that line to something like: "Start-Process -FilePath $censusExe -Wait -NoNewWindow" gets around it.

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions