Powershell script to see currently logged in users (domain and machine) + status (active, idle, away) -


I am looking for a simple command to see logged on users on the server I know this:

But it will not provide me with the necessary information: Domain Maker Model Name (Machine Name) Primary Owner Name Total physical memory

I run Powershell 3.0 on Windows Server 2012 Get-WMIObject Win32_LoggedOnUser -ComputerName $ Computer | Select pre-selection - Exclusive

I do not want the exact answer that I need. I would also like to see inactive time, or if they are active or away.

In this same solution in search, what was the need for me in a separate question in Stackhouse Flow: . Below will return a list of logins to one line users.

  query user / server: $ server    

Comments

Popular posts from this blog

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

sql - PostgreSQL automatically update row at specific date -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -