From 91b56e82b2d4755decc66e0b05b5bc4793937eb2 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Fri, 12 Feb 2021 16:44:44 +0100 Subject: [PATCH] updated docs --- CHANGELOG.md | 1 + README.md | 2 ++ docs/history.html | 5 +++++ docs/index.html | 2 +- docs/os.html | 10 ++++++++++ lib/index.d.ts | 1 + lib/osinfo.js | 2 +- 7 files changed, 21 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c06b8af..88cfff7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,6 +72,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 5.3.0 | 2020-02-12 | `osInfo()` added remoteSession (windows) | | 5.2.7 | 2020-02-12 | `fsStats()`, `blockDevices()` improved linux | | 5.2.6 | 2020-02-12 | `inetLatency()` fixed possible DOS intrusion | | 5.2.5 | 2020-02-11 | `processes()` fixed truncated params (linux) | diff --git a/README.md b/README.md index 61e480c..f1f5956 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,7 @@ si.cpu() (last 7 major and minor version releases) +- Version 5.3.0: `osInfo()` added remoteSession (win only) - Version 5.2.0: `wifiInterfaces()` and `wifiConnections()` added - Version 5.1.0: `memLayout()` added ECC flag, `bios()` added language, features (linux) - Version 5.0.0: new version 5 - attention there are some breaking changes. See [detailed version 5 changes here][changes5-url]. @@ -325,6 +326,7 @@ Full function reference with examples can be found at [https://systeminformation | | servicepack | | | | X | | service pack version | | | uefi | X | X | X | X | | OS started via UEFI | | | hypervisor | | | | X | | hyper-v enabled? (win only) | +| | remoteSession | | | | X | | runs in remote session (win only) | | si.uuid(cb) | {...} | X | X | X | X | X | object of several UUIDs | | | os | X | X | X | X | | os specific UUID | | | hardware | X | X | X | X | | hardware specific UUID | diff --git a/docs/history.html b/docs/history.html index c557c78..f0e4d75 100644 --- a/docs/history.html +++ b/docs/history.html @@ -56,6 +56,11 @@ + + 5.3.0 + 2020-02-12 + osInfo() added remoteSession (windows) + 5.2.7 2020-02-12 diff --git a/docs/index.html b/docs/index.html index 509049d..9e5318e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.2.7
+
New Version: 5.3.0
diff --git a/docs/os.html b/docs/os.html index c88e68d..4201d12 100644 --- a/docs/os.html +++ b/docs/os.html @@ -226,6 +226,16 @@ hyper-v detected (win only) + + + remoteSession + + + + X + + runs in remote session (win only) + diff --git a/lib/index.d.ts b/lib/index.d.ts index 1ba79b1..2b7d134 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -315,6 +315,7 @@ export namespace Systeminformation { servicepack: string; uefi: boolean; hypervizor?: boolean; + remoteSession?: boolean; } interface UuidData { diff --git a/lib/osinfo.js b/lib/osinfo.js index 626ec3f..c4458d8 100644 --- a/lib/osinfo.js +++ b/lib/osinfo.js @@ -324,7 +324,7 @@ function osInfo(callback) { const workload = []; workload.push(util.wmic('os get /value')); workload.push(execPromise('systeminfo', util.execOptsWin)); - workload.push(util.powerShell('Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SystemInformation]::TerminalServerSession')) + workload.push(util.powerShell('Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SystemInformation]::TerminalServerSession')); util.promiseAll( workload ).then(data => {