Comments on: walk-thru: installing modules from the powershell gallery https://dbatools.io/soup2nutz/ the community's sql powershell module Tue, 09 Jul 2019 22:03:49 +0000 hourly 1 https://wordpress.org/?v=5.3.4 By: Dan Thompson https://dbatools.io/soup2nutz/#comment-68509 Tue, 09 Jul 2019 22:03:49 +0000 https://dbatools.io/?p=6406#comment-68509 Thanks Patrick – this helped me greatly when installing behind a proxy!! 🙂

]]>
By: Marian https://dbatools.io/soup2nutz/#comment-61084 Thu, 04 Apr 2019 09:53:13 +0000 https://dbatools.io/?p=6406#comment-61084 Not working that ways. It’s a bit deeper than that:
https://stackoverflow.com/a/54563398

]]>
By: Vikram https://dbatools.io/soup2nutz/#comment-45828 Thu, 31 Jan 2019 11:45:06 +0000 https://dbatools.io/?p=6406#comment-45828 How to add the server inventory $servers ?

]]>
By: Chrissy LeMaire https://dbatools.io/soup2nutz/#comment-34428 Thu, 13 Dec 2018 19:34:16 +0000 https://dbatools.io/?p=6406#comment-34428 That’d be a good blog post, i’ll put it on my list then add an addendum to this post. What you’ll likely want to do is `Get-Process *powershel* | Stop-Process` then try updating after reopening.

]]>
By: Ed Walsh https://dbatools.io/soup2nutz/#comment-34192 Wed, 12 Dec 2018 19:08:18 +0000 https://dbatools.io/?p=6406#comment-34192 How about updating instructions? I know its, Open Powershell as an Admin and enter:
Update-Module -name dbatools

But for those of us that get the dreaded message:
PS C:\Windows\system32> update-module -name dbatools
WARNING: The version ‘0.9.411’ of module ‘dbatools’ is currently in use. Retry the operation after closing the applications.

And you have no application open and have closed and restarted PS to no success.

]]>
By: Phil Smith https://dbatools.io/soup2nutz/#comment-19716 Wed, 10 Oct 2018 15:29:49 +0000 https://dbatools.io/?p=6406#comment-19716 When I attempt to trust the repository, it isn’t found.

PS C:\Windows\system32> Set-PSRepository -Name PSGallery -installationPolicy Trusted
Set-PSRepository : No repository with the name ‘PSGallery’ was found.
At line:1 char:1
+ Set-PSRepository -Name PSGallery -installationPolicy Trusted
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (PSGallery:String) [Set-PSRepository], InvalidOperationException
+ FullyQualifiedErrorId : RepositoryNotFound,Set-PSRepository

Please can you give us some troubleshooting advice ? Very New to using Powershell !

]]>
By: Installing dbachecks – dbatools https://dbatools.io/soup2nutz/#comment-1473 Thu, 22 Feb 2018 12:02:15 +0000 https://dbatools.io/?p=6406#comment-1473 […] For a step-by-step tutorial, check out walk-thru: installing modules from the powershell gallery. […]

]]>
By: Je suis DBA, Powershell est mon ami! | https://dbatools.io/soup2nutz/#comment-1404 Fri, 26 Jan 2018 17:16:25 +0000 https://dbatools.io/?p=6406#comment-1404 […] commencer, et selon la documentation officielle,  il faut valider que vous executez au moins la version 3 de powershell.  Mais personnellement, […]

]]>
By: Chrissy LeMaire https://dbatools.io/soup2nutz/#comment-1188 Fri, 01 Dec 2017 13:26:37 +0000 https://dbatools.io/?p=6406#comment-1188 Awesome tips, thanks so much, Patrick!

]]>
By: Patrick Flynn https://dbatools.io/soup2nutz/#comment-1067 Fri, 03 Nov 2017 01:24:10 +0000 https://dbatools.io/?p=6406#comment-1067 One scenario that is not commonly covered is requirement to install Powershell Modules when behind a corporate firewall. This will cause the Install-Module and other such commands from the Gallery to fail.
After some searching I found the adding the following code to a script before calling the Install-Module was able to resolve this issue

# Update Modules from Behind a Proxy
[system.net.webrequest]::defaultwebproxy = new-object system.net.webproxy(‘http://[YourProxyDNS]:[yourProxyPort]’)
[system.net.webrequest]::defaultwebproxy.credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
[system.net.webrequest]::defaultwebproxy.BypassProxyOnLocal = $true

You may also need to initially run the following to get Install-Module Working

# May need to be run initially to install necessary packages for Install-Module

Register-PSRepository -Default

Install-PackageProvider Nuget –force –verbose
Install-Module –Name PowerShellGet –Force –Verbose

]]>