Skip to content

Commit

Permalink
Updated to 4.0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
DrEmpiricism committed Mar 18, 2020
1 parent d69a85c commit 26537f8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Optimize-Offline.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,6 @@ Function Optimize-Offline
#endregion Windows Capability and Cabinet File Package Removal

#region Disable Unsafe Optional Features
#@('SMB1Protocol', 'MicrosoftWindowsPowerShellV2Root') | ForEach-Object -Process { Get-WindowsOptionalFeature -Path $InstallMount -FeatureName $PSItem -ScratchDirectory $ScratchFolder -LogPath $DISMLog -LogLevel 1 | Where-Object -Property State -EQ Disabled | Disable-WindowsOptionalFeature -Path $InstallMount -Remove -NoRestart -ScratchDirectory $ScratchFolder -LogPath $DISMLog -LogLevel 1 }
ForEach ($Feature In @('SMB1Protocol', 'MicrosoftWindowsPowerShellV2Root'))
{
If (Get-WindowsOptionalFeature -Path $InstallMount -FeatureName $Feature -ScratchDirectory $ScratchFolder -LogPath $DISMLog -LogLevel 1 | Where-Object -Property State -EQ Enabled)
Expand Down

0 comments on commit 26537f8

Please sign in to comment.