{"id":4591,"date":"2019-09-27T11:41:08","date_gmt":"2019-09-27T03:41:08","guid":{"rendered":"http:\/\/i-services.info\/mscloud\/?p=4591"},"modified":"2020-02-27T09:41:25","modified_gmt":"2020-02-27T01:41:25","slug":"exchange-online-%e7%ae%a1%e7%90%86%e8%80%85%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-powershell-%e9%80%a3%e7%b7%9a","status":"publish","type":"post","link":"http:\/\/i-services.info\/mscloud\/?p=4591","title":{"rendered":"Exchange Online \u7ba1\u7406\u8005\u5982\u4f55\u4f7f\u7528 PowerShell \u9023\u7dda"},"content":{"rendered":"<p>1. \u4ee5\u6ed1\u9f20\u53f3\u9375\u9ede\u9078\u300cWindows PowerShell\u300d<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/i-services.info\/mscloud\/wp-content\/uploads\/2019\/09\/clip_image002.jpg\"><img loading=\"lazy\" title=\"clip_image002\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"clip_image002\" src=\"http:\/\/i-services.info\/mscloud\/wp-content\/uploads\/2019\/09\/clip_image002_thumb.jpg\" width=\"557\" height=\"672\"><\/a>  <\/p>\n<p>&nbsp; <\/p>\n<p>2. \u8f38\u5165\u300cSet-ExecutionPolicy RemoteSigned\u300d\uff0c\u57f7\u884c\u539f\u5247\u8b8a\u66f4\u8f38\u5165\u300cA\u300d<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/i-services.info\/mscloud\/wp-content\/uploads\/2019\/09\/clip_image004-1.jpg\"><img loading=\"lazy\" title=\"clip_image004\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"clip_image004\" src=\"http:\/\/i-services.info\/mscloud\/wp-content\/uploads\/2019\/09\/clip_image004_thumb-1.jpg\" width=\"863\" height=\"333\"><\/a>  <\/p>\n<p>&nbsp; <\/p>\n<p>3. \u8f38\u5165\u300c$UserCredential = Get-Credential\u300d\uff0c\u63a5\u8457\u8f38\u5165 Exchange Online \u7ba1\u7406\u54e1\u5e33\u865f\u5bc6\u78bc\uff0c\u6700\u5f8c\u9ede\u9078\u300c\u78ba\u5b9a\u300d<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/i-services.info\/mscloud\/wp-content\/uploads\/2019\/09\/clip_image006-1.jpg\"><img loading=\"lazy\" title=\"clip_image006\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"clip_image006\" src=\"http:\/\/i-services.info\/mscloud\/wp-content\/uploads\/2019\/09\/clip_image006_thumb-1.jpg\" width=\"864\" height=\"535\"><\/a>  <\/p>\n<p>&nbsp; <\/p>\n<p>4. \u8f38\u5165\u300c$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri <a href=\"https:\/\/outlook.office365.com\/powershell-liveid\/\">https:\/\/outlook.office365.com\/powershell-liveid\/<\/a> -Credential $UserCredential -Authentication Basic -AllowRedirection\u300d  <\/p>\n<p>&nbsp; <\/p>\n<p><a href=\"http:\/\/i-services.info\/mscloud\/wp-content\/uploads\/2019\/09\/clip_image008-1.jpg\"><img loading=\"lazy\" title=\"clip_image008\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"clip_image008\" src=\"http:\/\/i-services.info\/mscloud\/wp-content\/uploads\/2019\/09\/clip_image008_thumb-1.jpg\" width=\"863\" height=\"333\"><\/a>  <\/p>\n<p>&nbsp; <\/p>\n<p>5. \u8f38\u5165\u300cImport-PSSession $Session -DisableNameChecking\u300d\uff0c\u6b63\u5728\u5efa\u7acb\u6a21\u7d44  <\/p>\n<p>&nbsp; <\/p>\n<p><a href=\"http:\/\/i-services.info\/mscloud\/wp-content\/uploads\/2019\/09\/clip_image010-1.jpg\"><img loading=\"lazy\" title=\"clip_image010\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"clip_image010\" src=\"http:\/\/i-services.info\/mscloud\/wp-content\/uploads\/2019\/09\/clip_image010_thumb-1.jpg\" width=\"863\" height=\"333\"><\/a>  <\/p>\n<p>&nbsp;<\/p>\n<p>6. \u5efa\u7acb\u5b8c\u6210\uff0c\u5373\u53ef\u4f9d\u7167\u9700\u6c42\u4f7f\u7528\u7ba1\u7406\u6307\u4ee4<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/i-services.info\/mscloud\/wp-content\/uploads\/2019\/09\/clip_image012.jpg\"><img loading=\"lazy\" title=\"clip_image012\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"clip_image012\" src=\"http:\/\/i-services.info\/mscloud\/wp-content\/uploads\/2019\/09\/clip_image012_thumb.jpg\" width=\"863\" height=\"333\"><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u4ee5\u6ed1\u9f20\u53f3\u9375\u9ede\u9078\u300cWindows PowerShell\u300d &nbsp; &nbsp; 2. \u8f38\u5165\u300cSet-ExecutionPolicy RemoteSigned\u300d\uff0c\u57f7\u884c\u539f\u5247\u8b8a\u66f4\u8f38\u5165\u300cA\u300d &#038;nb&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":4580,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[77],"tags":[],"_links":{"self":[{"href":"http:\/\/i-services.info\/mscloud\/index.php?rest_route=\/wp\/v2\/posts\/4591"}],"collection":[{"href":"http:\/\/i-services.info\/mscloud\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/i-services.info\/mscloud\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/i-services.info\/mscloud\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"http:\/\/i-services.info\/mscloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4591"}],"version-history":[{"count":0,"href":"http:\/\/i-services.info\/mscloud\/index.php?rest_route=\/wp\/v2\/posts\/4591\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/i-services.info\/mscloud\/index.php?rest_route=\/wp\/v2\/media\/4580"}],"wp:attachment":[{"href":"http:\/\/i-services.info\/mscloud\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/i-services.info\/mscloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4591"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/i-services.info\/mscloud\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}