Fix install script

This commit is contained in:
Michael Grafnetter 2024-10-06 17:36:30 +02:00 committed by GitHub
parent 39ee8a69bb
commit c41460521f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

7
.github/README.md vendored
View File

@ -58,13 +58,16 @@ Additional steps might be required on some freshly installed computers before DS
```powershell
# TLS 1.2 must be enabled on older versions of Windows.
[System.Net.ServicePointManager]::SecurityProtocol += [System.Net.SecurityProtocolType]::Tls12
[System.Net.ServicePointManager]::SecurityProtocol =
[System.Net.ServicePointManager]::SecurityProtocol -bor [System.Net.SecurityProtocolType]::Tls12
# Download the NuGet package manager binary.
Install-PackageProvider -Name NuGet -Force
# Register the PowerShell Gallery as package repository if it is missing for any reason.
if($null -eq (Get-PSRepository -Name PSGallery -ErrorAction SilentlyContinue)) { Register-PSRepository -Default }
if($null -eq (Get-PSRepository -Name PSGallery -ErrorAction SilentlyContinue)) {
Register-PSRepository -Default
}
# Download the DSInternals PowerShell module.
Install-Module -Name DSInternals -Force