Update dbatools and keeping only the latest version using Update-Module and Uninstall-Module #7841
andreasjordan
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Here is a one-liner to get the latest version from the PowerShell Gallery and then remove all the old versions from the system:
Or if you like more shorter lines:
Run this in a fresh elevated PowerShell session.
Beta Was this translation helpful? Give feedback.
All reactions