Taking notes – some example:
Download and Install to my computer:
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