Custom Inventory Rule not working
Can someone tell me why this custom inventory rule is not working?
ShellCommandTextReturn(cmd /c dism /online /get-featureinfo /featurename:WCF-HTTP-Activation | findstr /i "State")
I have tried it with both the cmd /c and without. If I open a command prompt on a computer and just copy and past the dism command in, it runs without issue even in an unelevated command prompt. I verified all Windows operating systems are selected as well.
Thanks so much.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
five.
6 years ago
I wonder if it's related to the 32/64 bit problems that Kace sometimes has. Try this.
ShellCommandTextReturn(cmd.exe /c if defined ProgramFiles(x86) (C:\windows\sysnative\dism.exe /online /get-featureinfo /featurename:WCF-HTTP-Activation | findstr /i "State") else (dism.exe /online /get-featureinfo /featurename:WCF-HTTP-Activation | findstr /i "State")