Created
August 1, 2017 19:45
-
-
Save MatthewJDavis/13effe612ad0eabc438675ba92055f35 to your computer and use it in GitHub Desktop.
Pester Tests for RSAT install
This file contains hidden or 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
| Describe 'Management VM Config' { | |
| Context 'Management Tools' { | |
| It 'Should have the Remote Server Admin Tools AD feature installed' { | |
| (Get-WindowsFeature -Name RSAT-AD-Tools).installed | Should Be $true | |
| } | |
| It 'Should have the Remote Server Admin Tools AD PowerShell feature installed' { | |
| (Get-WindowsFeature -Name RSAT-AD-PowerShell).installed | Should Be $true | |
| } | |
| It 'Should have the Remote Server Admin Tools DNS feature installed' { | |
| (Get-WindowsFeature -Name RSAT-DNS-Server).installed | Should Be $true | |
| } | |
| } | |
| Context 'Security' { | |
| It 'Should not have SMB 1 installed' { | |
| (Get-WindowsFeature -Name FS-SMB1).installed | Should Be $false | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment