Add admin check

This commit is contained in:
Markus Fleschutz 2021-03-26 12:44:13 +01:00
parent 3acf39c851
commit 40081477db
2 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,8 @@
.NOTES Author: Markus Fleschutz / License: CC0 .NOTES Author: Markus Fleschutz / License: CC0
#> #>
#Requires -RunAsAdministrator
try { try {
Add-WindowsCapability -Online -Name OpenSSH.Client* Add-WindowsCapability -Online -Name OpenSSH.Client*

View File

@ -6,6 +6,8 @@
.NOTES Author: Markus Fleschutz / License: CC0 .NOTES Author: Markus Fleschutz / License: CC0
#> #>
#Requires -RunAsAdministrator
try { try {
Add-WindowsCapability -Online -Name OpenSSH.Server* Add-WindowsCapability -Online -Name OpenSSH.Server*
Start-Service sshd Start-Service sshd