Require Powershell script for Ethernet Disconnection.

Hi guys. My friend told me about this community and im thinking you guys can help me with my problem. I m not a professional. Just came to know about powershell. Im using windows server 2008 and i want to make my computer auto lock (Win+L) whenever Ethernet signals drops or cable disconnect. Please help me.

That’s not something PowerShell is going to be able to do for you.