Group Resource not auto-correcting?

This topic contains 2 replies, has 3 voices, and was last updated by Profile photo of Arie H Arie H 10 months, 4 weeks ago.

  • Author
  • #32238
    Profile photo of Greg

    Testing DSC w/PS5 in lab scenario. I have a Pull server and a single client both running W2K12 R2. Using just the Service and Group resources as a test – have the LCM set to "ApplyandAutoCorrect". Using Test-DscConfiguration – the correct True/False responses are generated. When i manually stop the service i am testing with and run Update-DscConfiguration – it immediately starts the service.

    I created a local group "TestGroup" and have the "Ensure = Absent" set but the group is never removed. Any ideas?

    The script to create the mof file is as follows:

    Configuration BaseConfig2 {

    param( [string[]]$ComputerName="localhost")

    Node $ComputerName {

    Service SNMPService {
    Name = "SNMP"
    StartupType = "Automatic"
    State = "Running"

    Group TestGroup {
    Ensure = "Absent"
    GroupName = "TestGroup"


    BaseConfig2 -output "."

  • #32257
    Profile photo of Don Jones
    Don Jones

    I'd say you need to spin up a diagnostics trace and see what gets logged.

  • #32357
    Profile photo of Arie H
    Arie H

    Hi Greg

    It seems to be working correctly in my enviroment.
    Going to redo the scenrio on a clean machine to be sure its not something i left from my tests.

    Arie H.

You must be logged in to reply to this topic.