-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Expose all cmdlets from PSDiagnostics if logman.exe is available #8366
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
Conversation
iSazonov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SteveL-MSFT Can your team add CI for Nano/IoT/Windows 7 x32 if it is important?
|
@iSazonov we're working on improving our release automation which includes running tests daily on all supported distros/skus. Don't think Nano nor Win10 IoT will be there initially. I expect Win7, but not x86 initially if that's what you mean. |
| { | ||
| Export-ModuleMember Start-Trace, Stop-Trace, Enable-WSManTrace, Disable-WSManTrace, Enable-PSTrace, Disable-PSTrace, Enable-PSWSManCombinedTrace, Disable-PSWSManCombinedTrace, Get-LogProperties, Set-LogProperties | ||
| } | ||
| if (Get-Command logman.exe -Type Application -ErrorAction SilentlyContinue) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems a comment about Nano/IoT will be still useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SteveL-MSFT Could you clarify whether this comment is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment still exists on line 446
PR Summary
PSDiagnostics had outdated logic to expose cmdlets for PSCore5 where logman.exe didn't exist, but this is no longer the case with PSCore6 on full Windows. Change logic to check for existence of logman.exe in path rather than assume Core vs Desktop PowerShell. Deferring adding tests for these cmdlets as it seems we don't have any tests for PSDiagnostics module: #8367
Fix #8339
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature tests