2014. 9. 26. 11:12

  • NIC의 정보를 쉽게 확인하는 방법은 다음과 같다.
    Get-WmiObject -Class Win32_*network* -List


  • 여기서 IP 구성 정보를 확인하는 Win32_NetworkAdapterConfiguration을 이용하면 편리하다
    Get-WmiObject -Class Win32_NetworkAdapterConfiguration
    Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-List *

    (여기서 IPEnabled가 True인 것을 참고한다.)
    Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Where {$_.IPEnabled -eq ‘True’}
    (이렇게 하면 로컬 컴퓨터 IP 구성 상황을 모두 알 수 있다.)


    Get-WmiObject -Class Win32_NetworkAdapterConfiguration -ComputerName Server1 | Where {$_.IPEnabled -eq ‘True’}
    (이렇게 하면 원격 컴퓨터 IP 구성 상황을 모두 알 수 있다.)
     

  • 네트워크 어댑터 종류들을 확인해보자.
    Get-WmiObject -Class Win32_NetworkAdapter
    Get-WmiObject -Class Win32_NetworkAdapter | FT name



    Get-WmiObject -Class Win32_NetworkAdapter
    -ComputerName Server1 | FT name


    출처 : http://cloudsns.wordpress.com/category/microsoft/powershell/page/7/

Posted by pegasuss