You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get-Hotfix uses a CIM (WMI) class - root\cimv2\Win32_QuickFixEngineering
so will only work on systems that have that class available. At the moment that's Windows boxes only
RichardSiddaway - Thanks for your reply. Is there any plan to include other platforms? I can understand that Apple could respond with support, but am not suggesting that they would. How would Linux distros support such a capability?
The reason it was missing previously is that it relied on the old WMI .NET APIs which didn't exist in .NET Core 2.x. However, they are back so we can re-enable this cmdlet with some small changes. Working on a PR.
Reacted by Rain Sallow (/u/ta11ow) and Thomas Nieto
So I got it working on my Win10 machine, however it doesn't return anything. This cmdlet basically wraps the WMI query: select * from Win32_QuickFixEngineering, which also doesn't return anything on my Win10 machine when used directly outside of PowerShell.
Steve Lee (@SteveL-MSFT) that's strange, I can run a Get-CimInstance and get values returned on my Win10 machine on PS 6.2.2 and 7-preview4.
PS C:\>Get-CimInstance-ClassName Win32_QuickFixEngineering
Source Description HotFixID InstalledBy InstalledOn
-----------------------------------------------
Update KB4495618 NT AUTHORITY\SYSTEM 6/12/201912:00:00 AM
Security Update KB4470788 3/12/201912:00:00 AM
Security Update KB4503308 NT AUTHORITY\SYSTEM 6/12/201912:00:00 AM
Security Update KB4504369 NT AUTHORITY\SYSTEM 6/12/201912:00:00 AM
Security Update KB4509095 NT AUTHORITY\SYSTEM 8/11/201912:00:00 AM
Security Update KB4512577 NT AUTHORITY\SYSTEM 9/27/201912:00:00 AM
Security Update KB4516115 NT AUTHORITY\SYSTEM 9/27/201912:00:00 AM
Security Update KB4512578 NT AUTHORITY\SYSTEM 9/27/201912:00:00 AM
This cmdlet basically wraps the WMI query: select * from Win32_QuickFixEngineering, which also doesn't return anything on my Win10 machine when used directly outside of PowerShell.
In other words, somehow this WMI/CIM class only exists inside PowerShell; the direct .NET APIs for this kind of thing won't work, which doesn't bode well for a binary cmdlet. wmic also can't find it either.
@tnieto88 let me create a Win10 VM that isn't domain joined in case something is happening there to try it. I don't think it makes sense to rewrite it. The code is pretty simple, just need a system that has instances of that class to test against.
I've got a script from the Windows 2000 Scripting Guide that uses Win32_QickFixengineering class via VBScript so it should be accessible outside of PowerShell
In theory it would be possible to produce a CDXML wrapper for the class. I can experiment with that if required
The Win32\_QuickFixEngineering&\#8194;WMI class represents a small system-wide update, commonly referred to as a quick-fix engineering (QFE) update, applied to the current operating system.
Activity
RichardSiddaway commentedon Sep 19, 2016
Get-Hotfix uses a CIM (WMI) class - root\cimv2\Win32_QuickFixEngineering
so will only work on systems that have that class available. At the moment that's Windows boxes only
Liturgist commentedon Sep 19, 2016
RichardSiddaway - Thanks for your reply. Is there any plan to include other platforms? I can understand that Apple could respond with support, but am not suggesting that they would. How would Linux distros support such a capability?
Liturgist commentedon Jun 27, 2017
This is another one that a vendor such as Red Hat, Ubuntu, and/or Apple should pick up.
vexx32 commentedon Aug 30, 2018
If this were to be made xplat, I would imagine it would perhaps be best reimplemented as a PSProvider of sort.
ThomasNieto commentedon Sep 13, 2019
Can we add this cmdlet back for Windows for PowerShell v7 backwards compatibility?
iSazonov commentedon Sep 29, 2019
Steve Lee (@SteveL-MSFT) Please confirm that we can bring the cmdlet back as Windows-only. Or is current intention to use it by a compatibility tool?
SteveL-MSFT commentedon Oct 8, 2019
Let me look into this a bit
SteveL-MSFT commentedon Oct 8, 2019
The reason it was missing previously is that it relied on the old WMI .NET APIs which didn't exist in .NET Core 2.x. However, they are back so we can re-enable this cmdlet with some small changes. Working on a PR.
SteveL-MSFT commentedon Oct 8, 2019
So I got it working on my Win10 machine, however it doesn't return anything. This cmdlet basically wraps the WMI query: select * from Win32_QuickFixEngineering, which also doesn't return anything on my Win10 machine when used directly outside of PowerShell.
ThomasNieto commentedon Oct 8, 2019
Steve Lee (@SteveL-MSFT) that's strange, I can run a
Get-CimInstanceand get values returned on my Win10 machine on PS 6.2.2 and 7-preview4.vexx32 commentedon Oct 8, 2019
@tnieto88 the key part is:
In other words, somehow this WMI/CIM class only exists inside PowerShell; the direct .NET APIs for this kind of thing won't work, which doesn't bode well for a binary cmdlet.
wmicalso can't find it either.That's a first for me, Steve Lee (@SteveL-MSFT), has this sort of thing been done before? 😕
ThomasNieto commentedon Oct 8, 2019
Rain Sallow (/u/ta11ow) (@vexx32) would it be possible to rewrite it to be a cdxml instead of a binary cmdlet to avoid that issue?
SteveL-MSFT commentedon Oct 8, 2019
@tnieto88 let me create a Win10 VM that isn't domain joined in case something is happening there to try it. I don't think it makes sense to rewrite it. The code is pretty simple, just need a system that has instances of that class to test against.
RichardSiddaway commentedon Oct 8, 2019
But the class is included in the standard WMI class documentation - https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering
I've got a script from the Windows 2000 Scripting Guide that uses Win32_QickFixengineering class via VBScript so it should be accessible outside of PowerShell
In theory it would be possible to produce a CDXML wrapper for the class. I can experiment with that if required
SteveL-MSFT commentedon Oct 8, 2019
It's certainly possible to wrap it in CDXML. Feel free to experiment!
SteveL-MSFT commentedon Oct 8, 2019
On my Win7 VM, the cmdlet works, so I'll add some conditional tests if Win32_QFE returns any instances then submit a PR.
SteveL-MSFT commentedon Oct 8, 2019
To be clear, this is only re-enabling the cmdlet on Windows.