Author Posts

March 8, 2016 at 3:52 am

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

March 8, 2016 at 4:50 am

check your output folder, but I think that config is creating a localhost.meta.mof file. Because you're specifying a remote computer to run that config, it's looking for computername.meta.mof. You can either rename your localhost.meta.mof file, or add the nodename to your configuration