PowerStig icon indicating copy to clipboard operation
PowerStig copied to clipboard

Powerstig : filename problem with stigs/processed XML files !

Open mareban opened this issue 4 years ago • 1 comments

Hello,

I'm trying powerstig 4.9.1, but i 've a 'file not found' issue when generating a checklist for the stigviewer : WindowsServer-2019-2.2.xml instead of WindowsServer-2019-MS-2.2.xml !!!

I can create a mof file for a windows server 2019 following the wiki :

PS C:\MyStigs\PowerStig> cat .\windows2019.ps1 <# Use the embedded STIG data with default range values to apply the most recent STIG settings. In this example, the composite resource gets the highest 2012 R2 member server STIG version file it can find locally and applies it to the server. The composite resource merges in the default values for any settings that have a valid range. #> configuration Example { param ( [parameter()] [string] $NodeName = 'localhost' )

Import-DscResource -ModuleName PowerStig

Node $NodeName
{
    WindowsServer BaseLine
    {
        OsVersion   = '2019'
        OsRole      = 'MS'
        StigVersion = '2.2'
        DomainName  = 'ourdomain'
        ForestName  = 'ourdomain'
    }
}

}

The test-dscConfiguration is OK, but when i do a New-StigCheckList, there is an error message saying that 'WindowsServer-2019-2.2.xml ' is not found in .../stigs/processed/ !!

Is it a configuration issue on my side or a bug with PowerStig 4.9.1 ?

Thanks for your help.

PS : if i rename the file in stigs/processed, all is fine :-) !

mareban avatar Jul 22 '21 12:07 mareban

You should point to the Archive folder for the desired xml file. If you continue to have issues, try copying the xml file into the folder that contains the MOF file.

hinderjd avatar Jul 28 '21 23:07 hinderjd