2 Installing dbatools
In this chapter, we’ll cover minimum requirements, various installation methods, and gotchas. Understanding how to install dbatools will not only enable you to use our toolset, it will also enable you to install any other PowerShell module in the PowerShell Gallery.
The old saying, “Before you do anything, you have to do something first,” holds true for installing dbatools and other PowerShell modules. Specifically, you may have to execute the following two commands first:
-
Set-ExecutionPolicy
-
Set-PSRepository
If you have not yet modified your default execution policy, or trusted Microsoft’s PowerShell Gallery using Set-PSRepository
, we’ll help guide you through these steps. If you are already familiar with the PowerShell ...
Get Learn dbatools in a Month of Lunches now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.