Created
April 7, 2017 03:11
-
-
Save rkyttle/6aa9e27e6c7fdfa1ac28dc6976831f92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configuration RemoveSMB1 { | |
param([string[]]$ComputerName='localhost') | |
Import-DscResource -ModuleName PSDesiredStateConfiguration | |
Node $ComputerName { | |
#Ensure SMB1 feature is not installed | |
WindowsFeature 'SMB1' { | |
Name = 'FS-SMB1' | |
Ensure = 'Absent' | |
} | |
} | |
} | |
RemoveSMB1 -OutputPath .\ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment