Powershell Lab - AidanP017/Aidan-SYS-255 GitHub Wiki

Overview

In this lab, we performed scripting tasks using Windows Powershell across our AD, FS, and WKS machines.

How to Create an Alias in Powershell

To create an alias on Powershell, take the following steps:

  • Choose a command to associate an alias with (say nslookup).
  • Enter the following command to configure an alias for the chosen command:
    • Set-Alias -Name nslookup -value nslookup
  • Now, run the chosen command as you normally would.
    • You should receive an error message indicating that the chosen command is not recognized by the system. This is the alias at work.