update SafeCommands to use Get-CimInstance if it exists, then try Get…#484
Merged
dlwyatt merged 1 commit intopester:masterfrom Mar 3, 2016
JamesWTruher:master
Merged
update SafeCommands to use Get-CimInstance if it exists, then try Get…#484dlwyatt merged 1 commit intopester:masterfrom JamesWTruher:master
dlwyatt merged 1 commit intopester:masterfrom
JamesWTruher:master
Conversation
…-WmiObject. If neither exist, then warn the user that the test results may not have all the system information. Updated TestResult to try harder to get system information (based on whether Get-CIMInstance or Get-Wmi exists). Also, change a couple of tests to be more portable when it comes to CoreCLR because TypeId does not exist as property on Parameter.
Contributor
Author
|
This targets PowerShell on Nano, but is actually useful generally. Get-WMIObject is not available on Nano, but Get-CimInstance is available. Also, changes in .NET Core eliminated the TypeId property on Parameter, but an easy alternative is present. |
dlwyatt
added a commit
that referenced
this pull request
Mar 3, 2016
update SafeCommands to use Get-CimInstance if it exists, then try Get…
Member
|
Thanks! :) |
Contributor
Author
|
thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…-WmiObject. If neither exist, then warn the user that the test results may not have all the system information. Updated TestResult to try harder to get system information (based on whether Get-CIMInstance or Get-Wmi exists). Also, change a couple of tests to be more portable when it comes to CoreCLR because TypeId does not exist as property on Parameter.