users() fix parsing issue (windows)
This commit is contained in:
parent
87b5e47d90
commit
c40659d452
@ -81,7 +81,8 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
|
||||
| 5.13.4 | 2022-11-18 | `users()` fix issue (windows) |
|
||||
| 5.13.5 | 2022-11-18 | `users()` fix parsing issue (windows) |
|
||||
| 5.13.4 | 2022-11-18 | `users()` fix Get-CimInstance issue (windows) |
|
||||
| 5.13.3 | 2022-11-18 | `cpuTemperature()` fix main temp (linux) |
|
||||
| 5.13.2 | 2022-11-18 | `cpuTemperature()` fix main temp (linux) |
|
||||
| 5.13.1 | 2022-11-18 | `processLoad()` fix main pid (linux) |
|
||||
|
||||
@ -57,6 +57,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">5.13.5</th>
|
||||
<td>2022-11-18</td>
|
||||
<td><span class="code">users()</span> fix pasring issue (windows)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">5.13.4</th>
|
||||
<td>2022-11-18</td>
|
||||
|
||||
@ -170,7 +170,7 @@
|
||||
<img class="logo" src="assets/logo.png" alt="logo">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span> </div>
|
||||
<div class="version">New Version: <span id="version">5.13.4</span></div>
|
||||
<div class="version">New Version: <span id="version">5.13.5</span></div>
|
||||
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
||||
</div>
|
||||
<div class="down">
|
||||
|
||||
@ -210,7 +210,7 @@ function users(callback) {
|
||||
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 += `Get-CimInstance Win32_Process -Filter 'name="explorer.exe"' | Select @{Name="sessionid";Expression={$_.SessionId}}, @{Name="domain";Expression={$_.GetOwner().Domain}}, @{Name="username";Expression={$_.GetOwner().User}} | 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 -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user