From b317a49781e95cadda17617f781fdc8404e34f4c Mon Sep 17 00:00:00 2001 From: simeononsecurity <4913771+simeononsecurity@users.noreply.github.com> Date: Wed, 3 Aug 2022 22:09:59 -0500 Subject: [PATCH] Update windows11.ps1 --- windows11.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows11.ps1 b/windows11.ps1 index 92d0234..4ef25ee 100644 --- a/windows11.ps1 +++ b/windows11.ps1 @@ -28,7 +28,7 @@ Start-Job -Name "Install and Configure Chocolatey" -ScriptBlock { Start-Job -Name "Installing Optional Windows Features" -ScriptBlock { #https://www.ghacks.net/2017/07/14/use-windows-powershell-to-install-optional-features/ #Enable-WindowsOptionalFeature -Online -FeatureName "" -All - ForEach ($OptionalFeature in ("Client-ProjFS", "ClientForNFS-Infrastructure", "DataCenterBridging", "DirectoryServices-ADAM-Client", "Microsoft-Windows-Subsystem-Linux", "NFS-Administration", "ServicesForNFS-ClientOnly", "SimpleTCP", "WindowsMediaPlayer")) { + ForEach ($OptionalFeature in ("Client-ProjFS", "ClientForNFS-Infrastructure", "DataCenterBridging", "DirectoryServices-ADAM-Client", "NFS-Administration", "ServicesForNFS-ClientOnly", "SimpleTCP", "WindowsMediaPlayer")) { Enable-WindowsOptionalFeature -Online -FeatureName "$OptionalFeature" -All -NoRestart -WarningAction SilentlyContinue | Out-Null }