{"id":114048,"date":"2020-06-06T21:57:27","date_gmt":"2020-06-06T13:57:27","guid":{"rendered":"http:\/\/4563.org\/?p=114048"},"modified":"2020-06-06T21:57:27","modified_gmt":"2020-06-06T13:57:27","slug":"%e4%b8%ba%e5%95%a5%e7%9a%84%e6%88%91powershell%e5%ae%89%e8%a3%85msonline%e6%80%bb%e6%8a%b1%e9%94%99","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=114048","title":{"rendered":"\u4e3a\u5565\u7684\u6211powershell\u5b89\u88c5MSOnline\u603b\u62b1\u9519"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>deeprobe<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u4e3a\u5565\u7684\u6211powershell\u5b89\u88c5MSOnline\u603b\u62b1\u9519<\/h3>\n<p>  \t\t\u5c1d\u8bd5\u6279\u91cf\uff0c\u5361\u5728\u8fd9\u91cc\u5c31\u662f\u8fc7\u4e0d\u53bb\u3002\u63d0\u793a\uff1a<br \/>  PackageManagementInstall-Package : Package &#8216;MSOnline&#8217; failed to be installed because: \u6307\u5b9a\u7684\u8f6c\u6362\u65e0\u6548\u3002<br \/>  \u6240\u5728\u4f4d\u7f6e C:Program FilesWindowsPowerShellModulesPowerShellGet1.0.0.1PSModule.psm1:1809 \u5b57\u7b26: 21<br \/>  + &#8230;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; $null = PackageManagementInstall-Package @PSBoundParameters<br \/>  +&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br \/>  &nbsp; &nbsp; + CategoryInfo&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; : InvalidResult: (MSOnline:String) \uff0cException<br \/>  &nbsp; &nbsp; + FullyQualifiedErrorId : Package &#8216;{0}&#8217; failed to be installed because: {1},Microsoft.PowerShell.PackageManagement<br \/>  &nbsp; &nbsp;.Cmdlets.InstallPackage<\/p>\n<p>  \u600e\u4e48\u89e3\u51b3\uff0c\u70e6\u8bf7\u5927\u4f6c\u6307\u70b9\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u55f7\u55f7<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6211\u662f\u6765\u770b\u7b54\u6848\u7684\uff0c\u6ca1\u60f3\u5230\u5c31\u53ea\u6709\u6211\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>gcp<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 gcp \u4e8e 2020-6-6 22:25 \u7f16\u8f91 <\/p>\n<p> \u597d\u50cf\u662fPowerShellGet 1.0.0.1\u7248\u672c\u8fc7\u4f4e\u3002<\/p>\n<p>  \u88c5poweshell 7 \u8bd5\u8bd5<br \/>  https:\/\/github.com\/PowerShell\/PowerShell\/releases\/download\/v7.0.1\/PowerShell-7.0.1-win-x64.msi<\/p>\n<p>  https:\/\/docs.microsoft.com\/zh-cn\/powershell\/scripting\/install\/installing-powershell-core-on-windows?view=powershell-7\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>deeprobe \u5927\u4f6c\u6709\u8bdd\u8bf4 : &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/114048"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=114048"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/114048\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=114048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=114048"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=114048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}