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

xWindowsOptionalFeature: Suppress useless verbose output #454

Merged
merged 10 commits into from
Jan 27, 2019

Conversation

mkht
Copy link
Contributor

@mkht mkht commented Oct 20, 2018

Pull Request (PR) description

Suppress annoying verbose output of xWindowsOptionalFeature

  • Before fixes
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendConfigurationApply,className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer DESKTOP-KNKJFMT with user sid S-1-5-21-1660624713-64340445-3472502389-500.
VERBOSE: [DESKTOP-KNKJFMT]: LCM:  [ Start  Set      ]
VERBOSE: [DESKTOP-KNKJFMT]: LCM:  [ Start  Resource ]  [[xWindowsOptionalFeature]NET35_Enable]
VERBOSE: [DESKTOP-KNKJFMT]: LCM:  [ Start  Test     ]  [[xWindowsOptionalFeature]NET35_Enable]
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Started Test-TargetResource on the NetFx3 feature.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Validating resource prerequisites...
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2,'className' = Win32_OperatingSystem'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Operation 'Enumerate CimInstances' complete.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Loading module from path 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Dism\Dism.psd1'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Loading 'TypesToProcess' from path 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Dism\Dism.Types.ps1xml'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Loading 'FormatsToProcess' from path 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Dism\Dism.Format.ps1xml'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Loading module from path 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Dism\Dism.psm1'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Add-AppxProvisionedPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Add-WindowsCapability'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Add-WindowsDriver'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Add-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Add-WindowsPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Clear-WindowsCorruptMountPoint'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Disable-WindowsOptionalFeature'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Dismount-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Enable-WindowsOptionalFeature'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Expand-WindowsCustomDataImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Expand-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Export-WindowsCapabilitySource'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Export-WindowsDriver'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Export-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-AppxProvisionedPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-NonRemovableAppsPolicy'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-WIMBootEntry'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-WindowsCapability'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-WindowsDriver'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-WindowsEdition'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-WindowsImageContent'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-WindowsOptionalFeature'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-WindowsPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Mount-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'New-WindowsCustomImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'New-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Optimize-AppXProvisionedPackages'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Optimize-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Remove-AppxProvisionedPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Remove-WindowsCapability'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Remove-WindowsDriver'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Remove-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Remove-WindowsPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Repair-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Save-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Set-AppXProvisionedDataFile'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Set-NonRemovableAppsPolicy'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Set-WindowsEdition'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Set-WindowsProductKey'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Split-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Start-OSUninstall'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Update-WIMBootEntry'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Use-WindowsUnattend'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Add-AppProvisionedPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Add-ProvisionedAppPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Add-ProvisionedAppxPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Apply-WindowsUnattend'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Get-AppProvisionedPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Get-ProvisionedAppPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Get-ProvisionedAppxPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Optimize-AppProvisionedPackages'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Optimize-ProvisionedAppPackages'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Optimize-ProvisionedAppxPackages'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Remove-AppProvisionedPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Remove-ProvisionedAppPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Remove-ProvisionedAppxPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Set-AppPackageProvisionedDataFile'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Set-ProvisionedAppPackageDataFile'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Set-ProvisionedAppXDataFile'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Target Image Version 10.0.17763.55
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Finished Test-TargetResource on the NetFx3 feature.
VERBOSE: [DESKTOP-KNKJFMT]: LCM:  [ End    Test     ]  [[xWindowsOptionalFeature]NET35_Enable]  in 2.6780 seconds.
VERBOSE: [DESKTOP-KNKJFMT]: LCM:  [ Start  Set      ]  [[xWindowsOptionalFeature]NET35_Enable]
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Started Set-TargetResource on the NetFx3 feature.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Validating resource prerequisites...
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2,'className' = Win32_OperatingSystem'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Operation 'Enumerate CimInstances' complete.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Loading module from path 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Dism\Dism.psd1'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Removing the imported "Add-AppProvisionedPackage" alias.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Removing the imported "Add-ProvisionedAppPackage" alias.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Removing the imported "Add-ProvisionedAppxPackage" alias.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Removing the imported "Apply-WindowsUnattend" alias.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Removing the imported "Get-AppProvisionedPackage" alias.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Removing the imported "Get-ProvisionedAppPackage" alias.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Removing the imported "Get-ProvisionedAppxPackage" alias.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Removing the imported "Optimize-AppProvisionedPackages" alias.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Removing the imported "Optimize-ProvisionedAppPackages" alias.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Removing the imported "Optimize-ProvisionedAppxPackages" alias.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Removing the imported "Remove-AppProvisionedPackage" alias.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Removing the imported "Remove-ProvisionedAppPackage" alias.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Removing the imported "Remove-ProvisionedAppxPackage" alias.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Removing the imported "Set-AppPackageProvisionedDataFile" alias.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Removing the imported "Set-ProvisionedAppPackageDataFile" alias.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Removing the imported "Set-ProvisionedAppXDataFile" alias.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Loading 'TypesToProcess' from path 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Dism\Dism.Types.ps1xml'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Loading 'FormatsToProcess' from path 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Dism\Dism.Format.ps1xml'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Loading module from path 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Dism\Dism.psm1'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Add-AppxProvisionedPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Add-WindowsCapability'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Add-WindowsDriver'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Add-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Add-WindowsPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Clear-WindowsCorruptMountPoint'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Disable-WindowsOptionalFeature'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Dismount-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Enable-WindowsOptionalFeature'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Expand-WindowsCustomDataImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Expand-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Export-WindowsCapabilitySource'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Export-WindowsDriver'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Export-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-AppxProvisionedPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-NonRemovableAppsPolicy'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-WIMBootEntry'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-WindowsCapability'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-WindowsDriver'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-WindowsEdition'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-WindowsImageContent'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-WindowsOptionalFeature'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Get-WindowsPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Mount-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'New-WindowsCustomImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'New-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Optimize-AppXProvisionedPackages'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Optimize-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Remove-AppxProvisionedPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Remove-WindowsCapability'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Remove-WindowsDriver'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Remove-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Remove-WindowsPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Repair-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Save-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Set-AppXProvisionedDataFile'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Set-NonRemovableAppsPolicy'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Set-WindowsEdition'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Set-WindowsProductKey'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Split-WindowsImage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Start-OSUninstall'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Update-WIMBootEntry'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing cmdlet 'Use-WindowsUnattend'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Add-AppProvisionedPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Add-ProvisionedAppPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Add-ProvisionedAppxPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Apply-WindowsUnattend'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Get-AppProvisionedPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Get-ProvisionedAppPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Get-ProvisionedAppxPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Optimize-AppProvisionedPackages'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Optimize-ProvisionedAppPackages'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Optimize-ProvisionedAppxPackages'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Remove-AppProvisionedPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Remove-ProvisionedAppPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Remove-ProvisionedAppxPackage'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Set-AppPackageProvisionedDataFile'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Set-ProvisionedAppPackageDataFile'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Importing alias 'Set-ProvisionedAppXDataFile'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Performing the operation "Enable Windows optional feature" on target "NetFx3".
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Target Image Version 10.0.17763.55
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Installed feature NetFx3.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Finished Set-TargetResource on the NetFx3 feature.
VERBOSE: [DESKTOP-KNKJFMT]: LCM:  [ End    Set      ]  [[xWindowsOptionalFeature]NET35_Enable]  in 59.5400 seconds.
VERBOSE: [DESKTOP-KNKJFMT]: LCM:  [ End    Resource ]  [[xWindowsOptionalFeature]NET35_Enable]
VERBOSE: [DESKTOP-KNKJFMT]: LCM:  [ End    Set      ]
VERBOSE: [DESKTOP-KNKJFMT]: LCM:  [ End    Set      ]    in  62.9960 seconds.
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 63.276 seconds
  • After fixes
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer DESKTOP-KNKJFMT with user sid S-1-5-21-1660624713-64340445-3472502389-500.
VERBOSE: [DESKTOP-KNKJFMT]: LCM:  [ Start  Set      ]
VERBOSE: [DESKTOP-KNKJFMT]: LCM:  [ Start  Resource ]  [[xWindowsOptionalFeature]NET35_Enable]
VERBOSE: [DESKTOP-KNKJFMT]: LCM:  [ Start  Test     ]  [[xWindowsOptionalFeature]NET35_Enable]
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Started Test-TargetResource on the NetFx3 feature.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Validating resource prerequisites...
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2,'className' = Win32_OperatingSystem'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Operation 'Enumerate CimInstances' complete.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Target Image Version 10.0.17763.55
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Finished Test-TargetResource on the NetFx3 feature.
VERBOSE: [DESKTOP-KNKJFMT]: LCM:  [ End    Test     ]  [[xWindowsOptionalFeature]NET35_Enable]  in 2.5910 seconds.
VERBOSE: [DESKTOP-KNKJFMT]: LCM:  [ Start  Set      ]  [[xWindowsOptionalFeature]NET35_Enable]
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Started Set-TargetResource on the NetFx3 feature.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Validating resource prerequisites...
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2,'className' = Win32_OperatingSystem'.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Operation 'Enumerate CimInstances' complete.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Performing the operation "Enable Windows optional feature" on target "NetFx3".
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Target Image Version 10.0.17763.55
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Installed feature NetFx3.
VERBOSE: [DESKTOP-KNKJFMT]:                            [[xWindowsOptionalFeature]NET35_Enable] Finished Set-TargetResource on the NetFx3 feature.
VERBOSE: [DESKTOP-KNKJFMT]: LCM:  [ End    Set      ]  [[xWindowsOptionalFeature]NET35_Enable]  in 61.5910 seconds.
VERBOSE: [DESKTOP-KNKJFMT]: LCM:  [ End    Resource ]  [[xWindowsOptionalFeature]NET35_Enable]
VERBOSE: [DESKTOP-KNKJFMT]: LCM:  [ End    Set      ]
VERBOSE: [DESKTOP-KNKJFMT]: LCM:  [ End    Set      ]    in  64.9290 seconds.
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 65.22 seconds

