SCCM application file detection in AppData folder


 So you created an application, and you need to detect a file in the user's AppData folder. YOu can't do this directly with a file detection path because SCCM doesn't recognize %AppData%. To do the detection, you need to create a powershell script similar to this one:

if (Get-ChildItem ($Env:Appdata + "\1C\1CEStart")|Where-Object {$_.Name -eq "ibases.v8i"}) {
    return 0
}

Take the script above, and replace the path and the name ofthe file you are detecting to verify the application installation.



Share on Google Plus

About Tom DeMeulenaere

Highly accomplished information technology professional with extensive knowledge in System Center Configuration Manager, Windows Server, SharePoint, and Office 365.
    Blogger Comment

0 comments:

Post a Comment