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
http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/jamesallen-cm/1ba1f92cdfc6df47ef94/raw/74b7e7e2bcf68e3c20141aa57738ab24d8e09b52/boxstarter-winupdate.ps1 |
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
#Boxstarter options | |
$Boxstarter.RebootOk = $true # Allow reboots? | |
$Boxstarter.AutoLogin = $true # Save my password securely and auto-login after a reboot | |
Install-WindowsUpdate -AcceptEula |
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
$Boxstarter.RebootOk=$true | |
# enable psremoting | |
Write-Output "Enabling PSRemoting" | |
Enable-PSRemoting -Force | |
# manage updates from powershell | |
cinst pswindowsupdate -y | |
if($PSVersionTable.PSVersion -lt (New-Object 'Version' 5,0,10018,0)) | |
{ |
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
$Boxstarter.RebootOk=$true | |
# enable psremoting | |
Write-Output "Enabling PSRemoting" | |
Enable-PSRemoting -Force | |
# for write-zip file | |
cinst pscx -y | |
# manage updates from powershell | |
cinst pswindowsupdate -y |
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 SMTP { | |
Import-DscResource -ModuleName @{ModuleName="PSDesiredStateConfiguration";ModuleVersion="1.1"} | |
Node HTTPComputers { | |
WindowsFeature SMTP{ | |
Name = 'SMTP-Server' | |
Ensure = 'Present' | |
} | |
} | |
} |
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
# Computer list - Be sure to change the computer name to your server | |
$ComputerName='WIN-UO9GH1EJ9J7' | |
$cred = Get-Credential "$ComputerName\administrator" | |
$cimsession = New-CimSession -Credential $cred -ComputerName $ComputerName | |
# Send to computers LCM | |
Set-DSCLocalConfigurationManager -ComputerName $ComputerName -Credential $cred -Path c:\DSC\HTTP –Verbose | |
Get-DSCLocalConfigurationManager -CimSession $cimsession |
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
# Be sure to change the computer name to your server | |
$node = "WIN-C6U0AQ5K17N" | |
$cred = Get-Credential administrator | |
# Deploy HTTP Pull Server | |
Start-DscConfiguration -Force -Path C:\DSC\HTTP -Credential $cred -ComputerName $node -Verbose -Wait | |
# Test the pull server | |
Start-Process -FilePath iexplore.exe "http://$($node):8080/PSDSCPullServer.svc" |
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 HTTPPullServer | |
{ | |
param | |
( | |
[Parameter(Mandatory=$true)] | |
[string[]]$ComputerName | |
) | |
# Modules must exist on target pull 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_HTTPPULL | |
{ | |
param | |
( | |
[Parameter(Mandatory=$true)] | |
[string[]]$ComputerName, | |
[Parameter(Mandatory=$true)] | |
[string]$ServerURL, |
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
Open a Powershell prompt and paste one of the following commands. | |
SERVER: | |
START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/jamesallen-cm/2d08e881944da3cbcca6/raw/99c57af98e8966ff9b04dde7ba68fefd9681e647/DSCPullServerBootstrap-February | |
NODE: | |
START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/jamesallen-cm/627f076abeea333f520b/raw/63e15135a68129d3216910400b236b2cdc0b29e0/DSCNodeBootstrap-February |
NewerOlder