Merge branch 'main' of ssh://gitea.rutishauser.info:2222/roru/IT-Wissen into main
This commit is contained in:
commit
4d6bf8607f
@ -8,6 +8,38 @@ include_toc: true
|
||||
|
||||
Windows-R Tastenkombination, anschliessend `shell:startup`
|
||||
|
||||
## TLS Version aktiv/inaktiv?
|
||||
|
||||
```
|
||||
# Function to check TLS version
|
||||
function Test-TlsVersion {
|
||||
param (
|
||||
[string]$ComputerName = "localhost"
|
||||
)
|
||||
|
||||
try {
|
||||
# Test TLS 1.0
|
||||
$tls10 = [System.Net.ServicePointManager]::SecurityProtocol -band [System.Net.SecurityProtocolType]::Tls10
|
||||
|
||||
# Test TLS 1.1
|
||||
$tls11 = [System.Net.ServicePointManager]::SecurityProtocol -band [System.Net.SecurityProtocolType]::Tls11
|
||||
|
||||
# Test TLS 1.2
|
||||
$tls12 = [System.Net.ServicePointManager]::SecurityProtocol -band [System.Net.SecurityProtocolType]::Tls12
|
||||
|
||||
Write-Host "TLS 1.0 Enabled: $($tls10 -ne 0)" -ForegroundColor Green
|
||||
Write-Host "TLS 1.1 Enabled: $($tls11 -ne 0)" -ForegroundColor Green
|
||||
Write-Host "TLS 1.2 Enabled: $($tls12 -ne 0)" -ForegroundColor Green
|
||||
}
|
||||
catch {
|
||||
Write-Host "Error: $_" -ForegroundColor Red
|
||||
}
|
||||
}
|
||||
|
||||
# Check TLS versions on the local machine
|
||||
Test-TlsVersion
|
||||
```
|
||||
|
||||
## .NET
|
||||
|
||||
### .NET Version herausfinden
|
||||
|
||||
Loading…
Reference in New Issue
Block a user