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.