This Pull Request (PR) fixes the following issues

Fixes #453

Task list

  • Added an entry under the Unreleased section of the change log in the README.md.
    Entry should say what was changed, and how that affects users (if applicable).
  • Resource documentation added/updated in README.md.
  • Resource parameter descriptions added/updated in README.md, schema.mof
    and comment-based help.
  • Comment-based help added/updated.
  • Localization strings added/updated in all localization files as appropriate.
  • Examples appropriately added/updated.
  • Unit tests added/updated. See DSC Resource Testing Guidelines.
  • Integration tests added/updated (where possible). See DSC Resource Testing Guidelines.
  • New/changed code adheres to DSC Resource Style Guidelines and Best Practices.

This change is Reviewable

@codecov-io
Copy link

codecov-io commented Oct 20, 2018

Codecov Report

Merging #454 into dev will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@         Coverage Diff         @@
##            dev   #454   +/-   ##
===================================
  Coverage    72%    72%           
===================================
  Files        27     27           
  Lines      4031   4031           
  Branches      4      4           
===================================
  Hits       2922   2922           
  Misses     1105   1105           
  Partials      4      4

@stale
Copy link

stale bot commented Nov 3, 2018

Labeling this pull request (PR) as abandoned since it has gone 14 days or more since the last update. An abandoned PR can be continued by another contributor. The abandoned label will be removed if work on this PR is taken up again.

