Skip to content

Instantly share code, notes, and snippets.

@frankiem-4
frankiem-4 / DSCPullServerLab.psd1
Created November 27, 2017 17:41 — forked from duffney/DSCPullServerLab.psd1
Configuration data for DSC pull server lab environment provisioning with Lability.
@{
AllNodes = @(
@{
NodeName = '*'
Lability_SwitchName = 'External'
DomainName = 'globomantics.com'
Lability_StartupMemory = 2GB;
PSDscAllowPlainTextPassword = $true;
}
@frankiem-4
frankiem-4 / DSCPullServerLab.ps1
Last active November 27, 2017 17:43 — forked from duffney/DSCPullServerLab.ps1
Pull server lab DSC config for lability sets up AD domain and ADCS.
Configuration Pull {
param (
[Parameter()] [ValidateNotNull()] [PSCredential] $Credential = (Get-Credential -Credential 'Administrator')
)
Import-DscResource -Module PSDesiredStateConfiguration
Import-DscResource -Module XActiveDirectory
Import-DscResource -Module XPSDesiredStateConfiguration
Import-DscResource -Module xAdcsDeployment
#requires -Version 4.0
<#
Author: Luke Murray (Luke.Geek.NZ)
Version: 0.1
Purpose: Windows 10 Baseline Hardening using DSC per DoD DISA STIG recommendations 22/06/18.
Modified to include comments explaining config by Frankie McDonough 01/23/19.
#>
Configuration 'Win10'
{
#requires -Version 4.0
<#
Author: Luke Murray (Luke.Geek.NZ)
Version: 0.1
Purpose: Windows Server 2016 Baseline Hardening using DSC per DoD DISA STIG recommendations 22/06/18.
#>
Configuration 'Server2016'
{