I created my first DSC Pull server, which installed IIS as required in the managed node vms02, I later uninstalled iis manually from vms02.
now when I do
why is InDesiredState showing true when it should actually be False?
[string]$ComputerName = 'vms03'
Import-DSCResource -ModuleName xPSDesiredStateConfiguration
NewPullServer –ComputerName vms03
Start-DscConfiguration .\NewPullServer –Wait -Verbose
#Test the pull server
VMS02WEBSITE –MachineName “Vms02"
$target = "C:\Program Files\WindowsPowerShell\DscService\Configuration"
Set-DSCLocalConfigurationManager –Computer vms02 -Path C:\SetPullMode –Verbose
When you installed DSC Service on vms02 that installs a Local Configuration Manager. The local configuration manager has no reliance on IIS unless it is pulling from a pull server. When it connects to the pull server it downloads a config to the local machine and sets that config as current. When the LCM does its local timed check to see if the machine is in desired state it is may look to the Pull Server for an updated config. If it doesn't find it, it then uses the last config that it had, which is called Current. If you want to remove desired state config from a node, first remove-dscconfiguartiondocument -stage current, previous, pending -force and then remove the desired state config service. This will remove all config mgmt. from the node.
Configs are stored locally and executed locally in case there it cannot reach the pull server for a period of time. Does that answer the question?
Actually, I am sorry I re-read your question, I see that my response was not appropriate to your question. My apologies.
You must be logged in to reply to this topic.