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: 1
-
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)