Avatar of jamiegf
jamiegf
 asked on

Powershell - List all logged in users

I need a powershell script to show all interactive logins to a server in a list and also specify the amount of days to search for.
(So the list will just tell me which users logged into a server over say the last 30 days)
The servers are Windows 2016.
 Id like to be able to change / filter the login type (as i will initially be using logon type 2 and 7 etc) if this is possible?

Thanks very much.
PowershellWindows OS

Avatar of undefined
Last Comment
Alex

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Alex

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck