microsoft / StigRepo

Automated PowerSTIG Repository for Active Directory environments
38 stars 7 forks source link

New-SystemData doesn't include MinorVersion in PoSH 7 #25

Closed JakeDean3631 closed 3 years ago

JakeDean3631 commented 3 years ago

Bug/Issue Description IIS Site/Server System Data Generation sets IIS version as "10" instead of "10.0" in Powershell 7

Reproduction Steps Steps to reproduce the behavior:

  1. Open Powershell 7
  2. Run New-SystemData with a targeted IIS Server
  3. Observe the IISVersion Parameter under IIS Site/Server are set to "10"
  4. Run Start-DscBuild to generate MOFs and see that it fails.

Expected Behavior IISVersion includes the minorversion number

Recommended fix action Remove the [decimal] type from the $iisVersion variable within New-System Data

Existing Workarounds Manually set the IIS version to 10.0

Screenshots If applicable, add screenshots to help explain your problem

Additional context Add any other context about the problem here.