This repository was archived by the owner on May 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,7 @@ DisableMediaSharing # EnableMediaSharing
213
213
# InstallHyperV # UninstallHyperV
214
214
# UninstallSSHClient # InstallSSHClient
215
215
# InstallSSHServer # UninstallSSHServer
216
+ # InstallTelnetClient # UninstallTelnetClient
216
217
# InstallNET23 # UninstallNET23
217
218
SetPhotoViewerAssociation # UnsetPhotoViewerAssociation
218
219
AddPhotoViewerOpenWith # RemovePhotoViewerOpenWith
Original file line number Diff line number Diff line change @@ -3468,6 +3468,26 @@ Function UninstallSSHServer {
3468
3468
Get-WindowsCapability - Online | Where-Object { $_.Name -like " OpenSSH.Server*" } | Remove-WindowsCapability - Online | Out-Null
3469
3469
}
3470
3470
3471
+ # Install Telnet Client
3472
+ Function InstallTelnetClient {
3473
+ Write-Output " Installing Telnet Client..."
3474
+ If ((Get-CimInstance - Class " Win32_OperatingSystem" ).ProductType -eq 1 ) {
3475
+ Get-WindowsOptionalFeature - Online | Where-Object { $_.FeatureName -eq " TelnetClient" } | Enable-WindowsOptionalFeature - Online - NoRestart - WarningAction SilentlyContinue | Out-Null
3476
+ } Else {
3477
+ Install-WindowsFeature - Name " Telnet-Client" - WarningAction SilentlyContinue | Out-Null
3478
+ }
3479
+ }
3480
+
3481
+ # Uninstall Telnet Client
3482
+ Function UninstallTelnetClient {
3483
+ Write-Output " Uninstalling Telnet Client..."
3484
+ If ((Get-CimInstance - Class " Win32_OperatingSystem" ).ProductType -eq 1 ) {
3485
+ Get-WindowsOptionalFeature - Online | Where-Object { $_.FeatureName -eq " TelnetClient" } | Disable-WindowsOptionalFeature - Online - NoRestart - WarningAction SilentlyContinue | Out-Null
3486
+ } Else {
3487
+ Uninstall-WindowsFeature - Name " Telnet-Client" - WarningAction SilentlyContinue | Out-Null
3488
+ }
3489
+ }
3490
+
3471
3491
# Install .NET Framework 2.0, 3.0 and 3.5 runtimes - Requires internet connection
3472
3492
Function InstallNET23 {
3473
3493
Write-Output " Installing .NET Framework 2.0, 3.0 and 3.5 runtimes..."
You can’t perform that action at this time.
0 commit comments