Group Resource not auto-correcting?

Welcome Forums DSC (Desired State Configuration) Group Resource not auto-correcting?

This topic contains 2 replies, has 3 voices, and was last updated by

3 years, 2 months ago.

  • Author
  • #32238

    Points: 0
    Rank: Member

    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

    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

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

  • #32357

    Points: -19
    Rank: Member

    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.

The topic ‘Group Resource not auto-correcting?’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort