I am trying to build an automation that our DSS team can run when a machine is decommissioned.
It would do the following;
- remove device from AD
- remove device from ConfigMgr
- remove device from Qualys
For some reason the AD delete is not working consistently and I cant figure out why.
I have tried the two following methods to do this and neither works consistently. Note that I am not trying to do both at the same time, I just have them both there for reference.