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
Whoever stumbles upon this, note that usage of Update-SessionEnvironment still works - so if it's possible consider using PowerShell instead of .bat.
(directly using refreshenv from a PowerShell script shouldn't be necessary anyway)
corbob
changed the title
RefreshEnv broken on Windows 11 24H2 LTSC - missing wmic.exe
RefreshEnv broken on Windows 11 24H2 - missing wmic.exe
Dec 20, 2024
The script isn't entirely broken without wmic installed, more it emits an error and then refreshes the environment for cmd.exe. This is different from when it's run inside of powershell.exe where it reports that you should import the module and then run it again. Perhaps the update should be to always warn that it doesn't work for PowerShell and then still do the refresh for cmd 🤷♂
Checklist
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
Installed Packages
Output Log
Additional Context
No response
The text was updated successfully, but these errors were encountered: