Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
469e6f7
Update file: Mail notification password expiry.ps1
P6g9YHK6 Jun 6, 2025
ac80392
Update file: Change user password.ps1
P6g9YHK6 Jun 6, 2025
911f424
Update file: Mail notification password expiry.ps1
P6g9YHK6 Jun 9, 2025
3ccb467
Update file: Mail notification password expiry.ps1
P6g9YHK6 Jun 9, 2025
111dde7
Update file: Mail notification password expiry.ps1
P6g9YHK6 Jun 9, 2025
21cbb05
Update file: Mail notification password expiry.ps1
P6g9YHK6 Jun 9, 2025
7f9bcd6
Update file: Mail notification password expiry.ps1
P6g9YHK6 Jun 9, 2025
eae28d2
Update file: Mail notification password expiry.ps1
P6g9YHK6 Jun 9, 2025
f477e08
Update file: Mail notification password expiry.ps1
P6g9YHK6 Jun 9, 2025
d842f70
Update file: Mail notification password expiry.ps1
P6g9YHK6 Jun 9, 2025
5c58624
Update file: Mail notification password expiry.ps1
P6g9YHK6 Jun 9, 2025
8d80ca3
Update file: Mail notification password expiry.ps1
P6g9YHK6 Jun 9, 2025
527c98b
Update file: Mail notification password expiry.ps1
P6g9YHK6 Jun 9, 2025
224999d
Update file: Mail notification password expiry.ps1
P6g9YHK6 Jun 10, 2025
750a0fb
Update file: Mail notification password expiry.ps1
P6g9YHK6 Jun 11, 2025
bf867b7
Update file: Kill Switch Manager.ps1
P6g9YHK6 Jun 12, 2025
9f7053b
Update file: Kill Switch Manager.ps1
P6g9YHK6 Jun 12, 2025
2924d53
Update file: Change default chocolatey repo to internal.ps1
P6g9YHK6 Jun 18, 2025
aa87320
Update file: SQL Health.ps1
P6g9YHK6 Jul 2, 2025
1fcc8c1
Update file: Task Scheduler scanner.ps1
P6g9YHK6 Jul 2, 2025
2627c79
Add new file: Deploy diagnostic toolkit.ps1
P6g9YHK6 Jul 2, 2025
4c7fb7f
Update file: Windows update force install new updates.ps1
P6g9YHK6 Jul 2, 2025
f083141
Update file: Task Scheduler scanner.ps1
P6g9YHK6 Jul 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
617 changes: 472 additions & 145 deletions scripts_staging/Backend/Mail notification password expiry.ps1

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
.CHANGELOG
SAN 11.12.24 Moved new info to env
SAN 03.05.25 Added a flag to keep or not the default repo

SAN 18.06.25 Added outputs

#>

$newUrl = $env:NEW_URL
Expand All @@ -34,13 +35,20 @@ $defaultName = "chocolatey"
$keepDefaultRepo = ($env:keepDefaultRepo -ne '0')

# Always remove both sources to ensure clean state and updated priority
Write-Output "Removing Chocolatey source: $newName (if exists)"
choco source remove -n $newName -y

Write-Output "Removing Chocolatey source: $defaultName (if exists)"
choco source remove -n $defaultName -y

# Add the new internal Chocolatey repository
Write-Output "Adding new Chocolatey source: $newName with URL $newUrl and priority $newPriority"
choco source add -n $newName -s $newUrl --priority $newPriority

# Conditionally re-add the default repository
if ($keepDefaultRepo) {
Write-Output "Re-adding default Chocolatey source: $defaultName with priority $defaultPriority"
choco source add -n $defaultName -s $defaultUrl --priority $defaultPriority
} else {
Write-Output "Skipping re-adding default Chocolatey source"
}
Loading