I'm trying to do something that appears to be a bit beyond me: issue a command (or run a batch file) whenever a user loses access to the computer. By "loses access" I mean:
For #3 I can find no logged event record. I've seen mention of a Security Event-id 4800, but that doesn't seem to be created on my computers. Is that just for AD environments? (Every thing I've read about it sort of implies AD.) Is there any way to detect a Lock event if no event record is created?
Before I start tackling the Bitlocker part of this project I'd like some way to just log the fact that the my scheduled task executed. Is there some way for a batch file to create a Windows notification or a user-created event record?
- the computer enters a low power state
- the user logs out
- the user locks the screen
- the user switches to a different userid (which I think is the same as logging out)
- a remote desktop connection is terminated
- anything else that I haven't thought of
For #3 I can find no logged event record. I've seen mention of a Security Event-id 4800, but that doesn't seem to be created on my computers. Is that just for AD environments? (Every thing I've read about it sort of implies AD.) Is there any way to detect a Lock event if no event record is created?
Before I start tackling the Bitlocker part of this project I'd like some way to just log the fact that the my scheduled task executed. Is there some way for a batch file to create a Windows notification or a user-created event record?
- Windows Build/Version
- Win 11 Pro x64 22000.1219
My Computer
System One
-
- OS
- Windows 11
- Computer type
- PC/Desktop
- Manufacturer/Model
- Microsoft
- CPU
- Intel Core i5-8400
- Motherboard
- ASUS PRIME H370-PLUS
- Memory
- 16GB
- Graphics Card(s)
- Intel UHD Graphics 630
- Sound Card
- On board
- Monitor(s) Displays
- Samsung SyncMaster 2043BWX
- Screen Resolution
- 1680 x 1050
- Hard Drives
- Samsung SSD 850 256GB
WDC 1TB NVMe
WD 3TB external USB drive
- PSU
- I don't remember
- Case
- Corsair something-or-other
- Cooling
- Air CPU + 2 case fans
- Keyboard
- DAS S Pro (Cherry Brown)
- Mouse
- Logitech USB of some sort