mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-26 08:38:51 +01:00
Add admin check
This commit is contained in:
parent
3acf39c851
commit
40081477db
@ -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*
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user