You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity