I’m trying to create a boolean test for intune that compares a machine’s build date to a specific date. If the build date is after the specific date return true and intune will then install an app.
The problem I have is systeminfo|find /i “install date” outputs to a sentance:
Firstly, when posting code in the forum, please can you use the preformatted text </> button. It really helps us with readability, and copying and pasting your code (we don’t have to faff about replacing curly quote marks to get things working).
Rather than parse the output from SystemInfo, you can get the install date from CIM_OperatingSystem: