From f29f1792dd0f0b196558b1a83d2078d1d3e64b98 Mon Sep 17 00:00:00 2001 From: simeononsecurity <4913771+simeononsecurity@users.noreply.github.com> Date: Sat, 26 Dec 2020 20:18:14 +0000 Subject: [PATCH] Added Windows Optional Features --- windows10.ps1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/windows10.ps1 b/windows10.ps1 index ae5018f..e643f54 100644 --- a/windows10.ps1 +++ b/windows10.ps1 @@ -18,6 +18,18 @@ Start-Job -Name "Install and Configure Chocolatey" -ScriptBlock { choco upgrade all } +Start-Job -Name "Installing Optional Windows Features" -ScriptBlock { + #Enable-WindowsOptionalFeature -Online -FeatureName "" -All + Enable-WindowsOptionalFeature -Online -FeatureName "Client-ProjFS" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "ClientForNFS-Infrastructure" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "DataCenterBridging" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "DirectoryServices-ADAM-Client" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Subsystem-Linux" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "NFS-Administration" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "ServicesForNFS-ClientOnly" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "SimpleTCP" -All -NoRestart +} + Start-Sleep 15 Start-Job -Name "Installing Windows Updates" -ScriptBlock { Write-Host "Install Latest Windows Updates"