PS C:\> $result = get-wmiobject -query "select * from win32_pingstatus where address='127.0.0.1'"
PS C:\> $result.StatusCode
結果:
0 表示成功
相關代碼解釋可以參閱http://msdn2.microsoft.com/en-us/library/aa394350.aspx

arrow
arrow
    全站熱搜

    ayowu 發表在 痞客邦 留言(0) 人氣()