first commit
This commit is contained in:
29
Exercise Files/01_06/01_06.ps1
Executable file
29
Exercise Files/01_06/01_06.ps1
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user