{"id":26,"date":"2018-02-14T00:54:00","date_gmt":"2018-02-14T00:54:00","guid":{"rendered":"http:\/\/juliomonteiro.net\/?p=26"},"modified":"2018-02-14T00:55:43","modified_gmt":"2018-02-14T00:55:43","slug":"conectando-no-office365-via-powershell","status":"publish","type":"post","link":"https:\/\/juliomonteiro.net\/?p=26","title":{"rendered":"Conectando no Office365 via PowerShell."},"content":{"rendered":"<p>$livecred = Get-Credential<\/p>\n<p>$Session = New-PSSession -ConfigurationName Microsoft.Exchange \u2013ConnectionUri <a href=\"https:\/\/ps.outlook.com\/powershell\/\">https:\/\/ps.outlook.com\/powershell\/<\/a> -Credential $LiveCred -Authentication Basic \u2013AllowRedirection<\/p>\n<p>Set-ExecutionPolicy RemoteSigned -Force<\/p>\n<p>Import-PSSession $Session<\/p>\n<p>Connect-MsolService -Credential $livecred<\/p>\n","protected":false},"excerpt":{"rendered":"<p>$livecred = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange \u2013ConnectionUri https:\/\/ps.outlook.com\/powershell\/ -Credential $LiveCred -Authentication Basic \u2013AllowRedirection&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,3],"tags":[],"_links":{"self":[{"href":"https:\/\/juliomonteiro.net\/index.php?rest_route=\/wp\/v2\/posts\/26"}],"collection":[{"href":"https:\/\/juliomonteiro.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/juliomonteiro.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/juliomonteiro.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/juliomonteiro.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=26"}],"version-history":[{"count":1,"href":"https:\/\/juliomonteiro.net\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":27,"href":"https:\/\/juliomonteiro.net\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions\/27"}],"wp:attachment":[{"href":"https:\/\/juliomonteiro.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/juliomonteiro.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/juliomonteiro.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}