Skip to content

Commit 1823618

Browse files
committed
(chocolatey#169) Remove Windows Server 2016 Support
Updated README info Deleted second CCM Setup script Removed OS check from main CCM Setup script
1 parent fc3a93f commit 1823618

File tree

3 files changed

+15
-77
lines changed

3 files changed

+15
-77
lines changed

README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ As illustrated in the diagram above, there are four main components to a Chocola
4747

4848
Below are the minimum requirements for setting up your C4B server via this guide:
4949

50-
- Windows Server 2019+ (ideally, Windows Server 2019)
51-
- Windows Server 2016 is technically supported, but not recommended as it is nearing End-of-Life; also, you will require an additional setup script.
50+
- Windows Server 2019+ (ideally, Windows Server 2022)
5251
- 4+ CPU cores (more preferred)
5352
- 16 GB+ RAM (8GB as a bare minimum; 4GB of RAM is reserved specifically for Nexus)
5453
- 500 GB+ of free space for local NuGet package artifact storage (more is better, and you may have to grow this as your packages and versions increase)
@@ -141,12 +140,6 @@ Below are the minimum requirements for setting up your C4B server via this guide
141140
> </ul>
142141
> </details>
143142
144-
> :warning:**WARNING**: **Only if** you choose to run this on a **Windows Server 2016** VM, you will **require** a **reboot** before IIS is completely installed. The script above will notify you of this. Once the reboot is complete and you log back in, you will also have to paste and run the following code in a PowerShell Administrator console:
145-
> ```powershell
146-
> Set-Location "$env:SystemDrive\choco-setup\files\scripts"
147-
> .\Start-C4bCcmSetup2.ps1
148-
> ```
149-
150143
### Step 4: SSL Setup
151144
152145
1. In the same **elevated** PowerShell console as above, paste and run the following code:

Start-C4bCcmSetup.ps1

Lines changed: 14 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -151,48 +151,21 @@ process {
151151
& choco @chocoArgs
152152
}
153153

154-
# Check if OS is 2016. If so, let the user know
155-
# they need a reboot after IIS packages install.
156-
# Instruct user to run secondary script after reboot.
157-
$Os = (Get-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion' -Name ProductName).ProductName
158-
if ($Os -like '*2016*') {
159-
$CcmSvcUrl = choco config get centralManagementServiceUrl -r
160-
$CcmJson = @{
161-
CCMServiceURL = $CcmSvcUrl
162-
CCMWebPortal = "http://localhost/Account/Login"
163-
DefaultUser = "ccmadmin"
164-
DefaultPwToBeChanged = "123qwe"
165-
CCMDBUser = $DatabaseUser
166-
CCMDBPassword = $DatabaseUserPw
167-
}
168-
$CcmJson | ConvertTo-Json | Out-File "$env:SystemDrive\choco-setup\logs\ccm.json"
169-
$ErrorActionPreference = $DefaultEap
170-
Stop-Transcript
171-
$Comment = @"
172-
Chocolatey has detected that your operating system is Windows Server 2016.
173-
In order to complete the installation of IIS, a restart is required.
174-
This server will restart in 30 seconds. Once restarted, please follow
175-
the steps outlined in the C4B Quick-Start Guide to contiue.
176-
"@
177-
Start-Process 'shutdown.exe' -ArgumentList "/r /f /t 30 /c `"$Comment`" /d p:4:1"
154+
#Install CCM Web package
155+
choco install chocolatey-management-web -y --package-parameters-sensitive="'/ConnectionString:Server=Localhost\SQLEXPRESS;Database=ChocolateyManagement;User ID=$DatabaseUser;Password=$DatabaseUserPw;'" --no-progress
156+
157+
$CcmSvcUrl = choco config get centralManagementServiceUrl -r
158+
$CcmJson = @{
159+
CCMServiceURL = $CcmSvcUrl
160+
CCMWebPortal = "http://localhost/Account/Login"
161+
DefaultUser = "ccmadmin"
162+
DefaultPwToBeChanged = "123qwe"
163+
CCMDBUser = $DatabaseUser
178164
}
179-
else {
180-
#Install CCM Web package
181-
choco install chocolatey-management-web -y --package-parameters-sensitive="'/ConnectionString:Server=Localhost\SQLEXPRESS;Database=ChocolateyManagement;User ID=$DatabaseUser;Password=$DatabaseUserPw;'" --no-progress
182-
183-
$CcmSvcUrl = choco config get centralManagementServiceUrl -r
184-
$CcmJson = @{
185-
CCMServiceURL = $CcmSvcUrl
186-
CCMWebPortal = "http://localhost/Account/Login"
187-
DefaultUser = "ccmadmin"
188-
DefaultPwToBeChanged = "123qwe"
189-
CCMDBUser = $DatabaseUser
190-
}
191-
$CcmJson | ConvertTo-Json | Out-File "$env:SystemDrive\choco-setup\logs\ccm.json"
165+
$CcmJson | ConvertTo-Json | Out-File "$env:SystemDrive\choco-setup\logs\ccm.json"
192166

193-
Write-Host "CCM Setup has now completed" -ForegroundColor Green
167+
Write-Host "CCM Setup has now completed" -ForegroundColor Green
194168

195-
$ErrorActionPreference = $DefaultEap
196-
Stop-Transcript
197-
}
169+
$ErrorActionPreference = $DefaultEap
170+
Stop-Transcript
198171
}

scripts/Start-C4bCcmSetup2.ps1

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)