I’ve just bought a smart socket plug with the intention to power on the pc remotely and then connect via TeamViewer to it. I know about the automatic restore ( power on / power off / last state ) on power loss. I was thinking this would also work if I just shut off the socket and then turn it back on.

So do you guys have any idea how to make this happen without the actual power loss when the PC is on?