Hello Guys first post I am righting a simple ps1 script to disable, set expiration, and move an ad account. Currently this works, however for betting confimation support. I would like add “if” statements to each process confirming the prior process. <script src=“https://gist.github.com/Barious/f9fb70f5a9d1657c8b2bf152edf3ba42.js”></script>
So for instance after the account is disabled I would like to put an if the account is disabled then proceed to set expiration.
So direct question is how can i confirm that the account is disabled before I continue to the next set of instructions. Thank you for your insight I am fairly new to powershell hope this makes sense.