 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to use function Alias in PowerShell?
Like the Parameter alias, we can also set the function alias name to refer to the function as a different name.
Example
function Test-NewConnection{    [CmdletBinding()]    [Alias("TC")]    param(       [Parameter(Mandatory=$true)]       [String]$Server    )    Write-Output "Testing $server connection" } Now, instead of the Test-NewConnection function name, you can directly use the function alias “TC” as shown below.
PS C:\> Tc -Server "Test1-win2k16" Testing Test1-win2k16 connection
Advertisements
 