Powershell args acts as a placeholder
Function test-conn {Test-Connection-Count 3-ComputerName $args#args acts as a placeholder, which must be named after args, otherwise it will not be recognized An exception will be thrown} Set-Alias tc Test-Conntc localhost result tc localhostSource Destination IPV4Address IPV6Address-5CD60537FF localhost 127.0.0.1:: 1 5CD60537FF localhost 127.0.0.1:: 1 5CD60537FF localhost 127.0.0.1:: 1
Please follow the following Wechat official account for more IT information: