Possible Solution: Display Last Logged On User<p align=left><font face=Arial size=2></font> </p> <p>Hello Together,</p> <p align=left> </p> <p align=left>i did not want to except that the last logged on user of a workstation cannot be displayed directly in the SCE Console and did some further research on this.</p> <p align=left> </p> <p align=left>I came around a possible solution to display the information about the last logged on user in a status view. (Only works on XP Clients)</p> <p align=left> </p> <p align=left>First i created a custom attribute in SCE that retrieves the last logged on user information every 5 Minutes from the registry:</p> <p align=left> </p> <p align=left>HKEY_Local_Machine\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\DefaultUserName</p> <p> </p> <p align=left>I saved the attribute in a custom management pack i created before. As Target i chose Windows Client.</p> <p align=left> </p> <p align=left>After creating the Attribute i went to Monitoring in the SCE Console and created a new status view under my custom management pack. I made a custom view which only includes the netbios name, the ipadress, the status and my new atrribute the last logged on user.</p> <p align=left> </p> <p align=left>Works like a charm. When someone calls me now i go to status view, search for the user and see on which computer he is logged on. I can then do my tasks (Remote Assistance and more)</p> <p align=left> </p> <p align=left>I have to say that i did not have much time to do some further improvements. So it would be nice if someone could further develop this idea. Maybe a custom Management Pack with the attribute can be created.</p> <p align=left> </p> <p align=left>The RegistryKey WinLogon\DefaultUserName is not present in Windows Vista so the better way i think would be to retrieve the last logged on user via WMI which is also possible with a custom attribute. Maybe someone has an advice on this.</p> <p align=left> </p> <p align=left>Can't wait for your suggestions.</p> <p> </p> <p align=left> </p> <p align=left> </p>© 2009 Microsoft Corporation. All rights reserved.Thu, 02 Jul 2009 12:18:48 Z4d1a9603-be45-412e-ba2d-8c057cdca820http://social.technet.microsoft.com/Forums/en-US/systemcenter/thread/4d1a9603-be45-412e-ba2d-8c057cdca820#4d1a9603-be45-412e-ba2d-8c057cdca820http://social.technet.microsoft.com/Forums/en-US/systemcenter/thread/4d1a9603-be45-412e-ba2d-8c057cdca820#4d1a9603-be45-412e-ba2d-8c057cdca820UTTOhttp://social.technet.microsoft.com/Profile/en-US/?user=UTTOPossible Solution: Display Last Logged On User<p align=left><font face=Arial size=2></font> </p> <p>Hello Together,</p> <p align=left> </p> <p align=left>i did not want to except that the last logged on user of a workstation cannot be displayed directly in the SCE Console and did some further research on this.</p> <p align=left> </p> <p align=left>I came around a possible solution to display the information about the last logged on user in a status view. (Only works on XP Clients)</p> <p align=left> </p> <p align=left>First i created a custom attribute in SCE that retrieves the last logged on user information every 5 Minutes from the registry:</p> <p align=left> </p> <p align=left>HKEY_Local_Machine\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\DefaultUserName</p> <p> </p> <p align=left>I saved the attribute in a custom management pack i created before. As Target i chose Windows Client.</p> <p align=left> </p> <p align=left>After creating the Attribute i went to Monitoring in the SCE Console and created a new status view under my custom management pack. I made a custom view which only includes the netbios name, the ipadress, the status and my new atrribute the last logged on user.</p> <p align=left> </p> <p align=left>Works like a charm. When someone calls me now i go to status view, search for the user and see on which computer he is logged on. I can then do my tasks (Remote Assistance and more)</p> <p align=left> </p> <p align=left>I have to say that i did not have much time to do some further improvements. So it would be nice if someone could further develop this idea. Maybe a custom Management Pack with the attribute can be created.</p> <p align=left> </p> <p align=left>The RegistryKey WinLogon\DefaultUserName is not present in Windows Vista so the better way i think would be to retrieve the last logged on user via WMI which is also possible with a custom attribute. Maybe someone has an advice on this.</p> <p align=left> </p> <p align=left>Can't wait for your suggestions.</p> <p> </p> <p align=left> </p> <p align=left> </p>Wed, 10 Dec 2008 20:01:30 Z2008-12-10T20:01:30Zhttp://social.technet.microsoft.com/Forums/en-US/systemcenter/thread/4d1a9603-be45-412e-ba2d-8c057cdca820#f4f47e65-88a4-4a0c-8c3e-3149a5f9c0a1http://social.technet.microsoft.com/Forums/en-US/systemcenter/thread/4d1a9603-be45-412e-ba2d-8c057cdca820#f4f47e65-88a4-4a0c-8c3e-3149a5f9c0a1Yog Li - MSFThttp://social.technet.microsoft.com/Profile/en-US/?user=Yog%20Li%20-%20MSFTPossible Solution: Display Last Logged On User<font face=Arial size=2>Hi Thomas,</font>  <br> <p align=left><br>By default, SCE cannot retrieve the last logged on user on the managed computers. However, you can do it by creating a console task. To do it, you should download a command line utility nemed PSLoggedOn firstly: </p> <p align=left>PsLoggedOn v1.33<br><a title="http://technet.microsoft.com/en-us/sysinternals/bb897545.aspx" href="http://technet.microsoft.com/en-us/sysinternals/bb897545.aspx"><font color="#0072bc">http://technet.microsoft.com/en-us/sysinternals/bb897545.aspx</font></a></p> <p align=left> </p> <p align=left>The detailed steps are as follows:</p> <p align=left> </p> <p>In the Authoring Pane select New Task –&gt; Console Tasks –&gt; Command line</p> <p align=left> </p> <p><b>Settings were configured as follows:</b></p> <p align=left><b></b> </p> <p><b>Application:</b> %systemroot%\psloggedon.exe</p> <p align=left> </p> <p><b>Parameters:</b> \$Target Property[Type=&quot;Windows!Microsoft.Windows.Computer&quot;]/NetbiosComputerName$</p> <p><i>I should note here that when I preceded this parameter with the -l (local only) and/or -x (dont show times) I got an InnerException Failure message. SCE didn’t like something about those parameters.</i></p> <p align=left><i></i> </p> <p><b>Working Directory:</b> c:\windows\temp</p> <p align=left> </p> <p>And DO check the box for capturing output.</p><br><br> <p align=left>For more information, click the link below:</p> <p align=left> </p> <p align=left>Console Task: Finding currently logged on user from the SCE / Ops Mgr Console</p> <p align=left><a title="http://www.systemcenterforum.org/news/console-task-finding-currently-logged-on-user-from-the-sce-ops-mgr-console/" href="http://www.systemcenterforum.org/news/console-task-finding-currently-logged-on-user-from-the-sce-ops-mgr-console/"><font color="#0072bc">http://www.systemcenterforum.org/news/console-task-finding-currently-logged-on-user-from-the-sce-ops-mgr-console/</font></a></p> <p align=left> </p> <p align=left>Thanks,</p>Fri, 12 Dec 2008 08:19:46 Z2008-12-12T08:20:39Zhttp://social.technet.microsoft.com/Forums/en-US/systemcenter/thread/4d1a9603-be45-412e-ba2d-8c057cdca820#54c7620a-0939-4e72-b149-187d7373098fhttp://social.technet.microsoft.com/Forums/en-US/systemcenter/thread/4d1a9603-be45-412e-ba2d-8c057cdca820#54c7620a-0939-4e72-b149-187d7373098fFranzSchenkhttp://social.technet.microsoft.com/Profile/en-US/?user=FranzSchenkPossible Solution: Display Last Logged On User Unfortunately, it doesn't work at all: Getting the error &quot;Input string [$Target Property[Type=&quot;Windows!Microsoft.Windows.Computer&quot;]/NetbiosComputerName$] does not contain any $Target references&quot; when executing the task.<br><br>FranzFri, 19 Dec 2008 09:36:15 Z2008-12-19T09:36:49Zhttp://social.technet.microsoft.com/Forums/en-US/systemcenter/thread/4d1a9603-be45-412e-ba2d-8c057cdca820#e5404f2b-3fa7-4e11-96e4-946b831e4d1ehttp://social.technet.microsoft.com/Forums/en-US/systemcenter/thread/4d1a9603-be45-412e-ba2d-8c057cdca820#e5404f2b-3fa7-4e11-96e4-946b831e4d1eFranzSchenkhttp://social.technet.microsoft.com/Profile/en-US/?user=FranzSchenkPossible Solution: Display Last Logged On User<div class=quote><font class=quoteHeader>Yog Li - MSFT said:</font> <p><font size=2 face=Arial>Hi Thomas,</font>  <br> <p align=left><br>By default, SCE cannot retrieve the last logged on user on the managed computers. However, you can do it by creating a console task. To do it, you should download a command line utility nemed PSLoggedOn firstly: </p> <p align=left>PsLoggedOn v1.33<br><a title="http://technet.microsoft.com/en-us/sysinternals/bb897545.aspx" href="http://technet.microsoft.com/en-us/sysinternals/bb897545.aspx"><font color="#0072bc">http://technet.microsoft.com/en-us/sysinternals/bb897545.aspx</font></a></p> <p align=left> </p> <p align=left>The detailed steps are as follows:</p> <p align=left> </p> <p>In the Authoring Pane select New Task –&gt; Console Tasks –&gt; Command line</p> <p align=left> </p> <p><b>Settings were configured as follows:</b></p> <p align=left><b></b> </p> <p><b>Application:</b> %systemroot%\psloggedon.exe</p> <p align=left> </p> <p><b>Parameters:</b> \$Target Property[Type=&quot;Windows!Microsoft.Windows.Computer&quot;]/NetbiosComputerName$</p> <p><i>I should note here that when I preceded this parameter with the -l (local only) and/or -x (dont show times) I got an InnerException Failure message. SCE didn’t like something about those parameters.</i></p> <p align=left><i></i> </p> <p><b>Working Directory:</b> c:\windows\temp</p> <p align=left> </p> <p>And DO check the box for capturing output.</p><br><br> <p align=left>For more information, click the link below:</p> <p align=left> </p> <p align=left>Console Task: Finding currently logged on user from the SCE / Ops Mgr Console</p> <p align=left><a title="http://www.systemcenterforum.org/news/console-task-finding-currently-logged-on-user-from-the-sce-ops-mgr-console/" href="http://www.systemcenterforum.org/news/console-task-finding-currently-logged-on-user-from-the-sce-ops-mgr-console/"><font color="#0072bc">http://www.systemcenterforum.org/news/console-task-finding-currently-logged-on-user-from-the-sce-ops-mgr-console/</font></a></p> <p align=left> </p> <p align=left>Thanks,</p> <p></p></div><br><br>For us, this is not an answer, because the proposed solution does not work at allTue, 30 Dec 2008 10:51:56 Z2008-12-30T10:51:56Zhttp://social.technet.microsoft.com/Forums/en-US/systemcenter/thread/4d1a9603-be45-412e-ba2d-8c057cdca820#069ff1cc-663a-45c6-bdd7-554390e20071http://social.technet.microsoft.com/Forums/en-US/systemcenter/thread/4d1a9603-be45-412e-ba2d-8c057cdca820#069ff1cc-663a-45c6-bdd7-554390e20071FranzSchenkhttp://social.technet.microsoft.com/Profile/en-US/?user=FranzSchenkPossible Solution: Display Last Logged On User<div class=quote><font class=quoteHeader>thomas oeser said:</font> <p> <p align=left><font size=2 face=Arial></font> </p> <p>Hello Together,</p> <p align=left> </p> <p align=left>i did not want to except that the last logged on user of a workstation cannot be displayed directly in the SCE Console and did some further research on this.</p> <p align=left> </p> <p align=left>I came around a possible solution to display the information about the last logged on user in a status view. (Only works on XP Clients)</p> <p align=left> </p> <p align=left>First i created a custom attribute in SCE that retrieves the last logged on user information every 5 Minutes from the registry:</p> <p align=left> </p> <p align=left>HKEY_Local_Machine\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\DefaultUserName</p> <p> </p> <p align=left>I saved the attribute in a custom management pack i created before. As Target i chose Windows Client.</p> <p align=left> </p> <p align=left>After creating the Attribute i went to Monitoring in the SCE Console and created a new status view under my custom management pack. I made a custom view which only includes the netbios name, the ipadress, the status and my new atrribute the last logged on user.</p> <p align=left> </p> <p align=left>Works like a charm. When someone calls me now i go to status view, search for the user and see on which computer he is logged on. I can then do my tasks (Remote Assistance and more)</p> <p align=left> </p> <p align=left>I have to say that i did not have much time to do some further improvements. So it would be nice if someone could further develop this idea. Maybe a custom Management Pack with the attribute can be created.</p> <p align=left> </p> <p align=left>The RegistryKey WinLogon\DefaultUserName is not present in Windows Vista so the better way i think would be to retrieve the last logged on user via WMI which is also possible with a custom attribute. Maybe someone has an advice on this.</p> <p align=left> </p> <p align=left>Can't wait for your suggestions.</p> <p> </p> <p align=left> </p> <p align=left> </p> <p></p></div><br><br>Hi Thomas<br><br>This is a very good solution, and it works! This solution is superior to others, because all machines with users are displayed in one table, and the last logged on user for every machine is also visible when the machin is not running.<br><br>Thanks a lot!<br>FranzTue, 30 Dec 2008 12:16:44 Z2008-12-30T12:16:44Zhttp://social.technet.microsoft.com/Forums/en-US/systemcenter/thread/4d1a9603-be45-412e-ba2d-8c057cdca820#f1afbfe3-661b-4799-affa-ab22fdf4aa57http://social.technet.microsoft.com/Forums/en-US/systemcenter/thread/4d1a9603-be45-412e-ba2d-8c057cdca820#f1afbfe3-661b-4799-affa-ab22fdf4aa57Stuart.Clarkehttp://social.technet.microsoft.com/Profile/en-US/?user=Stuart.ClarkePossible Solution: Display Last Logged On User<blockquote> <div class=quote><span class=quoteHeader>thomas oeser said:</span> <p> </p> <p align=left> </p> <p>Hello Together,</p> <p align=left> </p> <p align=left>i did not want to except that the last logged on user of a workstation cannot be displayed directly in the SCE Console and did some further research on this.</p> <p align=left> </p> <p align=left>I came around a possible solution to display the information about the last logged on user in a status view. (Only works on XP Clients)</p> <p align=left> </p> <p align=left>First i created a custom attribute in SCE that retrieves the last logged on user information every 5 Minutes from the registry:</p> <p align=left> </p> <p align=left>HKEY_Local_Machine\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\DefaultUserName</p> <p> </p> <p align=left>I saved the attribute in a custom management pack i created before. As Target i chose Windows Client.</p> <p align=left> </p> <p align=left>After creating the Attribute i went to Monitoring in the SCE Console and created a new status view under my custom management pack. I made a custom view which only includes the netbios name, the ipadress, the status and my new atrribute the last logged on user.</p> <p align=left> </p> <p align=left>Works like a charm. When someone calls me now i go to status view, search for the user and see on which computer he is logged on. I can then do my tasks (Remote Assistance and more)</p> <p align=left> </p> <p align=left>I have to say that i did not have much time to do some further improvements. So it would be nice if someone could further develop this idea. Maybe a custom Management Pack with the attribute can be created.</p> <p align=left> </p> <p align=left>The RegistryKey WinLogon\DefaultUserName is not present in Windows Vista so the better way i think would be to retrieve the last logged on user via WMI which is also possible with a custom attribute. Maybe someone has an advice on this.</p> <p align=left> </p> <p align=left>Can't wait for your suggestions.</p> <p> </p> <p align=left> </p> <p align=left> </p> <p> </p> </div> <br/><br/>Hi Thomas<br/><br/>This is a very good solution, and it works! This solution is superior to others, because all machines with users are displayed in one table, and the last logged on user for every machine is also visible when the machin is not running.<br/><br/>Thanks a lot!<br/>Franz</blockquote> <br/>For Vista try doing the same thing with the key 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\LastLoggedOnUser'. It works a treat!<br/>Thu, 02 Jul 2009 12:18:48 Z2009-07-02T12:18:48Z