Skip to content

Instantly share code, notes, and snippets.

@MatthewJDavis
Created August 1, 2017 19:45
Show Gist options
  • Select an option

  • Save MatthewJDavis/13effe612ad0eabc438675ba92055f35 to your computer and use it in GitHub Desktop.

Select an option

Save MatthewJDavis/13effe612ad0eabc438675ba92055f35 to your computer and use it in GitHub Desktop.
Pester Tests for RSAT install
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