-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get IP Address on Windows 11 #25
Comments
I guess it might be possible via |
Or maybe spawn powershell like https://stackoverflow.com/a/61219838/808699 and try to access WMI data via Get-CimInstance. |
Well, But tried this command, and it works! I just don't know how to get only the specific value needed. |
Maybe some of the queries used on wmic still work. The wmic parsing is quite complex because in a situation with multiple default gateways, one needed to obtain the one with the highest overall metric, which was a sum of GatewayCostMetric and IPConnectionMetric, and there's different gateways for IPv4 and IPv6 of course. |
Just sent #26 |
@silverwind please, give a look at it. |
Sorry, but I won't. See #27. |
WMIC was removed from Windows 10/11.
There's no other way to implement this feature without WMIC, or with the new 'Powershell for WMI'?
The text was updated successfully, but these errors were encountered: