My goal is to install webserver on 16SRV03
My pull server - > 16Srv52 (I have mof and checksum file)
All servers are 2016 Server
I am running the below on 16SRV02 and i get error
“The computer-specific MOF file for computer 16srv03 does not exist in the current”
if I remove computer name run like this
“Set-DscLocalConfigurationManager -path C:\DSC -Verbose”
it installs the webserver on 16SRV02 but I want to install webserver on 16SRV03. What am I doing wrong
[DscLocalConfigurationManager()]
Configuration SampleRegistrationMetaConfig
{
Settings
{
RefreshFrequencyMins = 30;
RefreshMode = “PULL”;
ConfigurationMode = “ApplyAndAutoCorrect”;
AllowModuleOverwrite = $true
RebootNodeIfNeeded = $true
ConfigurationModeFrequencyMins = 60;
}
ConfigurationRepositoryWeb ConfigurationManager
{
ServerURL = "http://16SRV52:8080/PSDSCPullServer.svc"
RegistrationKey = "acf8a52e-47d6-49c8-9486-7262def4c2fd"
ConfigurationNames = @("InstallWebServer")
AllowUnsecureConnection = $true
}
}
SampleRegistrationMetaConfig -OutputPath C:\DSC
Set-DscLocalConfigurationManager -Computer 16srv03 -path C:\DSC -Verbose