wmic has been declared as obsolete by microsoft in win10
The WMI command-line (WMIC) utility is deprecated as of Windows 10, version 21H1, and as of the 21H1 semi-annual channel release of Windows Server. This utility is superseded by Windows PowerShell for WMI (see Chapter 7—Working with WMI). This deprecation applies only to the WMI command-line (WMIC) utility; Windows Management Instrumentation (WMI) itself is not affected. Also see Windows 10 features we're no longer developing.
I checked os-locale and they're still using wmic on their latest version. Mind opening this issue there and linking it here? https://github.com/sindresorhus/os-locale
patches\os-locale+3.0.1 uses a call to wmic
function getWinLocale() {
wmic has been declared as obsolete by microsoft in win10 The WMI command-line (WMIC) utility is deprecated as of Windows 10, version 21H1, and as of the 21H1 semi-annual channel release of Windows Server. This utility is superseded by Windows PowerShell for WMI (see Chapter 7—Working with WMI). This deprecation applies only to the WMI command-line (WMIC) utility; Windows Management Instrumentation (WMI) itself is not affected. Also see Windows 10 features we're no longer developing.
https://docs.microsoft.com/en-us/windows/win32/wmisdk/wmic