{"id":75381,"date":"2015-11-29T11:59:00","date_gmt":"2015-11-29T11:59:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2015\/11\/29\/powertip-update-module-from-powershell-gallery\/"},"modified":"2019-02-18T09:20:51","modified_gmt":"2019-02-18T16:20:51","slug":"powertip-update-module-from-powershell-gallery","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-update-module-from-powershell-gallery\/","title":{"rendered":"PowerTip: Update Module from PowerShell Gallery"},"content":{"rendered":"<p><b>Summary<\/b>: Boe Prox shows how to update a module from the Windows PowerShell Gallery.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Question\">&nbsp;How can I update a module from the Windows PowerShell Gallery?<\/p>\n<p style=\"margin-left:30px\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Answer\">&nbsp;Run the following command to check for an update to the module and install the update if one is found:<\/p>\n<p style=\"margin-left:60px\">Update-Module &ndash;Name PoshRSJob &ndash;Verbose<\/p>\n<p style=\"margin-left:60px\">VERBOSE: Checking for updates for module &#8216;PoshRSJob&#8217;.<\/p>\n<p style=\"margin-left:60px\">VERBOSE: The specified Location is &#8216;https:\/\/www.powershellgallery.com\/api\/v2\/&#8217; and PackageManagementProvider <br>is &#8216;NuGet&#8217;.<\/p>\n<p style=\"margin-left:60px\">VERBOSE: Getting the provider object for the PackageManagement Provider &#8216;NuGet&#8217;.<\/p>\n<p style=\"margin-left:60px\">VERBOSE: The specified Location is &#8216;https:\/\/www.powershellgallery.com\/api\/v2\/&#8217; and PackageManagementProvider<br> is &#8216;NuGet&#8217;.<\/p>\n<p style=\"margin-left:60px\">VERBOSE: Performing the operation &#8220;Update-Module&#8221; on target &#8220;Version &#8216;1.5.1.0&#8217; of module &#8216;PoshRSJob&#8217;, updating <br>to version &#8216;1.5.5.0&#8217;&#8221;.<\/p>\n<p style=\"margin-left:60px\">VERBOSE: The specified module will be installed in &#8216;C:\\Program Files\\WindowsPowerShell\\Modules&#8217;.<\/p>\n<p style=\"margin-left:60px\">VERBOSE: An update for the module &#8216;PoshRSJob&#8217; was found with version &#8216;1.5.5.0&#8217;.<\/p>\n<p style=\"margin-left:60px\">VERBOSE: The specified Location is &#8216;NuGet&#8217; and PackageManagementProvider is &#8216;NuGet&#8217;.<\/p>\n<p style=\"margin-left:60px\">VERBOSE: Downloading module &#8216;PoshRSJob&#8217; with version &#8216;1.5.5.0&#8217; from the repository<\/p>\n<p style=\"margin-left:60px\">&#8216;https:\/\/www.powershellgallery.com\/api\/v2\/&#8217;.<\/p>\n<p style=\"margin-left:60px\">VERBOSE: NuGet: Installing &#8216;PoshRSJob 1.5.5.0&#8217;.<\/p>\n<p style=\"margin-left:60px\">VERBOSE: NuGet: Successfully installed &#8216;PoshRSJob 1.5.5.0&#8217;.<\/p>\n<p style=\"margin-left:60px\">VERBOSE: Module &#8216;PoshRSJob&#8217; was installed successfully.<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Boe Prox shows how to update a module from the Windows PowerShell Gallery. &nbsp;How can I update a module from the Windows PowerShell Gallery? &nbsp;Run the following command to check for an update to the module and install the update if one is found: Update-Module &ndash;Name PoshRSJob &ndash;Verbose VERBOSE: Checking for updates for module [&hellip;]<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[162,356,650,3,45],"class_list":["post-75381","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-boe-prox","tag-powertip","tag-runspace","tag-scripting-guy","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Boe Prox shows how to update a module from the Windows PowerShell Gallery. &nbsp;How can I update a module from the Windows PowerShell Gallery? &nbsp;Run the following command to check for an update to the module and install the update if one is found: Update-Module &ndash;Name PoshRSJob &ndash;Verbose VERBOSE: Checking for updates for module [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/75381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=75381"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/75381\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=75381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=75381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=75381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}