It is pretty easy to see why PowerShell is so popular, it automates those repetitive tasks that we have to do everyday! But isn’t it silly that this automation adds additional repetitive tasks for us? Take a look at these two scripts to see what I mean:
Both of those scripts make use of the Quest AD cmdlets. If I wanted to run either of these scripts, I would need to run Add-PSSnapinQuest.ActiveRoles.ADManagement to import the Quest AD cmdlets first. When I close and open PowerShell, I have to run the same command again! If I wanted to use any other extension, such as the MDT database tools, I would need to run a similar command.
Lucky for us, we can use the PowerShell Profile to automate this process! Let’s find out how!