Files
PowerShell_Adv_Automation/Exercise Files/01_06/01_06.ps1
Iwan Clement 1808f43f53 first commit
2020-11-03 18:55:20 +01:00

30 lines
698 B
PowerShell
Executable File

# GUID copied and pasted from SMB pull server
# Paste GID here
[DSCLocalConfigurationManager()]
Configuration PullClientConfigID
{
Node localhost
{
Settings
{
RefreshMode = 'Pull'
ConfigurationID = '#paste GID here'
RefreshFrequencyMins = 30
RebootNodeIfNeeded = $true
# ConfigurationMode = 'ApplyAndMonitor' --or-- 'ApplyAndAutoCorrect'
}
ConfigurationRepositoryShare SMBPullServer
{
SourcePath = '\\srv01\DscSmbPull'
}
}
}
PullClientConfigID
Set-DscLocalConfigurationManager -ComputerName localhost -Path .\PullClientConfigID