first commit

This commit is contained in:
Iwan Clement
2020-11-03 18:55:20 +01:00
commit 1808f43f53
12 changed files with 354 additions and 0 deletions

29
Exercise Files/01_06/01_06.ps1 Executable file
View File

@@ -0,0 +1,29 @@
# 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