From c956655d7dea42b26c8baa2632e29007c00aba78 Mon Sep 17 00:00:00 2001 From: brotoskyj Date: Fri, 3 Jan 2025 15:04:33 -0500 Subject: [PATCH 1/7] Added Cherwell Kill Process and SCCM Remote Logs Parser Buttons --- CHAMP.ps1 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/CHAMP.ps1 b/CHAMP.ps1 index d3304a4..d725e1d 100644 --- a/CHAMP.ps1 +++ b/CHAMP.ps1 @@ -890,6 +890,7 @@ $sunsetToolStripMenuItem.Text = "Sunset" $toolStripDropDownButton3.BackgroundImageLayout = [System.Windows.Forms.ImageLayout]::None $toolStripDropDownButton3.DisplayStyle = [System.Windows.Forms.ToolStripItemDisplayStyle]::Text $toolStripDropDownButton3.DropDownItems.AddRange(@( + $hscToolStripMenuItem, $irtToolStripMenuItem )) @@ -900,6 +901,13 @@ $toolStripDropDownButton3.Size = New-Object System.Drawing.Size(62, 22) $toolStripDropDownButton3.Text = "Tools" $toolStripDropDownButton3.ToolTipText = "Tools" # +# Kill all Cherwell Processes +$cherwellKillProcessToolStripMenuItem.Name = "Kill all Local Cherwell Processes" +$cherwellKillProcessToolStripMenuItem.Size = New-Object System.Drawing.Size(93, 22) +$cherwellKillProcessToolStripMenuItem.Text = "Kill Local Cherwell Processes" +$cherwellKillProcessToolStripMenuItem.Add_Click() +# +# # HSC Pass Check Menu Item # $hscToolStripMenuItem.Name = "closeToolStripMenuItem" @@ -914,7 +922,8 @@ $hscToolStripMenuItem.Add_Click( # $irtToolStripMenuItem.BackgroundImageLayout = [System.Windows.Forms.ImageLayout]::None $irtToolStripMenuItem.DropDownItems.AddRange(@( - $geolocationToolStripMenuItem + $geolocationToolStripMenuItem, + $sccmLogParserToolStripMenuItem )) $irtToolStripMenuItem.Name = "themeToolStripMenuItem" $irtToolStripMenuItem.Size = New-Object System.Drawing.Size(180, 22) @@ -930,6 +939,10 @@ $geolocationToolStripMenuItem.Add_Click( geoLocationForm } ) +$sccmLogParserToolStripMenuItem.Name = "SCCM Remote Control Viewer Log Parser" +$sccmLogParserToolStripMenuItem.Size = New-Object System.Drawing.Size(180, 22) +$sccmLogParserToolStripMenuItem.Text = "SCCM Remote Control Viewer Log Parser" +$sccmLogParserToolStripMenuItem.Add_Click() # # button3 # -- 2.34.1 From 8052f1389ce186c99ea7a12ebd6429bc8853e91f Mon Sep 17 00:00:00 2001 From: brotoskyj Date: Fri, 3 Jan 2025 15:06:45 -0500 Subject: [PATCH 2/7] Added in Objects --- CHAMP.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CHAMP.ps1 b/CHAMP.ps1 index d725e1d..55ed2c9 100644 --- a/CHAMP.ps1 +++ b/CHAMP.ps1 @@ -102,6 +102,8 @@ $toolStripDropDownButton3 = New-Object System.Windows.Forms.ToolStripDropDownBut $hscToolStripMenuItem = New-Object System.Windows.Forms.ToolStripMenuItem $irtToolStripMenuItem = New-Object System.Windows.Forms.ToolStripMenuItem $geolocationToolStripMenuItem = New-Object System.Windows.Forms.ToolStripMenuItem +$sccmLogParserToolStripMenuItem = New-Object System.Windows.Forms.ToolStripMenuItem +$cherwellKillProcessToolStripMenuItem = New-Object System.Windows.Forms.ToolStripMenuItem $button3 = New-Object System.Windows.Forms.Button $button4 = New-Object System.Windows.Forms.Button $button6 = New-Object System.Windows.Forms.Button @@ -890,7 +892,7 @@ $sunsetToolStripMenuItem.Text = "Sunset" $toolStripDropDownButton3.BackgroundImageLayout = [System.Windows.Forms.ImageLayout]::None $toolStripDropDownButton3.DisplayStyle = [System.Windows.Forms.ToolStripItemDisplayStyle]::Text $toolStripDropDownButton3.DropDownItems.AddRange(@( - + $cherwellKillProcessToolStripMenuItem, $hscToolStripMenuItem, $irtToolStripMenuItem )) -- 2.34.1 From 7dfdf92d19b511c99d9fd3a7a4c2b69091a9fd93 Mon Sep 17 00:00:00 2001 From: brotoskyj Date: Fri, 3 Jan 2025 15:08:34 -0500 Subject: [PATCH 3/7] Added Cherwell Kill Function --- CHAMP.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CHAMP.ps1 b/CHAMP.ps1 index 55ed2c9..c299c0a 100644 --- a/CHAMP.ps1 +++ b/CHAMP.ps1 @@ -906,8 +906,10 @@ $toolStripDropDownButton3.ToolTipText = "Tools" # Kill all Cherwell Processes $cherwellKillProcessToolStripMenuItem.Name = "Kill all Local Cherwell Processes" $cherwellKillProcessToolStripMenuItem.Size = New-Object System.Drawing.Size(93, 22) -$cherwellKillProcessToolStripMenuItem.Text = "Kill Local Cherwell Processes" -$cherwellKillProcessToolStripMenuItem.Add_Click() +$cherwellKillProcessToolStripMenuItem.Text = "Kill all Local Cherwell Processes" +$cherwellKillProcessToolStripMenuItem.Add_Click( + Get-Process | Where-Object {$_.Path -like "*Cherwell*"} | Stop-Process +) # # # HSC Pass Check Menu Item -- 2.34.1 From af07944166dacfb396898eefee9935a28745d0af Mon Sep 17 00:00:00 2001 From: brotoskyj Date: Fri, 3 Jan 2025 15:14:05 -0500 Subject: [PATCH 4/7] Changed Version Name and Finalized Cherwell Kill Function --- CHAMP.ps1 | 8 +++++--- version.txt | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHAMP.ps1 b/CHAMP.ps1 index c299c0a..63e94d0 100644 --- a/CHAMP.ps1 +++ b/CHAMP.ps1 @@ -908,7 +908,9 @@ $cherwellKillProcessToolStripMenuItem.Name = "Kill all Local Cherwell Processes" $cherwellKillProcessToolStripMenuItem.Size = New-Object System.Drawing.Size(93, 22) $cherwellKillProcessToolStripMenuItem.Text = "Kill all Local Cherwell Processes" $cherwellKillProcessToolStripMenuItem.Add_Click( - Get-Process | Where-Object {$_.Path -like "*Cherwell*"} | Stop-Process + { + Get-Process | Where-Object {$_.Path -like "*Cherwell*"} | Stop-Process + } ) # # @@ -1334,12 +1336,12 @@ $Form1.FormBorderStyle = [System.Windows.Forms.FormBorderStyle]::FixedDialog $Form1.MaximizeBox = $false $Form1.Name = "Form1" $Form1.StartPosition = [System.Windows.Forms.FormStartPosition]::CenterParent -$Form1.Text = "CHAMP - 20241231" +$Form1.Text = "CHAMP - Agile Axolotl" Function preflight () { $preflightCounter = [int] 0 $preflightDependancies = "" Write-Host "Running Pre-Flight checks...`n" - $currentVersion = "20241231" + $currentVersion = "20250103" $version = Invoke-WebRequest -URI https://git.racooncity.org/brotoskyj/CHAMP/raw/branch/master/version.txt | Select-Object -ExpandProperty Content Write-Host "Version Check:" Write-Host "Local Version: $currentVersion" diff --git a/version.txt b/version.txt index adb1f5f..39a15df 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -20241231 +20250103 -- 2.34.1 From 35cdc2620daf9e7289d61337a3e9f5344662b1a2 Mon Sep 17 00:00:00 2001 From: brotoskyj Date: Fri, 3 Jan 2025 15:17:35 -0500 Subject: [PATCH 5/7] Added Colors to Release Information --- CHAMP.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHAMP.ps1 b/CHAMP.ps1 index 63e94d0..06ebc97 100644 --- a/CHAMP.ps1 +++ b/CHAMP.ps1 @@ -1338,6 +1338,8 @@ $Form1.Name = "Form1" $Form1.StartPosition = [System.Windows.Forms.FormStartPosition]::CenterParent $Form1.Text = "CHAMP - Agile Axolotl" Function preflight () { + Write-Host -ForegroundColor "Yellow" -BackColor "Black" "CHAMP - Agile Axolotl Update" + Write-Host "\n\n" $preflightCounter = [int] 0 $preflightDependancies = "" Write-Host "Running Pre-Flight checks...`n" -- 2.34.1 From f5ffee38e1c534b3df6121f1d0fd94a60ee1f937 Mon Sep 17 00:00:00 2001 From: brotoskyj Date: Fri, 3 Jan 2025 15:19:59 -0500 Subject: [PATCH 6/7] Output Bug Fix --- CHAMP.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHAMP.ps1 b/CHAMP.ps1 index 06ebc97..a65d13e 100644 --- a/CHAMP.ps1 +++ b/CHAMP.ps1 @@ -1338,7 +1338,7 @@ $Form1.Name = "Form1" $Form1.StartPosition = [System.Windows.Forms.FormStartPosition]::CenterParent $Form1.Text = "CHAMP - Agile Axolotl" Function preflight () { - Write-Host -ForegroundColor "Yellow" -BackColor "Black" "CHAMP - Agile Axolotl Update" + Write-Host "CHAMP - Agile Axolotl Update" -ForegroundColor "Yellow" -BackgroundColor "Black" Write-Host "\n\n" $preflightCounter = [int] 0 $preflightDependancies = "" -- 2.34.1 From 1d7764bc80eebc65e7a6c6056b8f8cb61fa1fbbf Mon Sep 17 00:00:00 2001 From: brotoskyj Date: Fri, 3 Jan 2025 15:20:59 -0500 Subject: [PATCH 7/7] Print Fix --- CHAMP.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHAMP.ps1 b/CHAMP.ps1 index a65d13e..405e6be 100644 --- a/CHAMP.ps1 +++ b/CHAMP.ps1 @@ -1339,7 +1339,8 @@ $Form1.StartPosition = [System.Windows.Forms.FormStartPosition]::CenterParent $Form1.Text = "CHAMP - Agile Axolotl" Function preflight () { Write-Host "CHAMP - Agile Axolotl Update" -ForegroundColor "Yellow" -BackgroundColor "Black" - Write-Host "\n\n" + Write-Host "" + Write-Host "" $preflightCounter = [int] 0 $preflightDependancies = "" Write-Host "Running Pre-Flight checks...`n" -- 2.34.1