SCCM Last Logged on user results

What process gets SCCM 2012 the last logged on user information? Is there a way I can make it update more often or get more accurate results?

I believe SCCM gets last logged on user from Hardware Inventory Scan via Win32_ComputerSystem. you can configure the frequency of Hardware Inventory from Administration > Client Settings > (Properties of your client policy) > Hardware Inventory
You may want to consider looking at User Device Affinity if you are trying to match users to computers. Alternatively if your creating reports checkout the Console Usage table "v_GS_SYSTEM_CONSOLE_USAGE"

Similar Messages

  • SCCM report to show last logged on user and the Active Directory department attribute of that user.

    I need to create an SCCM report to show last logged on user on all machines and the Active Directory department attribute of that last logged on user.

    You problem is here.
    right
    join v_R_User USR on USR.ResourceID
    = CS.ResourceID
    USR.ResourceID != CS.ResourceID, you need to map the username to the user logon to the PC. By using the user’s department information you will
    end up with unreliable results.
    Anyways you need to make these changes to your query.
    left
    join v_R_User USR on USR.Unique_User_Name0
    = CS.UserName0
    http://www.enhansoft.com/

  • Status Report with Last Logged on User on a deployment

    Hi all,
    I have been trying to find a report that will telling me the deployment status of an application and against the workstations the last logged on user.
    Is there such a report or will I have to customize a report to do that?
    Cheers

    Hello,
    a report that will telling me the deployment status of an application
    You can refer to compliance report.
    For last logged on user, you can find the information in client propertities. If you want to query the information, you need create a customized report.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Custom report software installed with last logged on user.

    Can someone please help, I'd like to create a custom report: Specific software installed on a computer which includes last logged on user. I can do this by query but need a custom report for none ConfigMgr users.

    SELECT DISTINCT
    TOP (100) PERCENT dbo.v_GS_COMPUTER_SYSTEM.Name0 AS [Computer name], dbo.v_GS_ADD_REMOVE_PROGRAMS.DisplayName0,
    dbo.v_GS_ADD_REMOVE_PROGRAMS.Version0, dbo.v_R_System.User_Name0, dbo.v_R_System.User_Domain0 AS [User domain],
    dbo.v_GS_COMPUTER_SYSTEM.Domain0 AS [Computer domain], dbo.v_R_System.AD_Site_Name0 AS [Computer AD Site]
    FROM dbo.v_GS_ADD_REMOVE_PROGRAMS INNER JOIN
    dbo.v_GS_COMPUTER_SYSTEM ON dbo.v_GS_ADD_REMOVE_PROGRAMS.ResourceID = dbo.v_GS_COMPUTER_SYSTEM.ResourceID INNER JOIN
    dbo.v_R_System ON dbo.v_GS_COMPUTER_SYSTEM.ResourceID = dbo.v_R_System.ResourceID
    WHERE (dbo.v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 LIKE N'Adobe Shockwave Player%')
    ORDER BY [Computer name]
    Keep in mind that this query will only find x86 software titles. Use 
    v_ADD_REMOVE_PROGRAMS
    instead to get both.
    http://www.enhansoft.com/

  • Last logged on user only populated sporadically

    I am wanting my last logged on user information to be as current and accurate as possible, i have enabled auditing and changed the client policy thresholds to lower the user time on pc before it is logged as last logged on user but 50% of the machines have
    no last logon user or have wrong or stale information...
    what is the best practice for getting this more accurate and up to date, does the client send the last logged on user back to the server as part of its inventory? why is it blank for so many machines?
    ***Don't forget to mark helpful or answer***

    If you are talking about User Device Affinity (which is what you are editing when you click the "Edit Primary User" menu item or ribbon bar button, it is actually unrelated to last logon user in any way.
    UDA and primary user are determined by events in the security event log. Thus, if you've left the default values, users must be logged onto a system for 2880 minutes (48 total hours) over a span of 30 days to automatically be marked as primary. Thus, the
    security event log on the client system must also have (at least) 30 days worth of events in order to be able to calculate this. Additionally, by default, UDA is not configured to be determined automatically so if you've left your settings at default,
    nothing will happen.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • Is it possible to query a collection and get the last logged on user?

    Hi
    Is it possible in SCCM to query a collection to get the computer names and the last logon user for each computer? I cant seem to find how to do this?
    Thank you

    try this out
    Select distinct   
    v_R_System.Netbios_Name0 AS [Computer Name],  
    v_GS_COMPUTER_SYSTEM.UserName0 AS [User Name]
     from v_R_System
    left join v_GS_COMPUTER_SYSTEM on (v_GS_COMPUTER_SYSTEM.ResourceID = v_R_System.ResourceID) 
    inner join v_fullcollectionmembership as b on (b.ResourceID = v_R_System.ResourceID) 
    left join v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP ON v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP.ResourceID = v_R_System.ResourceID
            inner join v_GS_SYSTEM e on e.resourceid = b.resourceid
     Where
    b.CollectionID = @collectionid
    Blog: http://theinfraguys.com
    Follow me at Facebook
    The Infra Guys Facebook Page
    Please remember to click Mark as Answer on the answer if it helps you in anyway

  • Need query to determine current logged in user

    Because I see no way in sccm 2012 to determine if someone is currently logged into a domain joined computer.  Does anyone have a query or know of a way to get the current logged in user of a computer? I am surprised that SCCM does not show that information
    when looking at the particular device.  I did find a powershell query that I use that tells me the last logged in user but it gives me no indication if the user is currently logged in or if it was a week ago.
    Thank you.

    This PowerShell script queries a remote machine to obtain the current logged on user.  It's available on the Repository (https://gallery.technet.microsoft.com/scriptcenter/d46b1f3b-36a4-4a56-951b-e37815a2df0c).
    function Get-LoggedOnUser {
    #Requires -Version 2.0
    [CmdletBinding()]
    Param
    [Parameter(Mandatory=$true,
    Position=0,
    ValueFromPipeline=$true,
    ValueFromPipelineByPropertyName=$true)]
    [String[]]$ComputerName
    )#End Param
    Begin
    Write-Host "`n Checking Users . . . "
    $i = 0
    }#Begin
    Process
    $ComputerName | Foreach-object {
    $Computer = $_
    try
    $processinfo = @(Get-WmiObject -class win32_process -ComputerName $Computer -EA "Stop")
    if ($processinfo)
    $processinfo | Foreach-Object {$_.GetOwner().User} |
    Where-Object {$_ -ne "NETWORK SERVICE" -and $_ -ne "LOCAL SERVICE" -and $_ -ne "SYSTEM"} |
    Sort-Object -Unique |
    ForEach-Object { New-Object psobject -Property @{Computer=$Computer;LoggedOn=$_} } |
    Select-Object Computer,LoggedOn
    }#If
    catch
    "Cannot find any processes running on $computer" | Out-Host
    }#Forech-object(Comptuters)
    }#Process
    End
    }#End
    }#Get-LoggedOnUser

  • SCCM Report Top Console User Computer by User Collection

    Trying to Get a report of where We can have a user collection then it comes back with that users computer information... I have this report working until I try to have it run by user collection.  I have commented out the last join and where  and
    the reports run.  Any help would be appreciated.
    SELECT DISTINCT B.Netbios_Name0 AS [Computer Name],
    G.SerialNumber0 AS [Service Tag],
    C.Manufacturer0 AS [Make],
    C.Model0 AS [Model],
    e.Name0 AS [Processor Name],
    E.MaxClockSpeed0 AS [Processor (GHz)],
    E.ProcessorType0 AS [Processory Type],
    D.TotalPhysicalMemory0/1024/1024 AS [Memory (GB)],
    B.User_Name0 AS [Last Logged on User],
    I.TopConsoleUser0 AS [Top User],
    H.Size0/1024 AS [Disk Space (GB)],
    J.Caption0 AS [Operating System],
    J.CSDVersion0 AS [Service Pack Level]
    FROM dbo.v_r_system B
    JOIN dbo.v_gs_computer_system C ON C.ResourceID = B.ResourceID
    JOIN dbo.v_gs_x86_pc_memory D ON D.resourceID = B.ResourceID
    JOIN dbo.v_gs_processor E ON E.resourceID = D.ResourceID
    JOIN dbo.v_gs_pc_bios F ON F.ResourceID = E.ResourceID
    JOIN dbo.v_gs_system_enclosure G ON G.ResourceID = F.ResourceID
    JOIN dbo.v_gs_logical_disk H ON H.ResourceID = G.ResourceID
    JOIN dbo.v_GS_SYSTEM_CONSOLE_USAGE I ON I.ResourceID = H.ResourceID
    JOIN dbo.v_GS_OPERATING_SYSTEM J ON J.ResourceID = I.ResourceID
    JOIN dbo.v_FullCollectionMembership K ON C.ResourceID = K.ResourceID
    WHERE K.CollectionID=@ColID
    ORDER BY C.Model0

    Was hoping for a little more meat on the bone.
    What more meat do you want? Peter suggestion is exactly what you need to do.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • How to find MAC of phone last logged into by specific User

    Greetings, 
    How can I find the MAC of the phone a User last logged in to?  The user is currently not logged in to any phone. 
    Thank you 

    thank you Jaime
    is this intrusive?  will the pulling of EM traces affect CUCM performance or is it a simple task? 
    can this be done via RTMT?
    please provide instructions if possible.
    thank you again

  • I need a script that will find the computer a user last logged into.

    I am still learning scripting, I need a script that will allow me to pull in usernames from a csv file. Find what computer they last logged into and output that to an csv file.
    I have looked all over and can't find exactly what I need.
     I found the following script but I need  to add the resuitsize unlimited but can not figure out where to put it we have a large environment. Also I need to be able to grab username from a csv file. Any assistance you can provide is appreciated.
    ##  Find out what computers a user is logged into on your domain by running the script
    ##  and entering in the requested logon id for the user.
    ##  This script requires the free Quest ActiveRoles Management Shell for Active Directory
    ##  snapin  http://www.quest.com/powershell/activeroles-server.aspx
    Add-PSSnapin Quest.ActiveRoles.ADManagement -ErrorAction SilentlyContinue
    $ErrorActionPreference = "SilentlyContinue"
    # Retrieve Username to search for, error checks to make sure the username
    # is not blank and that it exists in Active Directory
    Function Get-Username {
    $Global:Username = Read-Host "Enter username you want to search for"
    if ($Username -eq $null){
    Write-Host "Username cannot be blank, please re-enter username!!!!!"
    Get-Username}
    $UserCheck = Get-QADUser -SamAccountName $Username
    if ($UserCheck -eq $null){
    Write-Host "Invalid username, please verify this is the logon id for the account"
    Get-Username}
    get-username resultsize unlimited
    $computers = Get-QADComputer | where {$_.accountisdisabled -eq $false}
    foreach ($comp in $computers)
    $Computer = $comp.Name
    $ping = new-object System.Net.NetworkInformation.Ping
      $Reply = $null
      $Reply = $ping.send($Computer)
      if($Reply.status -like 'Success'){
    #Get explorer.exe processes
    $proc = gwmi win32_process -computer $Computer -Filter "Name = 'explorer.exe'"
    #Search collection of processes for username
    ForEach ($p in $proc) {
    $temp = ($p.GetOwner()).User
    if ($temp -eq $Username){
    write-host "$Username is logged on $Computer"

    If you are querying by user "resultset size" will be of no use.
    You also have functions that are never used and the body code doe snot look for users.
    Here is what you scrip looks like if printed well.  It is just a jumble of pasted together and unrelated items.
    ## Find out what computers a user is logged into on your domain by running the script
    ## and entering in the requested logon id for the user.
    ## This script requires the free Quest ActiveRoles Management Shell for Active Directory
    ## snapin http://www.quest.com/powershell/activeroles-server.aspx
    Add-PSSnapin Quest.ActiveRoles.ADManagement -ErrorAction SilentlyContinue
    $ErrorActionPreference = "SilentlyContinue"
    # Retrieve Username to search for, error checks to make sure the username
    # is not blank and that it exists in Active Directory
    Function Get-Username {
    $Global:Username = Read-Host "Enter username you want to search for"
    if ($Username -eq $null) {
    Write-Host "Username cannot be blank, please re-enter username!!!!!"
    Get-Username
    $UserCheck = Get-QADUser -SamAccountName $Username
    if ($UserCheck -eq $null) {
    Write-Host "Invalid username, please verify this is the logon id for the account"
    Get-Username
    get-username resultsize unlimited
    $computers = Get-QADComputer | where { $_.accountisdisabled -eq $false }
    foreach ($comp in $computers) {
    $Computer = $comp.Name
    $ping = new-object System.Net.NetworkInformation.Ping
    $Reply = $null
    $Reply = $ping.send($Computer)
    if ($Reply.status -like 'Success') {
    #Get explorer.exe processes
    $proc = gwmi win32_process -computer $Computer -Filter "Name = 'explorer.exe'"
    #Search collection of processes for username
    ForEach ($p in $proc) {
    $temp = ($p.GetOwner()).User
    if ($temp -eq $Username) {
    write-host "$Username is logged on $Computer"
    I suggest finding the original code then use the learning link at the top of this page to help you understand how it works in Powershell.
    ¯\_(ツ)_/¯

  • Last logged on by in exchange 2010 shows wrong users name.

    Dear All,
    i am having problem with wrong information display at last logged on by user at exchange 2010.
    i dont have given any users to full access or send as permission.
    please help to resolved this problem
    Sunil
    SUNIL PATEL SYSTEM ADMINISTRATOR

    You'll have to post more information and more clear problem statement to receive useful help.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • Please Help After Effects Error:Crash in progrss.Last logged message was: 8020 GPU manager Sniffer Result Code:3

    Tell us about your computer hardware.
    A:Here is my specs:
    i-7 4770 motherboard
    8 gb of Ram
    What operating system?
    A:Windows 7 64 bit OS
    If you are getting error message(s), what is the full text of the error message(s)?
    A:After Effects Error:Crash in progrss.Last logged message was:<8020><GPU manager>Sniffer Result Code:3
    What were you doing when the problem occurred? What is the exact sequence of steps that you are taking?
    A: Opened it and the error started

    @Todd_Kopriva
    thank you very much it works now

  • Today I stupidly tried to install CUDA accelerator forgetting I have Intel/AMD combo graphics card and not NVidia. Now when I try to launch AE or PremierePro I get this Last log message was: 140735120521568 GPUManager 2 Sniffer Result Code: 3 Help

    Today I stupidly tried to install CUDA accelerator forgetting I have Intel/AMD combo graphics card and not NVidia. Now when I try to launch AE or PremierePro I get this Last log message was: <140735120521568> <GPUManager> <2> Sniffer Result Code: 3.  I have trashed the CUDA program and reinstalled Premiere and AE but no joy.  Same message followed by another error box with options to Retry, Send to Apple or ignore.  I have tried all 3 options but nothing works!  Every time I launch either program same message appears.

    Hi? today i too have this problem.
    I found a solution here: https://discussions.apple.com/message/25137524#25137524
    Now all good.
    Good luck!

  • Updated OS 10.9.4  and AE Version 11.0.4 and this is what the message reads on launch. Last log message was: 140735170798352 GPUManager 2 Sniffer Result Code: 3

    Updated OS 10.9.4 and AE Version 11.0.4 and this is what the message reads on launch. Last log message was: <140735170798352> <GPUManager> <2> Sniffer Result Code: 3
    What do I need to do to get this working again?
    After Effects@

    fixing permissions problem that impedes start of Adobe applications
    Also, Avoid installing NVIDIA CUDA drivers on computers with AMD GPUs

  • After effects error:crash in progress.Last logged message was: 4344 GPUManager 2 Sniffer Result Code:3 What is this?

    after effects error:crash in progress.Last logged message was:<4344><GPUManager><2>Sniffer Result Code:3 What is this?

    It's the same as always: Update your graphics driver.
    Mylenium

Maybe you are looking for