Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SqlServer-2016-Instance-2.5.xml Not generating V-213954.a-d correctly when utilizing ConvertTo-PowerStigXml #1053

Closed
calrepo opened this issue Feb 8, 2022 · 2 comments
Assignees

Comments

@calrepo
Copy link

calrepo commented Feb 8, 2022

When adding HardCodeRules to SQL Server Instance 2.5 STIG and generating a new PowerStig Xml, the resulting Xml lacks the Name entries for V-213954 (all 4 split rules).

By default the following sample databases are in each sub rule Name entry:

<Name>Pubs</Name>
<Name>Northwind</Name>
<Name>AdventureWorks</Name>
<Name>WorldwideImporters</Name>

Upon regenerating the PowerStig Xml with the ConvertTo-PowerStigXml, the Name entries are blank ( <Name /> ) resulting in an exception when trying to compile.

The issue is easily remediated by entering the Name entries back into the xml.

@addavenp1
Copy link
Collaborator

This was due to a variable not clearing out during multiple converts within the same PowerShell session. Workaround would be to do as you did or start a new PowerShell session for the next convert.

The fix has been added to #1027. Should be available in the next version.

@addavenp1
Copy link
Collaborator

Closing issue. Changes have been published in latest release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants