Skip to content

Commit

Permalink
refactor: Remove unneeded Windows Optional Features (#180)
Browse files Browse the repository at this point in the history
- NET Framework 3.5
- NET Framework 4.x + ASPNET 4.x
  • Loading branch information
LeDragoX committed Sep 8, 2024
1 parent eb948e4 commit c32123f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/scripts/Optimize-WindowsFeaturesList.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ function Optimize-WindowsFeaturesList() {
"WorkFolders-Client" # Work Folders Client
)

$EnableFeatures = @(
"NetFx3" # NET Framework 3.5
"NetFx4Extended-ASPNET45" # NET Framework 4.x + ASPNET 4.x
)

Write-Title "Optional Features Tweaks"
Write-Section "Uninstall Optional Features from Windows"

Expand All @@ -36,9 +31,6 @@ function Optimize-WindowsFeaturesList() {
} Else {
Set-OptionalFeatureState -State 'Disabled' -OptionalFeatures $DisableFeatures
}

Write-Section "Install Optional Features from Windows"
Set-OptionalFeatureState -State 'Enabled' -OptionalFeatures $EnableFeatures
}

# List all Optional Features:
Expand Down

0 comments on commit c32123f

Please sign in to comment.