Install dbatools on a computer without internet access #7984
Replies: 5 comments 3 replies
-
Thank you for taking the time to write this up and share it here from your original excellent tweet. Much appreciated! |
Beta Was this translation helpful? Give feedback.
-
You want to update dbatools to a new version? No problem. Just download the new nupkg file and place it next to the old in you local repository. Then you can use |
Beta Was this translation helpful? Give feedback.
-
Awesome, thank you so much andreas! |
Beta Was this translation helpful? Give feedback.
-
See also my blog post about that: https://blog.ordix.de/installation-and-use-of-dbatools-on-a-computer-without-internet-connection |
Beta Was this translation helpful? Give feedback.
-
Walking through this I am getting an error and was hoping you could assist with this. Thanks, |
Beta Was this translation helpful? Give feedback.
-
If you need to install dbatools on a computer without internet access, you only need two files: The NuGet-DLL and the dbatools-NuGet-package.
You can get the NuGet-DLL Microsoft.PackageManagement.NuGetProvider.dll from any other system where you installed NuGet with an internet connection or download it from: https://onegetcdn.azureedge.net/providers/Microsoft.PackageManagement.NuGetProvider-2.8.5.208.dll and rename the file.
You download the dbatools-NuGet-package from https://www.powershellgallery.com/packages/dbatools using the "Manual Download":
Then you need to transfer those two files to the target computer and only have to change the following code to your needs:
Let me share my screenshot as a proof of concept:
I worked in a remote session on a windows server core, so to run it locally you probably need an elevated PowerShell.
See also my blog post for even more information: https://blog.ordix.de/installation-and-use-of-dbatools-on-a-computer-without-internet-connection
Beta Was this translation helpful? Give feedback.
All reactions