I am newbie to Powershell realm. I am trying to extract some information from Active Directory about a domain computer. Please kindly assist me.
I have a domain Windows 10 computer. I would like to use powershell cmdlet to find out who has last logged in to that computer as a domain user or the recent user that has logged into that particular computer. I did google search and found the following cmdlet but it is giving an error-
Cmdlet: Get-UserLogon -Computer comp45456
error: the term get-userlogon is not recognised as the the name of a cmdlet, function, script--------
I am using this cmdlet on my Windows 10 computer with powershell version 5.1 and has access to Active directory users and computers.