processes() revert added user (windows)
This commit is contained in:
parent
60f1034320
commit
327c79a26e
@ -90,7 +90,8 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
|
||||
| 5.30.1 | 2026-01-07 | `networkInterfaces()`, `users()` improved date parsing (linux). |
|
||||
| 5.30.2 | 2026-01-08 | `processes()` revert added user (windows) |
|
||||
| 5.30.1 | 2026-01-07 | `networkInterfaces()`, `users()` improved date parsing (linux) |
|
||||
| 5.30.0 | 2026-01-06 | `processes()` added user (windows) |
|
||||
| 5.29.1 | 2026-01-05 | `fsSize()` support network attached storage (linux) |
|
||||
| 5.29.0 | 2026-01-04 | `osInfo()` added OS code name (windows) |
|
||||
|
||||
@ -185,7 +185,7 @@ si.cpu()
|
||||
|
||||
(last 7 major and minor version releases)
|
||||
|
||||
- Version 5.30.0: `processes()` added user (windows)
|
||||
- Version 5.30.0: `processes()` added user (windows) - needed to be reverted
|
||||
- Version 5.29.0: `osInfo()` added OS code name (windows)
|
||||
- Version 5.28.0: `cpuTemperature()` added suppurt for macos-temperature-sensor (macOS)
|
||||
- Version 5.27.0: `mem()` added reclaimable memory
|
||||
|
||||
@ -59,6 +59,11 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">5.30.2</th>
|
||||
<td>2026-01-08</td>
|
||||
<td><span class="code">processes()</span> reverted added users (windows)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">5.30.1</th>
|
||||
<td>2026-01-07</td>
|
||||
<td><span class="code">users()</span> improved date parsing (linux)</td>
|
||||
</tr>
|
||||
|
||||
@ -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.30.1</span></div>
|
||||
<div class="version">New Version: <span id="version">5.30.3</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">
|
||||
|
||||
@ -459,7 +459,7 @@ si.currentLoad().then(data => console.log(data));</code></pre>
|
||||
<td>X</td>
|
||||
<td>X</td>
|
||||
<td>X</td>
|
||||
<td>X</td>
|
||||
<td></td>
|
||||
<td>X</td>
|
||||
<td>user who started process</td>
|
||||
</tr>
|
||||
|
||||
@ -935,10 +935,7 @@ function processes(callback) {
|
||||
util
|
||||
.powerShell(
|
||||
`Get-CimInstance Win32_Process | select-Object ProcessId,ParentProcessId,ExecutionState,Caption,CommandLine,ExecutablePath,UserModeTime,KernelModeTime,WorkingSetSize,Priority,PageFileUsage,
|
||||
@{n="CreationDate";e={$_.CreationDate.ToString("yyyy-MM-dd HH:mm:ss")}},
|
||||
@{n="User";e={$OwnerInfo = Invoke-CimMethod -InputObject $_ -MethodName GetOwner
|
||||
if($OwnerInfo.ReturnValue -eq 0) {"$($OwnerInfo.Domain)\\$($OwnerInfo.User)"} else {""}
|
||||
}} | ConvertTo-Json -compress`
|
||||
@{n="CreationDate";e={$_.CreationDate.ToString("yyyy-MM-dd HH:mm:ss")}} | ConvertTo-Json -compress`
|
||||
)
|
||||
.then((stdout, error) => {
|
||||
if (!error) {
|
||||
@ -963,7 +960,6 @@ function processes(callback) {
|
||||
const utime = element.UserModeTime;
|
||||
const stime = element.KernelModeTime;
|
||||
const memw = element.WorkingSetSize;
|
||||
const user = element.User;
|
||||
allcpuu = allcpuu + utime;
|
||||
allcpus = allcpus + stime;
|
||||
result.all++;
|
||||
@ -1000,7 +996,7 @@ function processes(callback) {
|
||||
started: element.CreationDate,
|
||||
state: statusValue ? _winStatusValues[statusValue] : _winStatusValues[0],
|
||||
tty: '',
|
||||
user,
|
||||
user: '',
|
||||
command: commandLine || name,
|
||||
path: commandPath,
|
||||
params: ''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user