DSC only resources that run are WindowsFeature resources

Tagged: 

This topic contains 1 reply, has 1 voice, and was last updated by Profile photo of Bill Farrell Bill Farrell 7 months ago.

  • Author
    Posts
  • #38513
    Profile photo of Bill Farrell
    Bill Farrell
    Participant

    I have the following configuration, a snippet of which is below, and the only resources that get processed are the windowsfeature resources. No matter what I do, no other resource gets processed, and no errors are generated. For example, BITSManual, RMADBackupAgent and SourceFolder do not run.

    Configuration DCConfig{
    param ($CompName)
    Import-DscResource -ModuleName PSDesiredStateConfiguration
    Node $CompName{

    File SourceFolder {
    Ensure="Present"
    Type="Directory"
    DestinationPath="C:\Install\DSCSource"
    }

    Service BITSManual {
    Name='BITS'
    State='Stopped'
    StartupType='Manual'
    }

    # WORKS
    WindowsFeature Backup{
    Ensure="Present"
    Name="Windows-Server-Backup"
    }

    # WORKS
    WindowsFeature DNSServer{
    Ensure="Present"
    Name="DNS"}

    Package RMADBackupAgent {
    Ensure = "Present"
    Name = "Dell Backup Agent for Active Directory"
    Path = "c:\Install\DSCSource\BackupAgent.msi"
    ProductId = '6851664D-FC89-437C-8D3D-667DBDC474B1'
    Arguments = '/i C:\Install\DSCSource\BackupAgent.msi /qn' # args for silent mode
    }

  • #38515
    Profile photo of Bill Farrell
    Bill Farrell
    Participant

    I found the problem. I am doing a push install with verbose so that I can watch it run, and I had been running an old version of the script from the wrong directory. I fixed that, and all of the DSC resources are processing now.

You must be logged in to reply to this topic.