RefreshEnv broken on Windows 11 24H2 - missing wmic.exe
- Dominant language
- C#
- Stars
- 11.5k
- Forks
- 960
- PR merge metrics
- No merged PRs in 30d
Description
### Checklist
- [X] I confirm there are no unresolved issues reported on the [Chocolatey Status page](https://status.chocolatey.org).
- [X] I have verified this is the correct repository for opening this issue.
- [X] I have verified no other issues exist related to my problem.
- [X] I have verified this is not an issue for a specific package.
- [X] I have verified this issue is not security related.
- [X] I confirm I am using **official**, and **not** unofficial, or modified, Chocolatey products.
### What You Are Seeing?
On the latest LTSC release of Windows 11, the "wmic" utility has been removed.
### What is Expected?
RefreshEnv should work whether wmic is available or not
### How Did You Get This To Happen?
Using choco on the latest Win11 24h2 family releases.
### System Details
* Operating System: Win11 24H2 LTSC
* Windows PowerShell version: 5.1
* Chocolatey CLI Version: 2.2.2
* Chocolatey Licensed Extension version: -
* Chocolatey License type:
* Terminal/Emulator: powershell / conhost
### Installed Packages
```bash
-
```
### Output Log
```bash
-
```
### Additional Context
_No response_
┆Issue is synchronized with this [Clickup task](https://app.clickup.com/t/20540031/PROJ-2619) by [Unito](https://www.unito.io)
Contributor guide
Research direction
Start by locating the RefreshEnv entry point and the code that invokes wmic in the Chocolatey CLI. Reproduce the failure on Windows 11 24H2 with PowerShell 5.1, then verify that RefreshEnv completes successfully when wmic.exe is unavailable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100