Answer the question
In order to leave comments, you need to log in
How to implement a notification about unlocking a computer?
Good afternoon. There are 2 users on the PC (their name is Administrator, User)
I need that when a blocked 1 (win + l) user account is unlocked, a notification comes to the mail that such and such has entered the PC.
I have such a .bat file
set file_blat=blat.exe
<b>echo %username% %date% %time% >> C:\task\inuser.txt</b>
set file_text=C:\task\inuser.txt
set file_log=C:\task\log_blat_send.txt
set from_server
set from_port=587
set from_mail=
set from_name=
set from_pass=gigaf5
set to_mail=
set to_subject="inuser"
%file_blat% %file_text% -server %from_server%:%from_port% -f %from_mail% -u %from_name% -pw %from
Answer the question
In order to leave comments, you need to log in
If you only have two users - do two different tasks for each user by selecting the user accordingly when creating the trigger.
Another option is to enable login auditing and get the user from the last event.
You can also insert a batch file into the autorun for the user.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question