i think i start use IntParse --> its bigger than int value let's me try biginteger, or unit instead Edit. solved it. [bigInt] is my solution
v16.4 [compiled at 28-06-25] Code: * Remove Local error resources And use Api instead. * Extract, Error info messege option, Using APi For WU, CBS, used harcoded table. * Add "SPPC.dll", to Activation dll Errols API in addition to "SLC.dll" * Some error ware return hresults & Activation error, ware fixed with -bor option -Flags ([ErrorMessageType]::ACTIVATION -bor [ErrorMessageType]::HRESULT) * Also remove any Tail for 0x / decimal number's end, not belong to 0x / decimal format ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ v16.3 [compiled at 28-06-25] Code: * Remove Local error resources And use Api instead. * Extract, Error info messege option, Using APi For WU, CBS, used harcoded table. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ my new extract screen option -> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Code: # ***************************** # # v16.2 compiled at 28-06-25 # # ***************************** # <# * Remove Local error resources And use Api instead. #> I ALso think to add error decoder, with type-s -> will be next time this signature is allready ready Code: enum ErrorMessegeType { ALL = 0 WIN32 = 1 NTSTATUS = 2 ACTIVATION = 3 NETWORK = 4 CBS = 5 BITS = 6 HTTP = 7 UPDATE = 8 HRESULT = 99 } function Parse-ErrorMessage { param ( [Parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [string] $MessageId, [Parameter(Mandatory = $false)] [ValidateSet("ALL", "WIN32", "NTSTATUS", "ACTIVATION", "NETWORK", "CBS", "BITS", "HTTP", "UPDATE", "HRESULT")] [ErrorMessegeType]$Type = "ALL", [Parameter(Mandatory=$false)] [bool]$Log = $false )
OK, interesting case, WARNING: win32ERR = 752, MessageId = 277 SO, 0x000000115 is also NTSTAUS, and ALSO win32 ERROR And also, is 752 win32 error {from NTSTAUS}
Why you include this features? Better keep script lite and have others script for advanced licensing no. ?
this is nice features that no one explore, first tool that also parse error by catogerie nice option, but i agree with you. * i did it because i don't want to save libary of error's in my script like every one else do