This article was co-authored by How.com.vn staff writer, Rain Kengly. Rain Kengly is a How.com.vn Technology Writer. As a storytelling enthusiast with a penchant for technology, they hope to create long-lasting connections with readers from all around the globe. Rain graduated from San Francisco State University with a BA in Cinema.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 507,309 times.
Learn more...
Do you think someone has been sneaking on your computer? You can use Windows' Event Viewer or Mac's Terminal to see the last activity on your computer, including when it was powered on. Here's how to know when your computer was last used.
Things You Should Know
- On Windows, right-click the Start menu and click "Event Viewer". Click "Windows Logs" → "System" to view the event log.
- To add a filter, click "Filter Current Log…" → "Event Sources" → select "Power-Troubleshooter" → "OK".
- On Mac, open Terminal. Type "last" and press "Enter" to view the event log.
Steps
- Right-click the Start menu. This will open a menu.[1]
- This method will work on Windows 10 and Windows 11 computers.
- Advertisement
- Double-click "Windows Logs". This is in the left panel. The folder will expand.
- Click System. This will be underneath Setup'.
- View the event log. You'll see a list of everything that happened on your computer with the date, time, source, event ID, and more.[3]
- Click an event to see more details.
- Find when your computer was turned on (optional). If you want to filter the event log to only show when your computer was powered on, do the following:
- Click Filter Current Log… in the right panel.
- Click the Event sources: drop-down menu.
- Select Power-Troubleshooter.
- Click OK.
- View the date and time for each event.
- Open Terminal. This can be done from the Launchpad, Finder, or Spotlight.[4]
- Type last and press ↵ Enter. This will send the command.
- View the event log. Terminal will list all recent login events with your account username and the date and time it happened.[5]
- If you suspect someone is using your computer without your knowledge, changing your password may help.
Community Q&A
- QuestionHow do I delete events from Event Viewer?Community AnswerOn the right side under where it says "Action" you click "Clear Log" and it gives you the option to save and clear or to just clear the logs.
- QuestionHow do I use my web cam to capture whoever logs in to my computer?Community AnswerYou can use a batch script to do that. Copy and paste this code:@echo offif not exist "C:\Login History" mkdir "C:\Login History"if not exist "C:\Login History\history.log" echo Login History>"C:\Login History\history.log"echo %userdomain%\%username% logged in at %date%%time%>>"c:\login history\history.log"Then, save it as C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\anyname.batTo view who logged in, open C:\Login History\history.log
- QuestionCan I find out when my computer was turned on?Community AnswerYes, via the system log within the event viewer. It will show you the date and time of the events and you might be able to tell if there is something suspicious.
Tips
Warnings
- Avoid changing any settings unless you know exactly what you're doing.Thanks
References
- ↑ https://learn.microsoft.com/en-us/shows/inside/event-viewer
- ↑ https://www.freecodecamp.org/news/event-viewer-how-to-access-the-windows-10-activity-log/
- ↑ https://www.freecodecamp.org/news/event-viewer-how-to-access-the-windows-10-activity-log/
- ↑ https://support.apple.com/guide/terminal/open-or-quit-terminal-apd5265185d-f365-44cb-8b09-71a064a42125/mac
- ↑ https://support.apple.com/guide/console/activities-cnsl6df527d3/mac
About This Article
Is this article up to date?
⚠️ Disclaimer:
Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.
- - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
- - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
- - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
- - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.