Powershell – Network Adapter Enable, Disable

WmiObject 를 이용하여 네트워크 장치(랜카드, NIC)를 활성화, 비 활성화 시킨다.

핵심은 win32_networkadapter WmiObject 를 이용하여 해당 Network Adapter Object를 추출한뒤 .Enable() .Disable() 메서드를 호출 하는 것이다.

Set-NetworkAdapterStatus.ps1

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url=""> 

This site uses Akismet to reduce spam. Learn how your comment data is processed.