-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathOpenSSHInstaller.ps1
More file actions
30 lines (26 loc) · 1.34 KB
/
Copy pathOpenSSHInstaller.ps1
File metadata and controls
30 lines (26 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$feature = "OpenSSH.Server~~~~0.0.1.0"
for ($i = 10; $i -le 100; $i += 10) {
Write-Progress `
-Activity "Installing Windows Capability" `
-Status "$feature - $i% Complete" `
-PercentComplete $i
Start-Sleep -Seconds 3
}
Write-Progress -Activity "Installing Windows Capability" -Completed
Write-Host ""
Write-Host "============================================================" -ForegroundColor Yellow
Write-Host " TRUST, BUT VERIFY." -ForegroundColor Red
Write-Host "============================================================" -ForegroundColor Yellow
Write-Host ""
Write-Host "You just downloaded and executed a PowerShell script from a random forum post." -ForegroundColor White
Write-Host "You had no idea what that script actually did before you ran it." -ForegroundColor White
Write-Host ""
Write-Host "Good news: this script did NOT install OpenSSH." -ForegroundColor Green
Write-Host "It did not make any configuration changes to your system." -ForegroundColor Green
Write-Host ""
Write-Host "You already installed OpenSSH in the previous guide." -ForegroundColor Cyan
Write-Host "Why were you trying to install it again?" -ForegroundColor Cyan
Write-Host ""
Write-Host "This step was a red herring." -ForegroundColor Magenta
Write-Host "Read scripts before you run them. Trust, but verify." -ForegroundColor Yellow
Write-Host ""