Closed acmcomputers closed 9 months ago
When running the code published, the following exception is thrown: At line:120 char:40 + if (($IntuneDevices) -and ($SignInLogs)) + ~ Missing statement block after if ( condition ).
However, when running in the test pane, it continues successfully.
Here's the exact code that the error is referring to:-
if (($IntuneDevices) -and ($SignInLogs)){ If ($RunBatchMode){ #Getting Primary Users in batch mode
I think this may have been a copy/paste formatting error. I removed the line and re-wrote it and it now seems to be running successfully.
When running the code published, the following exception is thrown: At line:120 char:40 + if (($IntuneDevices) -and ($SignInLogs)) + ~ Missing statement block after if ( condition ).
However, when running in the test pane, it continues successfully.
Here's the exact code that the error is referring to:-
if (($IntuneDevices) -and ($SignInLogs)){ If ($RunBatchMode){ #Getting Primary Users in batch mode