DBATools – powershell

Taking notes – some example:

Download and Install to my computer:

https://dbatools.io/download/

­

Set-PSRepository -Name PSGallery -InstallationPolicy Trusted

Install-Module dbatools

if necessary:
update-module dbatools

OFFLINE:

Copy this directory to offline server:
C:\Program Files\WindowsPowerShell\Modules\dbatools

Set-Location ‘C:\Program Files\WindowsPowerShell\Modules\dbatools’ ##.\install.ps1  ## with internet access
Get-ChildItem -Recurse | Unblock-File

Continue reading “DBATools – powershell”