Hi ,i have created a dsc https pull server and the https website working fine but when i am trying to update the configuration on a bode using update-dscconfiguration it throws an error<\/p>\n
my code is:<\/p>\n
[DSCLocalConfigurationManager()] [Parameter(Mandatory=$true)] ) Settings {<\/p>\n AllowModuleOverwrite = $True ConfigurationRepositoryWeb DSCHTTPS { $ComputerName=‘2nd-server’<\/p>\n $guid=[guid]::NewGuid()<\/p>\n LCM_HTTPSPULL -ComputerName $ComputerName -Guid $guid -OutputPath c:\\DSC\\HTTPS configuration SMTP {<\/p>\n Node HTTPSComputers {<\/p>\n WindowsFeature SMTP{ SMTP -OutputPath C:\\DSC\\HTTPS<\/p>\n $guid = Get-DscLocalConfigurationManager -CimSession 2nd-server | Select-Object -ExpandProperty ConfigurationId but the error comes up:<\/p>\n PS C:\\Users\\Administrator> Update-DscConfiguration -ComputerName 2nd-server -Verbose -Wait VERBOSE: Operation ‘Invoke CimMethod’ complete. Hi ,i have created a dsc https pull server and the https website working fine but when i am trying to update the configuration on a bode using update-dscconfiguration it throws an error<\/p>\n my code is:<\/p>\n [DSCLocalConfigurationManager()] [Parameter(Mandatory=$true)] ) Settings {<\/p>\n AllowModuleOverwrite = $True ConfigurationRepositoryWeb DSCHTTPS { $ComputerName=‘2nd-server’<\/p>\n $guid=[guid]::NewGuid()<\/p>\n LCM_HTTPSPULL -ComputerName $ComputerName -Guid $guid -OutputPath c:\\DSC\\HTTPS configuration SMTP {<\/p>\n Node HTTPSComputers {<\/p>\n WindowsFeature SMTP{ SMTP -OutputPath C:\\DSC\\HTTPS<\/p>\n $guid = Get-DscLocalConfigurationManager -CimSession 2nd-server | Select-Object -ExpandProperty ConfigurationId but the error comes up:<\/p>\n PS C:\\Users\\Administrator> Update-DscConfiguration -ComputerName 2nd-server -Verbose -Wait VERBOSE: Operation ‘Invoke CimMethod’ complete. If you post code, please use the ‘Insert Code’ button. Please and thank you!<\/p>\n
\nConfiguration LCM_HTTPSPULL
\n{
\nparam
\n(
\n[Parameter(Mandatory=$true)]
\n[string<\/span>]$ComputerName,<\/p>\n
\n[string]$guid<\/p>\n
\nNode $ComputerName {<\/p>\n
\nConfigurationMode = ‘ApplyAndAutoCorrect’
\nRefreshMode = ‘Pull’
\nConfigurationID = $guid
\n}<\/p>\n
\nServerURL = ’ https://win-1c1g3jjmvte.company.com:8080/PSDSCPullServer.svc/<\/a> ’
\nCertificateID = ‘535ce718e45636f4f85faa27bb4820ddcd4d0196’
\nAllowUnsecureConnection = $False
\n}
\n}
\n}<\/p>\n<\/a>Computer list<\/h1>\n
<\/a>Create Guid for the computers<\/h1>\n
<\/a>Create the Computer.Meta.Mof in folder<\/h1>\n
\nSet-DscLocalConfigurationManager -ComputerName 2nd-server -Path c:\\dsc\\https -Verbose<\/p>\n
\nName = ‘SMTP-Server’
\nEnsure = ‘Absent’
\n}
\n}
\n}<\/p>\n
\n$source = “C:\\DSC\\HTTPS\\HTTPSComputers.mof”
\n$dest = “C:\\Program Files\\WindowsPowerShell\\DscService\\Configuration$guid.mof”
\nCopy-Item -Path $source -Destination $dest
\nNew-DscChecksum $dest
\nGet-WindowsFeature -ComputerName 2nd-server -Name smtp<\/em>
\nUpdate-DscConfiguration -ComputerName 2nd-server -Verbose -Wait<\/p>\n
\nVERBOSE: Perform operation ‘Invoke CimMethod’ with following parameters, '‘methodName’ = PerformRequiredConfigurationCh
\necks,‘className’ = MSFT_DSCLocalConfigurationManager,‘namespaceName’ = root/Microsoft/Windows/DesiredStateConfiguration
\n'.
\nVERBOSE: An LCM method call arrived from computer WIN-1C1G3JJMVTE with user sid S-1-5-21-3577307172-3655170180-34794668
\n09-500.
\nVERBOSE: [2ND-SERVER]: <\/span> Executing Get-Action with configuration 25a22392-77eb-4e8e-b768-a9
\n5b0248a785’s checksum: .
\nVERBOSE: [2ND-SERVER]: <\/span> Executing Get-Action with configuration 25a22392-77eb-4e8e-b768-a9
\n5b0248a785’s checksum failed. Please check the availability of pull server.
\nFailed to get the action from server https://win-1c1g3jjmvte.company.com:8080/PSDSCPullServer.svc//Action<\/a>(Configuratio
\nnId=‘25a22392-77eb-4e8e-b768-a95b0248a785’)/GetAction.<\/p>\n\n
\nds.GetDscActionCommand<\/li>\n
\nVERBOSE: Time taken for configuration job to complete is 5.909 seconds<\/p>","upvoteCount":4,"answerCount":4,"datePublished":"2021-05-11T00:01:51.000Z","author":{"@type":"Person","name":"spiceuser-gcxs1","url":"https://community.spiceworks.com/u/spiceuser-gcxs1"},"suggestedAnswer":[{"@type":"Answer","text":"
\nConfiguration LCM_HTTPSPULL
\n{
\nparam
\n(
\n[Parameter(Mandatory=$true)]
\n[string<\/span>]$ComputerName,<\/p>\n
\n[string]$guid<\/p>\n
\nNode $ComputerName {<\/p>\n
\nConfigurationMode = ‘ApplyAndAutoCorrect’
\nRefreshMode = ‘Pull’
\nConfigurationID = $guid
\n}<\/p>\n
\nServerURL = ’ https://win-1c1g3jjmvte.company.com:8080/PSDSCPullServer.svc/<\/a> ’
\nCertificateID = ‘535ce718e45636f4f85faa27bb4820ddcd4d0196’
\nAllowUnsecureConnection = $False
\n}
\n}
\n}<\/p>\n<\/a>Computer list<\/h1>\n
<\/a>Create Guid for the computers<\/h1>\n
<\/a>Create the Computer.Meta.Mof in folder<\/h1>\n
\nSet-DscLocalConfigurationManager -ComputerName 2nd-server -Path c:\\dsc\\https -Verbose<\/p>\n
\nName = ‘SMTP-Server’
\nEnsure = ‘Absent’
\n}
\n}
\n}<\/p>\n
\n$source = “C:\\DSC\\HTTPS\\HTTPSComputers.mof”
\n$dest = “C:\\Program Files\\WindowsPowerShell\\DscService\\Configuration$guid.mof”
\nCopy-Item -Path $source -Destination $dest
\nNew-DscChecksum $dest
\nGet-WindowsFeature -ComputerName 2nd-server -Name smtp<\/em>
\nUpdate-DscConfiguration -ComputerName 2nd-server -Verbose -Wait<\/p>\n
\nVERBOSE: Perform operation ‘Invoke CimMethod’ with following parameters, '‘methodName’ = PerformRequiredConfigurationCh
\necks,‘className’ = MSFT_DSCLocalConfigurationManager,‘namespaceName’ = root/Microsoft/Windows/DesiredStateConfiguration
\n'.
\nVERBOSE: An LCM method call arrived from computer WIN-1C1G3JJMVTE with user sid S-1-5-21-3577307172-3655170180-34794668
\n09-500.
\nVERBOSE: [2ND-SERVER]: <\/span> Executing Get-Action with configuration 25a22392-77eb-4e8e-b768-a9
\n5b0248a785’s checksum: .
\nVERBOSE: [2ND-SERVER]: <\/span> Executing Get-Action with configuration 25a22392-77eb-4e8e-b768-a9
\n5b0248a785’s checksum failed. Please check the availability of pull server.
\nFailed to get the action from server https://win-1c1g3jjmvte.company.com:8080/PSDSCPullServer.svc//Action<\/a>(Configuratio
\nnId=‘25a22392-77eb-4e8e-b768-a95b0248a785’)/GetAction.<\/p>\n\n
\nds.GetDscActionCommand<\/li>\n
\nVERBOSE: Time taken for configuration job to complete is 5.909 seconds<\/p>","upvoteCount":4,"datePublished":"2021-05-11T00:01:51.000Z","url":"https://community.spiceworks.com/t/dsc-pull-server/799455/1","author":{"@type":"Person","name":"spiceuser-gcxs1","url":"https://community.spiceworks.com/u/spiceuser-gcxs1"}},{"@type":"Answer","text":"