WMIC is not installed in latest Windows 11
Running the cerbero .\tools\bootstrap-windows.ps1
script failed here on a new machine:
DotNet3.5 v3.5.20160716 [Approved]
DotNet3.5 package files install completed. Performing other installation steps.
ERROR: The term 'wmic' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
The install of DotNet3.5 was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\DotNet3.5\Tools\ChocolateyInstall.ps1'.
See log for details.
Failed to install wixtoolset because a previous dependency failed.
Chocolatey installed 0/2 packages. 2 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- DotNet3.5 (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\DotNet3.5\Tools\ChocolateyInstall.ps1'.
See log for details.
- wixtoolset - Failed to install wixtoolset because a previous dependency failed.
WMIC can still be installed from System -> Optional Features -> WMIC
but needs to be done manually.
https://learn.microsoft.com/en-us/answers/questions/1076711/install-wmic-to-a-windows-11-computer