PSDecode | PowerShell based module that can decode System Errors | Command Line Interface library
kandi X-RAY | PSDecode Summary
kandi X-RAY | PSDecode Summary
PowerShell based module that can decode System Errors, Exit codes, port numbers, HTTP Statuses and more. This module can be used to quick lookup Error descriptions, to add verbosity to your custom error messages and for a better Error Handling, Investigation and Analysis. Read more on my blog about this module and how I web scraped the error code data. Technically the module offers a set of cmdlets that query a database of Error/Exit codes, port numbers, and MAC addresses which totals to 83049 individual records as of now when I’m writing this.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PSDecode
PSDecode Key Features
PSDecode Examples and Code Snippets
Community Discussions
Trending Discussions on PSDecode
QUESTION
I found this function at PSDecode:
...ANSWER
Answered 2021-Mar-26 at 14:10As commented, I think the function is quite poorly written. It also uses a parameter help comment that for the most part does not apply..
Because it uses a Where-Object
clause to search for a given code in a large set of objects, you could do better converting the imported data into a lookup Hashtable.
Sure, loading and converting takes time, but looking up a value in a hash is extremely fast.
Something like this would already be an improvement I think:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PSDecode
[Recommended] Install to your personal PowerShell Modules folder
[Requires Elevation] Install for Everyone (computer PowerShell Modules folder)
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page