# Require Powershell script for Ethernet Disconnection.

**URL:** https://forums.powershell.org/t/require-powershell-script-for-ethernet-disconnection/11736
**Category:** DSC
**Created:** [December 1, 2018, 10:43am UTC](https://forums.powershell.org/t/require-powershell-script-for-ethernet-disconnection/11736 "2018-12-01T10:43:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)
#### Post date: [December 1, 2018, 10:43am UTC](https://forums.powershell.org/t/require-powershell-script-for-ethernet-disconnection/11736/1 "2018-12-01T10:43:18Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![donj](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/donj/32/137_2.png) [@donj](https://forums.powershell.org/u/donj)
#### Post date: [December 1, 2018, 10:44am UTC](https://forums.powershell.org/t/require-powershell-script-for-ethernet-disconnection/11736/2 "2018-12-01T10:44:00Z")

</div>

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

---

<div class="post-metadata">

### Author: ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)
#### Post date: [May 16, 2024, 9:16pm UTC](https://forums.powershell.org/t/require-powershell-script-for-ethernet-disconnection/11736/3 "2024-05-16T21:16:25Z")

</div>


