From the course: Learning PowerShell for Windows Server Administration

Unlock this course with a free trial

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

Challenge: PowerShell components

Challenge: PowerShell components

(upbeat music) - [Instructor] We've come to the end of another module and now it's time to use the knowledge that you learned in these demonstrations and discussions on how to utilize them in your Sysadmin job. First, you're going to create an alias. You saw in some demonstrations on how and why to create an alias, and you're going to use the Get-UserInfo commandlet to point you to Get-ADUser. The Get-UserInfo commandlet does not exist, so you're going to create an alias that is going to be called Get-UserInfo, and you're going to point it to the Get-ADUser so it gives the exact same information as Get-ADUser. You'll be creating a lot of aliases in your career as a Sysadmin or network admin, so it's great to get some experience on creating these aliases. Next, you're going to run the new alias commandlet and just make sure it has the correct output as Get-ADUser. Next, you're going to open up PowerShell ISE, the integrated scripting environment as the administrator. You want to open…

Contents