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
<?xml version="1.0" encoding="utf-8"?> | |
<labbuilderconfig xmlns="labbuilderconfig" name="WEFADSecurityLogs" version="1.0"> | |
<description></description> | |
<settings labpath="G:\WEFADSecurityLogs" /> | |
<resources> | |
<msu name="WMF5.0-WS2012R2-W81" url="https://download.microsoft.com/download/2/C/6/2C6E1B4A-EBE5-48A6-B225-2D2058A9CEFB/Win8.1AndW2K12R2-KB3134758-x64.msu" /> | |
<msu name="WMF5.0-WS2012-W8" url="https://download.microsoft.com/download/2/C/6/2C6E1B4A-EBE5-48A6-B225-2D2058A9CEFB/W2K12-KB3134759-x64.msu" /> | |
<msu name="WMF5.0-WS2008R2-W7" url="https://download.microsoft.com/download/2/C/6/2C6E1B4A-EBE5-48A6-B225-2D2058A9CEFB/Win7AndW2K8R2-KB3134760-x64.msu" /> | |
</resources> | |
<switches> |
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
configuration Collector | |
{ | |
Import-DscResource –ModuleName PSDesiredStateConfiguration | |
Import-DscResource -ModuleName xWindowsEventForwarding | |
Windowsfeature RSATADPowerShell{ | |
Ensure = 'Present' | |
Name = 'RSAT-AD-PowerShell' | |
} |
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
Configuration JenkinsSlave { | |
param ( | |
[string[]]$NodeName | |
) | |
Import-DscResource -Module PSDesiredStateConfiguration | |
Import-DscResource -Module xPSDesiredStateConfiguration | |
Node $AllNodes.Nodename { |
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
function Get-ADGroupMemberProperties { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$true)] | |
[string]$Identity, | |
[Parameter(Mandatory=$false)] | |
$Properties | |
) | |
begin { |
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
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 |
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
@{ | |
AllNodes = @( | |
@{ | |
NodeName = '*' | |
Lability_SwitchName = 'External' | |
DomainName = 'globomantics.com' | |
Lability_StartupMemory = 2GB; | |
PSDscAllowPlainTextPassword = $true; | |
} | |
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
function New-DomainSignedCertificate { | |
[CmdletBinding()] | |
param( | |
[parameter(Mandatory=$true)] | |
[string] | |
$Hostname, | |
[parameter(Mandatory=$true)] | |
[string] | |
$Organization, |
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
configuration DscPullServer | |
{ | |
param | |
( | |
[string[]]$NodeName = 'localhost', | |
[ValidateNotNullOrEmpty()] | |
[string] $certificateThumbPrint, | |
[Parameter(Mandatory)] |
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
Configuration WebServer { | |
Import-DscResource -ModuleName 'PSDesiredStateConfiguration' | |
Import-DscResource -ModuleName "xWebAdministration" | |
Node WebServerConfig { | |
WindowsFeature WindowsServer { | |
Name = 'Web-Server' | |
} |
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
[DSCLocalConfigurationManager()] | |
Configuration LCM_Pull { | |
Node Pull { | |
Settings { | |
ConfigurationMode = 'ApplyAndAutoCorrect' | |
RefreshMode = 'Pull' | |
} |