@stale stale bot added the abandoned The pull request has been abandoned. label Nov 3, 2018
@mhendric
Copy link
Contributor

mhendric commented Nov 4, 2018

Question for @mkht , and for the community at large. Can we envision any scenarios where someone would actually want to see this verbose Import-Module output? Would it ever be useful for troubleshooting (like if the Import failed for some reason)? If so, this may be better implemented as a configurable parameter to the module, not as a change that just turns it off permanently (although the new parameter could default to suppressing the output).

@mkht
Copy link
Contributor Author

mkht commented Nov 4, 2018

Thank you for reply @mhendric

I can not imagine the situation where the output of Import-Module is useful for troubleshooting, but if we have such a scenario, we may leave a verbose message. Or how about outputting to a debug message instead of a verbose message?

In any case, I do not agree to add new parameters to determine whether to output message or not. It will make more complicated than necessary and I do not know another DSC resources that have such parameters.

@mhendric
Copy link
Contributor

mhendric commented Nov 4, 2018

Hi @mkht , the Debug option may be a good option if it's possible. Not sure if this will work, but you could try adding -Debug:$DebugPreference to the Import-Module command, and then confirm what it outputs if you pass the -Debug switch to Start-DscConfiguration. Also confirm whether it adds all the output you're trying to suppress, so that the output is still available if someone needs it.

@tmeckel
Copy link
Contributor

tmeckel commented Nov 19, 2018

