Display Logged in User
In the all systems view, we can see the device name, the OS version, and the device uptime. Any chance to display the logged-in users? It will help us to identify the device when we receive a call from the end-users
Comments: 4
-
11 Oct, '21
Ryan SawyerQuick workaround I use, setup the following script in automation to run when you receive a login notification. You will have to change your policy to enable normal notifications at user login but then this script will append logged in users to the device name in the PW agent and you can then search for a user name in the systems page and find the user on the phone
CODE:
$pwqusers = quser | Select-Object -skip 1
write-output($pwqusers)
$pwquserfmt = $pwqusers.substring(1,22).Trim() -join ","
write-output($pwquserfmt)
if($pwquserfmt) {
Set-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor\" -Name ComputerName -Value "$env:computername-$pwquserfmt"
} else {
Set-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor\" -Name ComputerName -Value "$env:computername"
}
Write-output($env:computername) -
01 Mar, '22
PeterThe problem is when you have multiple users on one machine and a previous user just locks (doesn't actually sign out). When the user unlocks the workstation, script will not run. You have to drill into the workstation, users to see all logged in users. You can't just search.
-
16 Dec, '22
Sam HI second this - either as "WORKSTATION01/samh" or pinned to the right of this area. It would also show up when hovering over pins, and when searching for systems. Maybe in non-bolded or italicised text? Exactly something i've wanted though!
-
20 Oct, '23
Nick PraechterCool work around but I don't think this would work for everyone. Our asset tag is the hostname of each computer.