From fab459e5727cb575c5f68692f4e12f026f1d3084 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Wed, 5 May 2021 09:10:32 +0200 Subject: [PATCH] networkInterfaces() fixed Windows XP bug (WMIC NetEnabled) --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 2 +- docs/v4/history.html | 5 +++++ docs/v4/index.html | 2 +- lib/network.js | 2 +- 6 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d74454..17b869a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -77,6 +77,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 5.6.17 | 2021-05-05 | `networkInterfaces()` fixed Windows XP bug (WMIC NetEnabled) | | 5.6.16 | 2021-05-05 | `graphics()` fixed compare bug | | 5.6.15 | 2021-05-05 | restored Node 4.x compatibility | | 5.6.14 | 2021-05-04 | `networkGatewayDefault()` macOS improvement for active VPN | diff --git a/docs/history.html b/docs/history.html index 0294099..9c70050 100644 --- a/docs/history.html +++ b/docs/history.html @@ -56,6 +56,11 @@ + + 5.6.17 + 2021-05-05 + networkInterfaces() fixed Windows XP bug (WMIC NetEnabled) + 5.6.16 2021-05-05 diff --git a/docs/index.html b/docs/index.html index 8aedc3d..3752c32 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.6.16
+
New Version: 5.6.17
diff --git a/docs/v4/history.html b/docs/v4/history.html index 55322d9..f6cc678 100644 --- a/docs/v4/history.html +++ b/docs/v4/history.html @@ -83,6 +83,11 @@ + + 4.34.23 + 2021-05-05 + networkInterfaces() fixed Windows XP bug (WMIC NetEnabled) + 4.34.22 2021-05-05 diff --git a/docs/v4/index.html b/docs/v4/index.html index 5c05810..ad10aac 100644 --- a/docs/v4/index.html +++ b/docs/v4/index.html @@ -170,7 +170,7 @@
systeminformation
 
Version 4 documentation
-
Current Version: 4.34.22
+
Current Version: 4.34.23
diff --git a/lib/network.js b/lib/network.js index bcfb546..bbf3787 100644 --- a/lib/network.js +++ b/lib/network.js @@ -245,7 +245,7 @@ function parseLinesWindowsNics(sections, nconfigsections) { } function getWindowsNics() { - const cmd = util.getWmic() + ' nic get MACAddress, name, NetConnectionId, NetEnabled, Speed, NetConnectionStatus, AdapterTypeId /value'; + const cmd = util.getWmic() + ' nic get /value'; const cmdnicconfig = util.getWmic() + ' nicconfig get dhcpEnabled /value'; try { const nsections = execSync(cmd, util.execOptsWin).split(/\n\s*\n/);