Question for @mkht , and for the community at large. Can we envision any scenarios where someone would actually want to see this verbose Import-Module output? Would it ever be useful for troubleshooting (like if the Import failed for some reason)? If so, this may be better implemented as a configurable parameter to the module, not as a change that just turns it off permanently (although the new parameter could default to suppressing the output).

@mhendric Seems that other DSC resources (e.g. xWindowsFeature) have the same issue.

https://github.com/PowerShell/xPSDesiredStateConfiguration/blob/9fd047b90f3d74c4a83e0ae0011da1af5b916bbd/DSCResources/MSFT_xWindowsFeature/MSFT_xWindowsFeature.psm1#L518

Ref to the verbose output attached to issue #452 for an example.

@mkht
Copy link
Contributor Author

mkht commented Nov 19, 2018

I'm sorry. I have no time to deal with this issue. Please wait for a while.

@mhendric
Copy link
Contributor

I just tested, and using -Debug:$DebugPreference does not add the output lost by setting -Verbose:$false. @PlagueHO , can you weigh in on whether you think we should leave this Verbose Import-Module output or take it out? I'm fine either way.

@mhendric mhendric removed the abandoned The pull request has been abandoned. label Jan 24, 2019
@PlagueHO
Copy link
Member

PlagueHO commented Jan 25, 2019

@mhendric, @mkht

I don't recall a situation where I've found the verbose output of Import-Module useful and anytime I was trying to diagnose module load issues I was already getting an exception thrown from the module import. So the verbose logs didn't help.

That said, I generally don't apply DSC configs with Verbose enabled. I only enable it when I'm debugging something.

I'm not adverse to using Import-Module ... -Verbose:$false though if it adds no value and just clutters up verbose logs. I don't recall seeing any reports of people having issues with dependent module loading (that didn't already show up as an exception in the resource).

@johlju - from memory SqlServerDsc uses Import-Module - what do you do over there?

@PlagueHO PlagueHO added the waiting for author response The pull request is waiting for the author to respond to comments in the pull request. label Jan 26, 2019
@mkht
Copy link
Contributor Author

mkht commented Jan 26, 2019

Thanks @mhendric, @PlagueHO

I will immediately update the document and prepare to merge it into the dev branch.


For your reference,
If you want to output the output of Import-Module to Debug stream instead of Verbose, you can do with such code.

    # Check that Dism PowerShell module is available
    Import-Module -Name 'Dism' -ErrorVariable 'errorsFromDismImport' -ErrorAction 'SilentlyContinue' -Force -Verbose 4>&1 | Write-Debug

@johlju
Copy link
Member

johlju commented Jan 26, 2019

In the SqlServerDsc module we have a helper function (Import-SQLPSModule) that imports the correct module (since we can either use SQLPS module or SqlServer module), but the Import-Module is using -Verbose:$false because it would otherwise spam the verbose logs with non-relevant information (in our case non-relevant at least).

@PlagueHO
Copy link
Member

@mkht - maybe we just go with what @johlju does over in SQLServer? No need to move it out into a wrapper function (as @johlju mentioned they have additional logic to care for). Seems like it would be the sensible approach to replicate that.

@mhendric
Copy link
Contributor

I think what @johlju suggested (minus the helper function) is what @mkht already did with this submission (set -Verbose:$false). If we're all in agreement that that's the right approach, I think we just need to resolve conflicts and call it good. Ultimately I could still go either way on this, but don't think it's worth spending a ton of time debating this one. I don't necessarily like removing logging, but I agree that this particular logging is probably never gonna be useful (and if there are issues, they will probably show up as a Warning or Error).

@mhendric
Copy link
Contributor

Also, looks like this one somehow ended up with a double Readme entry (one under Unreleased and one under 8.5.0.0). We should probably correct that.

@PlagueHO
Copy link
Member

So I guess we go with what @mkht said from the get-go 😁 . Yep, better fix the readme - good catch!

@mhendric mhendric removed the waiting for author response The pull request is waiting for the author to respond to comments in the pull request. label Jan 27, 2019
Copy link
Contributor

@mhendric mhendric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 2 files at r1, 1 of 1 files at r5.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Contributor

@mhendric mhendric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r6.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@mhendric mhendric merged commit e7323c0 into dsccommunity:dev Jan 27, 2019
@mkht mkht deleted the issue453 branch September 23, 2019 04:42
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

Successfully merging this pull request may close these issues.

xWindowsOptionalFeature outputs a lot of annoying verbose messages
6 participants