Intune_Support_Team we are attempting to use the mdmcertcheckandremediate.ps1 script as an Configuration Endpoint Manger Check and Remediate action in a Configuration Item. Running into a large issue. The script uses a SUPER chatty output. I have attempted to squelch the outputs and convert them to simple integer values for passing between check and remediate and have that MOSTLY completely except for one lingering TRUE that I get as output that is mucking up my report.
Any chance you could release a fork specifically laid out to work well as a compliance script with simpler returns?
Also, while diving through the script I found that these three functions (about 200 lines) are never called, so do they do anything? Seems like a lot of cert stuff that was stated as added but aren't running?
IsEnrollmentIdInRegistry
IsCertInstalledForEnrollmentId
CheckEnrollResult
We need to remediate over 1000 machines. In manual testing the script does the task perfectly. The issue at hand is how can we deploy this?