Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

SOLVED Remediation script passes noncompliant value to the script as a parameter.

mvaillancourt

New Member
Messages
4
Reaction score
0
Points
1
Hi, someone know how that works? How to pass the non compliant value and how to use this value to remediation script ?
 
Why not have the detection script within the remediation script? aka cut out the middle man.
 
Could provide me an example ? I use a detection script to check if a local user is present. if not, in remediation script, I want to create that user. If present, I need to check its password age. If too hold, force an LAPS reset.
 
Could provide me an example ? I use a detection script to check if a local user is present. if not, in remediation script, I want to create that user. If present, I need to check its password age. If too hold, force an LAPS reset.

Just look at your detection script. It would exactly the same, but instead of setting a exit code, you actually perform that task that you want.
 
Back
Top