Jump to content

Hi
I am looking for any solutions that will alert me with an email on every windows start or account login, I share the same PC with my gf and I want to know when she is looking around my pc when i'm gone, obviously I can't deny her access by simply changing the password... 

thanks

Link to comment
https://linustechtips.com/topic/970747-email-alert-with-every-windows-start-up/
Share on other sites

Link to post
Share on other sites

Do you really need an email or is it enough to see when logins happen?

Because I am thinking of the Event Log from Windows. There you can see when logins happen.

 

My Setup: 
CPU: i7 4790 @3800 MHz, MB: MSI H87-G41, Grafik: Gigabyte GTX 1080TI, RAM: 2x 8GB DDR3 (1600), Storage: Samsung SSD 850 Evo

Link to post
Share on other sites

Just now, Mike87 said:

Do you really need an email or is it enough to see when logins happen?

Because I am thinking of the Event Log from Windows. There you can see when logins happen.

 

yeah I know, but I would have instant info about it which is easier than checking every time

Link to post
Share on other sites

4 minutes ago, wojtepanik said:

I found way to do this via task scheduler, but want to expand my possibilities https://www.maketecheasier.com/email-notification-user-login/

 

Well this looks like what you want. Or what are you missing?

My Setup: 
CPU: i7 4790 @3800 MHz, MB: MSI H87-G41, Grafik: Gigabyte GTX 1080TI, RAM: 2x 8GB DDR3 (1600), Storage: Samsung SSD 850 Evo

Link to post
Share on other sites

2 minutes ago, AskTJ said:

Microsoft Family, then list her as a child.

she uses my account, so I would need to list myself :D but I'll look into this

 

3 minutes ago, Mike87 said:

Well this looks like what you want. Or what are you missing?

remote control maybe, remote shutdown at least, but I might use RDP, TV or chrome RD

Link to post
Share on other sites

1 minute ago, wojtepanik said:

she uses my account, so I would need to list myself :D but I'll look into this

 

remote control maybe, remote shutdown at least, but I might use RDP, TV or chrome RD

Then I would use Teamviewer, my last info was that it is free for private use. Add the PC to your account and then you can remotely shutdown. Also via Mobile ;)

 

My Setup: 
CPU: i7 4790 @3800 MHz, MB: MSI H87-G41, Grafik: Gigabyte GTX 1080TI, RAM: 2x 8GB DDR3 (1600), Storage: Samsung SSD 850 Evo

Link to post
Share on other sites

 

3 minutes ago, lewdicrous said:

Seems like you're trying to hide something..

 

4 minutes ago, Pixel5 said:

may not be the answer you want but if shes your GF and you don't trust her then why do you stay with her?

 

this is not a technical issue its a relationship issue.

I could say that my roommate/brother/mother/employer/landlord and it wouldn't matter, so as it doesn't matter to the question that it is my gf, so we might close the topic as I found what I need :)

Link to post
Share on other sites

1 minute ago, wojtepanik said:

I could say that my roommate/brother/mother/employer/landlord and it wouldn't matter, so as it doesn't matter to the question that it is my gf, so we might close the topic as I found what I need :)

To each their own I guess

Link to post
Share on other sites

The easiest way would be to make a script which sends an email to you, and then have it run at startup.

 

I can't try this myself since I use 2-factor authentication on gmail, but feel free to try it out. You need to change "YOUR_EMAIL@gmail.com" to your real email address, and the "YOUR_PASSWORD" to your real password.

$username   = 'YOUR_EMAIL@gmail.com'
$password   = 'YOUR_PASSWORD'
$secstr     = New-Object -TypeName System.Security.SecureString
$password.ToCharArray() | ForEach-Object {$secstr.AppendChar($_)}

$hash = @{
    from       = $username
    to         = $username
    subject    = "Your Computer Turned On!"
    smtpserver = "smtp.gmail.com"
    port       = "587"
    body       = "Someone just turned on your computer"
    credential = New-Object -typename System.Management.Automation.PSCredential -argumentlist $username, $secstr
    usessl     = $true
    verbose    = $true
}

Send-MailMessage @hash

 

Type the above code into notepad.

Change the email and password to your real ones.

