< Back

New-StigCheckList

Sat Jan 18, 2020 9:46 pm

NAME New-StigCheckList



SYNOPSIS

Automatically creates a Stig Viewer checklist from the DSC results or

compiled MOF





SYNTAX

New-StigCheckList -ReferenceConfiguration <String> -XccdfPath <String> -OutputPath <FileInfo> [-ManualCheckFile

<String>] [<CommonParameters>]



New-StigCheckList -DscResult <ArrayList> -XccdfPath <String> -OutputPath <FileInfo> [-ManualCheckFile <String>]

[<CommonParameters>]





DESCRIPTION





PARAMETERS

-ReferenceConfiguration <String>

The MOF that was compiled with a PowerStig composite



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DscResult <ArrayList>

The results of Test-DscConfiguration



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-XccdfPath <String>

The path to the matching xccdf file. This is currently needed since we

do not pull add xccdf data into PowerStig



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-OutputPath <FileInfo>

The location you want the checklist saved to



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ManualCheckFile <String>

Location of a psd1 file containing the input for Vulnerabilities unmanaged via DSC/PowerSTIG.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Xml.XmlDocument





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>New-StigCheckList -ReferenceConfiguration $referenceConfiguration -XccdfPath $xccdfPath -OutputPath

$outputPath













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>New-StigCheckList -ReferenceConfiguration $referenceConfiguration -ManualCheckFile

"C:\\Stig\\ManualChecks\\2012R2-MS-1.7.psd1" -XccdfPath $xccdfPath -OutputPath $outputPath



New-StigCheckList -ReferenceConfiguration $referenceConfiguration -ManualCheckFile $manualCheckFilePath -XccdfPath

$xccdfPath -OutputPath $outputPath











RELATED LINKS