Hello,
I have experienced a weird behavior of powershell scripting. My script is not running sequentially (row per row) but the order of rows are being ran randomly.
PS version is 3.0, win 2012 R2
maybe the picture below will describe it better
http://snag.gy/ZULfa.jpg (my account is not verified so I cannot paste the image here)
How it should look like?
Current IDs which are not allowed:
DeviceId DeviceAccessState
-------- -----------------
MLC556T6U57R30B9UP524KQN1C Quarantined
5T3L57GPVL4PLE1SEKNEGTUH1O Quarantined
1595486682 Allowed
Want to continue?
What device do you want to take out from quarantine? [0/1-x]
0
Have somebody experienced the same issue? Have tried almost everything. Changed the switch to multiple ifs, removed the function, tried to run the script on separate window but with the same results.
Best regards,
An.