Click "save as".

Change the "Save as type" to "All Files" and name it "mail.ps1".

 

Put that mail.ps1 file somewhere on your computer. For example in C:\Windows

Then create a shortcut which points to this:

powershell.exe -windowstyle hidden -file C:\Windows\mail.ps1

The shortcut is necessary in order to make the script run in the background, rather than popup as a big blue text box whenever the computer is started.

 

Finally, put the shortcut in:

%appdata%\Microsoft\Windows\Start Menu\Programs\Startup

That will make it so that it starts every time the computer starts.

 

 

You also need to allow less-secure apps in your gmail settings. Otherwise the authentication to your Google account will fail.

If you're using 2-factor like I do, then you will need to set an app password but I don't feel like digging that much into this.

 

 

 

 

 

The other option is to have a separate computer on at all times, constantly pinging your computer. Then set it up so that once it gets a reply to the ping, it sends a mail.

 

Another option would be to have an email server on your computer. That way you get around the issues of having to authenticate with gmail to send the mail. However, it makes the whole thing much more complicated.

Link to post
Share on other sites

Or change your password, lmao.

PC Specs - AMD Ryzen 7 5800X3D MSI B550M Mortar - 32GB Corsair Vengeance RGB DDR4-3600 @ CL16 - ASRock RX7800XT 660p 1TBGB & Crucial P5 1TB Fractal Define Mini C CM V750v2 - Windows 11 Pro

 

Link to post
Share on other sites

3 hours ago, wojtepanik said:

 

 

I could say that my roommate/brother/mother/employer/landlord and it wouldn't matter, so as it doesn't matter to the question that it is my gf, so we might close the topic as I found what I need :)

It wouldn't matter as much if it was any of the above, because the nature of their relationship to you should all be different to that of your girlfriend...

 

...at least, I hope they are. Whatever happens between you and your landlord...and your mother...is your business :$:D 


 

⠀⠀⠀⣴⣴⡤
⠀⣠⠀⢿⠇⡇⠀⠀⠀⠀⠀⠀⠀⢰⢷⡗
⠀⢶⢽⠿⣗⠀⠀⠀⠀⠀⠀⠀⠀⣼⡧⠂⠀⠀⣼⣷⡆
⠀⠀⣾⢶⠐⣱⠀⠀⠀⠀⠀⣤⣜⣻⣧⣲⣦⠤⣧⣿⠶
⠀⢀⣿⣿⣇⠀⠀⠀⠀⠀⠀⠛⠿⣿⣿⣷⣤⣄⡹⣿⣷
⠀⢸⣿⢸⣿⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⢿⣿⣿⣿⣿⣿
⠀⠿⠃⠈⠿⠆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⠿⠿⠿

⠀⢀⢀⡀⠀⢀⣤⠀⠀⠀⠀⠀⠀⠀⡀⡀
⠀⣿⡟⡇⠀⠭⡋⠅⠀⠀⠀⠀⠀⢰⣟⢿
⠀⣹⡌⠀⠀⣨⣾⣷⣄⠀⠀⠀⠀⢈⠔⠌
⠰⣷⣿⡀⢐⢿⣿⣿⢻⠀⠀⠀⢠⣿⡿⡤⣴⠄⢀⣀⡀
⠘⣿⣿⠂⠈⢸⣿⣿⣸⠀⠀⠀⢘⣿⣿⣀⡠⣠⣺⣿⣷
⠀⣿⣿⡆⠀⢸⣿⣿⣾⡇⠀⣿⣿⣿⣿⣿⣗⣻⡻⠿⠁
⠀⣿⣿⡇⠀⢸⣿⣿⡇⠀⠀⠉⠉⠉⠉⠉⠉⠁

 

Link to post
Share on other sites

2 minutes ago, Ross Siggers said:

It wouldn't matter as much if it was any of the above, because the nature of their relationship to you should all be different to that of your girlfriend...

 

...at least, I hope they are. Whatever happens between you and your landlord...and your mother...is your business :$:D 

If I ever hut her in any way,like cheating or something, I would feel bad, because I am not this kind of person, I just think some things should be personal even in the closest relationship you could have!

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×