More robust custom app detection
This commit is contained in:
parent
77d26c6c96
commit
b295f4bef4
|
|
@ -1,10 +1,34 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"DisplayName": "OBIX",
|
"DisplayName": "OBIX BS-DUAL-NPI",
|
||||||
"Path": "C:\\Program Files\\CCSI"
|
"Test": "$(Get-Content \"C:\\Program Files\\CCSI\\800\\8001\\OBIXConfig\\defaults.ini\") -match \"_BS-DUAL-NPI(,|$)\""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DisplayName": "OBIX BS-SINGLE-NPI",
|
||||||
|
"Test": "$(Get-Content \"C:\\Program Files\\CCSI\\800\\8001\\OBIXConfig\\defaults.ini\") -match \"_BS-SINGLE-NPI(,|$)\""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DisplayName": "OBIX CENTRAL",
|
||||||
|
"Test": "$(Get-Content \"C:\\Program Files\\CCSI\\800\\8001\\OBIXConfig\\defaults.ini\") -match \"_CENTRAL(,|$)\""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DisplayName": "OBIX CENTRAL-SINGLE",
|
||||||
|
"Test": "$(Get-Content \"C:\\Program Files\\CCSI\\800\\8001\\OBIXConfig\\defaults.ini\") -match \"_CENTRAL-SINGLE(,|$)\""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DisplayName": "OBIX CITRIX",
|
||||||
|
"Test": "$(Get-Content \"C:\\Program Files\\CCSI\\800\\8001\\OBIXConfig\\defaults.ini\") -match \"_CITRIX(,|$)\""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DisplayName": "OBIX NS-DUAL",
|
||||||
|
"Test": "$(Get-Content \"C:\\Program Files\\CCSI\\800\\8001\\OBIXConfig\\defaults.ini\") -match \"_NS-DUAL(,|$)\""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DisplayName": "OBIX NS-SINGLE",
|
||||||
|
"Test": "$(Get-Content \"C:\\Program Files\\CCSI\\800\\8001\\OBIXConfig\\defaults.ini\") -match \"_NS-SINGLE(,|$)\""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"DisplayName": "GSL Will Call",
|
"DisplayName": "GSL Will Call",
|
||||||
"Path": "C:\\Users\\Public\\Desktop\\GSL Will Call Client.url"
|
"Test": "Test-Path \"C:\\Users\\Public\\Desktop\\GSL Will Call Client.url\""
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
@ -16,7 +16,7 @@ Function Get-Apps($ComputerName, $CompStatus, $TableView) {
|
||||||
$apps += Get-Package |
|
$apps += Get-Package |
|
||||||
Add-Member -NotePropertyName Computer -NotePropertyValue $env:ComputerName -PassThru
|
Add-Member -NotePropertyName Computer -NotePropertyValue $env:ComputerName -PassThru
|
||||||
foreach ($app in ${using:SHSApps}) {
|
foreach ($app in ${using:SHSApps}) {
|
||||||
if (Test-Path $app.Path) {
|
if (Invoke-Expression $app.Test) {
|
||||||
$apps += [PSCustomObject]@{
|
$apps += [PSCustomObject]@{
|
||||||
DisplayName = $app.DisplayName
|
DisplayName = $app.DisplayName
|
||||||
Computer = $env:ComputerName
|
Computer = $env:ComputerName
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
Patch
|
||||||
|
-Update Custom SHSApps have more robust detection
|
||||||
|
|
||||||
Patch 2025-4-29
|
Patch 2025-4-29
|
||||||
-Fix DEL messages from SCCM queries now use the correct hostname
|
-Fix DEL messages from SCCM queries now use the correct hostname
|
||||||
-Update Removed HP campus from UserProfileBackup
|
-Update Removed HP campus from UserProfileBackup
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue