From the course: Advanced PowerShell: Automating Active Directory Administration

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

AD aliases in PowerShell

AD aliases in PowerShell

- [Content Creator] Aliases in PowerShell are mainly command line commands that can be used in PowerShell. Let's take a look at an example. So I'm in a command line and I can type in the word DIR for directory and it gives me a list of all of my files and folders inside my C drive at the root because I'm at the root, as you can see here. I'm going to clear the screen and now I'm going to switch over to PowerShell. So I'll type in PowerShell and now you can see the PS in front of the C. So I'm instantly in PowerShell, yet I can type the same command and see the same results. It looks a little bit different, but they are the same results. Aliases are just command line commands that are paired with a PowerShell equivalent. For example, DIR is the same as get-childitem. Since there's already an alias for get-childitem, I don't need to do this, but just for an example I'm going to clear the screen and I'm going to…

Contents