Bug/Issue Description
Running Start-DscBuild -Computername generates MOFs for all systems instead of being limited to the provided ComputerName parameter value
Reproduction Steps
Steps to reproduce the behavior:
Run Start-DscBuild -ComputerName $CompName
See that a DSC Config is built only for the target system, but MOFs are generated for all systems
Expected Behavior
DscConfigs and MOFs are generated only for the target computername provided.
Recommended fix action
Modify New-SystemData to limit the MOF creation to the computername provided
Existing Workarounds
N/A
Screenshots
Additional context
Add any other context about the problem here.
RepoFunctions.PS1
782 dscNodeConfigs Creates an array system names
814 A foreach is run on DscNodeConfigs to nodeconfig this is where the MOF is generated there is nothing to limit it to just that computer name
Bug/Issue Description Running Start-DscBuild -Computername generates MOFs for all systems instead of being limited to the provided ComputerName parameter value
Reproduction Steps Steps to reproduce the behavior:
Expected Behavior DscConfigs and MOFs are generated only for the target computername provided.
Recommended fix action Modify New-SystemData to limit the MOF creation to the computername provided
Existing Workarounds N/A
Screenshots
Additional context Add any other context about the problem here.