Microsoft

System Center Configuration Manager Feedback

Suggestion box powered by UserVoice

How can we improve Configuration Manager?

Add option "File/folder/registry item DOES NOT exist" to application detection rules

Sometimes you just need to have an app that is detected successfull when something is not existing. Delete files or registry keys etc. It would be nice if there was a logical operator in app detection to select a file and then mark a box "NOT" or "DOES not exist" to tell the detedetection system that we are done when thi thing does not exist anymore.
Now we need to use ps-scripts (to return something when file is not detected and nothing when it is detected) to achieve this, like:

$strFileName="c:\temp\test.txt"
If (Test-Path $strFileName){

}Else{return $true}

22 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Marko Mård shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
Noted  · 

1 comment

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...
  • Denton Underwood commented  ·   ·  Flag as inappropriate

    I would like to have this as well. The problem with using PS to detect if something isn't there is that the deployment fails if the script is not signed or the clients are configured for Execution Bypass which a lot of places don't configure for security reasons.

Feedback and Knowledge Base