Skip to content

Commit 23f1901

Browse files
authored
Change folder and add header
1 parent dc8f39c commit 23f1901

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Sources/Winget-AutoUpdate/config/winget-detect.ps1 renamed to Sources/Tools/Detection/winget-detect.ps1

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
<#
2+
.SYNOPSIS
3+
Helper script to use as detection method with Intune or SCCM.
4+
5+
.DESCRIPTION
6+
This script uses `winget export` to detect if a specific application is installed.
7+
Intended for use as a detection rule script in Intune or SCCM deployments.
8+
#>
9+
110
#Change app to detect [Application ID]
211
$AppToDetect = "Notepad++.Notepad++"
312

@@ -50,4 +59,4 @@ $Apps = $Packages | Where-Object { $_.PackageIdentifier -eq $AppToDetect }
5059

5160
if ($Apps) {
5261
return "Installed!"
53-
}
62+
}

0 commit comments

Comments
 (0)