Learn Windows PowerShell in a Month of Lunches by Don Jones
Author:Don Jones [Jones, Don]
Language: eng
Format: epub, pdf
ISBN: 9781617290213
Publisher: Manning Publications
Published: 2011-05-14T07:00:00+00:00
The WMI way: invoking WMI methods
149
__DERIVATION : {}
__SERVER :
__NAMESPACE :
__PATH :
ReturnValue : 0
__GENUS : 2
__CLASS : __PARAMETERS
__SUPERCLASS :
__DYNASTY : __PARAMETERS
__RELPATH :
__PROPERTY_COUNT : 1
__DERIVATION : {}
__SERVER :
__NAMESPACE :
__PATH :
ReturnValue : 84
The only useful information here is the one property that doesn’t start with two underscores: ReturnValue. That number tells me the result of the operation. A Google search for “Win32_NetworkAdapterConfiguration” turns up the documentation page, and I can then click through to the EnableDHCP method to see the possible return values and what they mean. Figure 13.1 shows what I discovered.
Zero appears to mean success, while 84 says that IP isn’t enabled on that adapter configuration, so DHCP can’t be enabled. But which bit of the output went with which of my two network adapter configurations? It’s difficult to tell, because the output Figure 13.1 Looking up return values for a WMI method’s results Download from Wow! eBook <www.wowebook.com>
Download
Learn Windows PowerShell in a Month of Lunches by Don Jones.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
NET | C & C++ Windows Programming |
SQL Server | VBA |
Visual Basic |
Deep Learning with Python by François Chollet(12246)
Hello! Python by Anthony Briggs(9620)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9550)
The Mikado Method by Ola Ellnestam Daniel Brolund(9525)
Dependency Injection in .NET by Mark Seemann(9069)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8060)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7579)
Grails in Action by Glen Smith Peter Ledbrook(7485)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7308)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6202)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(5345)
Microservices with Go by Alexander Shuiskov(5059)
Practical Design Patterns for Java Developers by Miroslav Wengner(4978)
Test Automation Engineering Handbook by Manikandan Sambamurthy(4958)
Kotlin in Action by Dmitry Jemerov(4843)
Angular Projects - Third Edition by Aristeidis Bampakos(4301)
Practical Vim (for Kathryn Amaral) by Drew Neil(3847)
The Art of Crafting User Stories by The Art of Crafting User Stories(3847)
NetSuite for Consultants - Second Edition by Peter Ries(3835)