-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Closed
Labels
Resolution-FixedThe issue is fixed.The issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues
Description
Error Message:
"Get-ComputerInfo : Unable to find an entry point named 'GetFirmwareType' in DLL 'kernel32.dll'."
Environment:
Windows Management Framework 5.1
Operating System: Windows 7 x64
Examples
PS C:\Users\user> Get-ComputerInfo -Property OsInstallDate
Get-ComputerInfo : Unable to find an entry point named 'GetFirmwareType' in DLL 'kernel32.dll'.
At line:1 char:1
+ Get-ComputerInfo -Property OsInstallDate
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-ComputerInfo], EntryPointNotFoundException
+ FullyQualifiedErrorId : System.EntryPointNotFoundException,Microsoft.PowerShell.Commands.GetComputerInfoCommand
PS C:\Users\user> Get-ComputerInfo -Property TimeZone
Get-ComputerInfo : Unable to find an entry point named 'GetFirmwareType' in DLL 'kernel32.dll'.
At line:1 char:1
+ Get-ComputerInfo -Property TimeZone
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-ComputerInfo], EntryPointNotFoundException
+ FullyQualifiedErrorId : System.EntryPointNotFoundException,Microsoft.PowerShell.Commands.GetComputerInfoCommand
Name Value
---- -----
PSVersion 5.1.14409.1005
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14409.1005
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
LeeDailey
Metadata
Metadata
Assignees
Labels
Resolution-FixedThe issue is fixed.The issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
iSazonov commentedon Jan 20, 2017
@n3l5 Thanks for bug report!
GetFirmwareType
is introduced in Windows 8 and Windows Server 2012joeyaiello commentedon Jan 23, 2017
Given the behavior isn't there on Win7, I'm not sure what we can do other than do a better of job of erroring out. We also wouldn't ship a change for that unless we had a hypothetical WMF 5.2, though I'm not speaking here to whether that's happening or not.
n3l5 commentedon Jan 23, 2017
Unless there is an option to feature request a kernel fix for Win 7 to support this, can be closed out since this appears to be a kernel feature and Win 7 is on the way out.
joeyaiello commentedon Jan 23, 2017
Thanks @n3l5!
zii-dmg commentedon Mar 19, 2017
Isn't solution is just one
if
check for windows version in GetComputerInfoCommand.cs?SteveL-MSFT commentedon Mar 19, 2017
We should wrap the api calls so this fails silently.
jeffbi commentedon Mar 20, 2017
Just as a point of interest, at the time this cmdlet was written the target OS was Win10.
Fortunately there aren't too many native API calls, so wrapping them shouldn't be too onerous.
@SteveL-MSFT I can take this one if you like.
iSazonov commentedon Mar 20, 2017
Perhaps it is time to start porting this cmdlet instead of doing partial fixes. It would be good to do it in Beta time.
SteveL-MSFT commentedon Mar 20, 2017
Making it cross-platform is a pretty big task and probably something we'd do for 6.1.0. @jeffbi it should be pretty straightforward to wraps so they
silentlycontinue
for current release.zii-dmg commentedon Apr 12, 2017
Alpha 18 no longer crash on
GetFirmwareType
in Windows 7, but other strange crash - #3541.