-
Notifications
You must be signed in to change notification settings - Fork 983
Remove WMIC dependency in Fleet per 25H2 Windows update #34311
Copy link
Copy link
Open
Labels
#g-orchestrationOrchestration product groupOrchestration product group:productProduct Design department (shows up on 🦢 Drafting board)Product Design department (shows up on 🦢 Drafting board)~agentRelated to Fleet's osquery runtime and agent autoupdater (Orbit)Related to Fleet's osquery runtime and agent autoupdater (Orbit)~csaIssue was created by or deemed important by the Customer Solutions Architect.Issue was created by or deemed important by the Customer Solutions Architect.~dogfoodIssue resulted from Fleet's product dogfooding.Issue resulted from Fleet's product dogfooding.~engineering-initiatedEngineering-initiated story, such as a bug, refactor, or contributor experience improvement.Engineering-initiated story, such as a bug, refactor, or contributor experience improvement.
Milestone
Description
Metadata
Metadata
Assignees
Labels
#g-orchestrationOrchestration product groupOrchestration product group:productProduct Design department (shows up on 🦢 Drafting board)Product Design department (shows up on 🦢 Drafting board)~agentRelated to Fleet's osquery runtime and agent autoupdater (Orbit)Related to Fleet's osquery runtime and agent autoupdater (Orbit)~csaIssue was created by or deemed important by the Customer Solutions Architect.Issue was created by or deemed important by the Customer Solutions Architect.~dogfoodIssue resulted from Fleet's product dogfooding.Issue resulted from Fleet's product dogfooding.~engineering-initiatedEngineering-initiated story, such as a bug, refactor, or contributor experience improvement.Engineering-initiated story, such as a bug, refactor, or contributor experience improvement.
Type
Projects
StatusShow more project fields
✅ Ready for release
StatusShow more project fields
🦤 In review
Problem
There is 1 dependency in the Fleet repo calling WMIC directly. Per @zwass:
Please see:
fleet/orbit/pkg/platform/platform_windows.go
Line 229 in cbde3f7
Research may need to be done on how to replace this command. According to the internet, there should be a modern PowerShell equivalent: https://powershellisfun.com/2025/10/08/windows-11-25h2s-removal-of-wmic-and-the-powershell-alternative/
In addition to this research we may want to look into the following:
ATTN: @noahtalerman this FR was requested by @georgekarrv - thanks.
Potential solutions
Change WMIC commands & PowerShell 2.0 commands to modern PowerShell equivalents.
What is the expected workflow as a result of your proposal?
Fleet will be compatible with Windows 11 25H2 updates.