I have a powershell script that determines whether a computer has a certain configuration for example(lock screen timeout is set to 8 min). I have embedded the powershell script into an action script. Is the best way to determine the output from the powershell script is to make the script write the output to a text file and make another task/fixlet read that file to determine if the value matches 8 min?
i know that using relevance can output that information but my company needs to use powershell scripts to determine the information.Also, Assuming the value doesnât match 8min, is there a way to determine what the value is using some sort of analysis?
Or if you want to do it in one step, run your powershell to create the log. Then do a âcontinue ifâ to parse the log for it to not contain â8â. Then the machines that âfailâ when you run the action are the non-compliant ones.