Skip to content

Installation

Sander Stad edited this page Oct 8, 2020 · 1 revision

The PowerShell Gallery and the command Install-Module are natively available in Windows 10 and Windows Server 2016.
If you run Windows 7, 8, Server 2012 & below you can either install PackageManagement from powershellgallery.com or simply skip to method 2.

For PowerShell modules there are two ways to install a module. You can either install the module for the entire system or for the current user.

To install the module for the entire system, use an elevated PowerShell window. This will install the module globally for everyone to use on the machine.

Install-Module dbaclone

To install the module for the current user or when you don’t have administrator access to the host you must run the following command

Install-Module dbaclone-Scope CurrentUser