diff --git a/CHANGELOG.md b/CHANGELOG.md index f4e0b51..6fd0530 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,6 +82,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | +| 5.16.3 | 2022-12-08 | `users()` fix when multiple explorer.exe (windows) | | 5.16.2 | 2022-12-08 | `dockerContainerStats()` improved calculation cpuPercent | | 5.16.1 | 2022-12-04 | code cleanup, moved from lgtm to GitHub Code Scan | | 5.16.0 | 2022-12-01 | `fsSize()` added rw (win, linux, mac OS, BSD) | diff --git a/docs/history.html b/docs/history.html index d8b0f9f..780394a 100644 --- a/docs/history.html +++ b/docs/history.html @@ -58,9 +58,14 @@ - 5.16.2 + 5.16.3 2022-12-04 - code cleanup, moved from lgtm to GitHub Code Scan + users() fix when multiple exporer.exe opened (windows) + + + 5.16.2 + 2022-12-08 + dockerContainerStats() improved calculation cpuPercent 5.16.1 @@ -2884,4 +2889,4 @@ - \ No newline at end of file + diff --git a/docs/index.html b/docs/index.html index aa14068..8b34bb8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.16.2
+
New Version: 5.16.3
@@ -401,4 +401,4 @@ - \ No newline at end of file + diff --git a/lib/users.js b/lib/users.js index 41aa4e9..2ee123b 100644 --- a/lib/users.js +++ b/lib/users.js @@ -209,7 +209,7 @@ function users(callback) { try { let cmd = 'Get-CimInstance Win32_LogonSession | select LogonId,@{n="StartTime";e={$_.StartTime.ToString("yyyy-MM-dd HH:mm:ss")}} | fl' + '; echo \'#-#-#-#\';'; cmd += 'Get-CimInstance Win32_LoggedOnUser | select antecedent,dependent | fl ' + '; echo \'#-#-#-#\';'; - cmd += '$process = (Get-CimInstance Win32_Process -Filter "name = \'explorer.exe\'"); Invoke-CimMethod -InputObject $process -MethodName GetOwner | select user, domain | fl; get-process -name explorer | select-object sessionid | fl; echo \'#-#-#-#\';'; + cmd += '$process = (Get-CimInstance Win32_Process -Filter "name = \'explorer.exe\'"); Invoke-CimMethod -InputObject $process[0] -MethodName GetOwner | select user, domain | fl; get-process -name explorer | select-object sessionid | fl; echo \'#-#-#-#\';'; cmd += 'query user'; util.powerShell(cmd).then((data) => { if (data) {