Command prompt, last user, input

Hi

Just a quickie question here.

Does anyone know the input for command prompt the find out who was the last user to log into the computer.

As i have googled but known i have found have worked.

Thanks
 
Solution
OK, now I'm with you.

If we're talking about an Active Directory domain then you can run a report from PowerShell to find the last logged-on user. I'm not hugely proficient with PowerShell so I don't know the command myself.

You can't stop the user from logging on locally, but you can stop them from accessing your network remotely by disabling the computer account within AD. If someone calls to complain then you've found your culprit.

Someone has 'taken' two laptops from are office and we need to find out who was logged on them last in an attempt to recover them. I'm presuming we can't lock the last users down if we don't know the two laptops IP address so we can search them in server as we of course cant access the laptops due to them being 'taken'.

Any ideas on how we can recover them?

It may just be some staff haven't returned them but still needs looking into.
 
OK, now I'm with you.

If we're talking about an Active Directory domain then you can run a report from PowerShell to find the last logged-on user. I'm not hugely proficient with PowerShell so I don't know the command myself.

You can't stop the user from logging on locally, but you can stop them from accessing your network remotely by disabling the computer account within AD. If someone calls to complain then you've found your culprit.

 
Solution