<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Exchange Online PowerShell 1 | Cloud Engineer - Everton Collins</title>
	<atom:link href="https://evertoncollins.com/tag/exchange-online-powershell/feed/" rel="self" type="application/rss+xml" />
	<link>https://evertoncollins.com</link>
	<description>Work by Everton Collins</description>
	<lastBuildDate>Tue, 13 Sep 2016 20:20:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://evertoncollins.com/wp-content/uploads/2015/06/logo1-150x150.png</url>
	<title>Exchange Online PowerShell 1 | Cloud Engineer - Everton Collins</title>
	<link>https://evertoncollins.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Connect to Exchange Online using Windows PowerShell</title>
		<link>https://evertoncollins.com/connect-to-exchange-online-using-windows-powershell/</link>
		
		<dc:creator><![CDATA[Everton]]></dc:creator>
		<pubDate>Tue, 13 Sep 2016 20:17:42 +0000</pubDate>
				<category><![CDATA[Exchange Online]]></category>
		<category><![CDATA[Office 365]]></category>
		<category><![CDATA[Connect to Exchange Online - Using Windows PowerShell]]></category>
		<category><![CDATA[Exchange Online PowerShell]]></category>
		<category><![CDATA[Import-PSSession $Session]]></category>
		<category><![CDATA[Remove-PSSession $Session]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<guid isPermaLink="false">https://www.evertoncollins.com/?p=630</guid>

					<description><![CDATA[<p>There is tremendous value in Exchange Online using Windows PowerShell  to manage Microsoft Exchange Online, Skype for Business, SharePoint Online and various other services with PowerShell. [adrotate banner=&#8221;5&#8243;] PowerShell (including Windows PowerShell and PowerShell Core) is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on [&#8230;]</p>
<p>The post <a href="https://evertoncollins.com/connect-to-exchange-online-using-windows-powershell/">Connect to Exchange Online using Windows PowerShell</a> first appeared on <a href="https://evertoncollins.com">Cloud Engineer - Everton Collins</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>There is tremendous value in Exchange Online using Windows PowerShell  to manage Microsoft Exchange Online, Skype for Business, SharePoint Online and various other services with PowerShell.</p>
<p style="text-align: center;">[adrotate banner=&#8221;5&#8243;]</p>
<p><a href="https://en.wikipedia.org/wiki/PowerShell" target="_blank"><b>PowerShell</b></a> (including <b>Windows PowerShell</b> and <b>PowerShell Core</b>) is a task automation and configuration management framework from <a title="Microsoft" href="https://en.wikipedia.org/wiki/Microsoft">Microsoft</a>, consisting of a <a title="Command-line interface" href="https://en.wikipedia.org/wiki/Command-line_interface">command-line</a> <a title="Shell (computing)" href="https://en.wikipedia.org/wiki/Shell_%28computing%29">shell</a> and associated <a title="Scripting language" href="https://en.wikipedia.org/wiki/Scripting_language">scripting language</a> built on the <a title=".NET Framework" href="https://en.wikipedia.org/wiki/.NET_Framework">.NET Framework</a> used to Connect to Exchange Online using Windows PowerShell.</p>
<h3>Exchange Online using Windows PowerShell</h3>
<ol>
<li><strong>On your local computer, open Windows PowerShell and run the following command.</strong>
<ul>
<li>$UserCredential = Get-Credential<img fetchpriority="high" decoding="async" class="aligncenter wp-image-639 size-full" src="https://www.evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-01.png" alt="$UserCredential = Get-Credential - Exchange Online using Windows PowerShell " width="966" height="148" srcset="https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-01.png 966w, https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-01-300x46.png 300w, https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-01-768x118.png 768w" sizes="(max-width: 966px) 100vw, 966px" /><br />
In the <strong>Windows PowerShell Credential Request</strong> dialog box, type your Office 365 user name and password, and then click <strong>OK</strong>.<img decoding="async" class="aligncenter wp-image-645 size-large" src="https://www.evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-01b-1024x404.png" alt="PowerShell Pop-up Box - Exchange Online using Windows PowerShell " width="1024" height="404" srcset="https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-01b-1024x404.png 1024w, https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-01b-300x118.png 300w, https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-01b-768x303.png 768w, https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-01b.png 1910w" sizes="(max-width: 1024px) 100vw, 1024px" /></li>
</ul>
</li>
<li><strong>Run the following command.</strong>
<ol>
<li>
<pre>$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri 
https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication 
Basic -AllowRedirection

<img decoding="async" class="aligncenter wp-image-640 size-large" src="https://www.evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-02-1024x81.png" alt="powershell-step-02 - Exchange Online using Windows PowerShell " width="1024" height="81" srcset="https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-02-1024x81.png 1024w, https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-02-300x24.png 300w, https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-02-768x61.png 768w, https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-02.png 1904w" sizes="(max-width: 1024px) 100vw, 1024px" />

</pre>
</li>
</ol>
</li>
<li><strong>Run the following command.</strong>
<ol>
<li>
<pre>Import-PSSession $Session
<img loading="lazy" decoding="async" class="aligncenter wp-image-641 size-large" src="https://www.evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-03-1024x169.png" alt="powershell-step-03 - Exchange Online using Windows PowerShell " width="1024" height="169" srcset="https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-03-1024x169.png 1024w, https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-03-300x49.png 300w, https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-03-768x126.png 768w, https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-03.png 1902w" sizes="(max-width: 1024px) 100vw, 1024px" /></pre>
</li>
<li>
<p style="margin: 0in; font-family: Calibri; font-size: 11.0pt;">Connect-MsolService -Credential $UserCredential.</p>
</li>
<li>Be sure to disconnect the remote PowerShell session when you&#8217;re finished. If you close the Windows PowerShell window without disconnecting the session, you could use up all the remote PowerShell sessions available to you, and you&#8217;ll need to wait for the sessions to expire. To disconnect the remote PowerShell session, run the following command.
<pre>Remove-PSSession $Session</pre>
</li>
</ol>
</li>
<li><strong>How do you know this worked?</strong>
<ol>
<li>
<div class="sectionblock">
<p>After Step 3, the Exchange Online cmdlets are imported into your local Windows PowerShell session and tracked by a progress bar. If you don’t receive any errors, you connected successfully. A quick test is to run an Exchange Online cmdlet, for example, <strong>Get-Mailbox</strong>, and see the results. (shows the Server your on and Quota)<br />
<img loading="lazy" decoding="async" class="aligncenter wp-image-646 size-large" src="https://www.evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-04-Get-Mailbox-1024x259.png" alt="Get-Mailbox Command - Exchange Online using Windows PowerShell " width="1024" height="259" srcset="https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-04-Get-Mailbox-1024x259.png 1024w, https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-04-Get-Mailbox-300x76.png 300w, https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-04-Get-Mailbox-768x194.png 768w, https://evertoncollins.com/wp-content/uploads/2016/09/PowerShell-Step-04-Get-Mailbox.png 1382w" sizes="(max-width: 1024px) 100vw, 1024px" /></p>
<p>If you receive errors, check the following requirements:</p>
<ul>
<li>A common problem is an incorrect password. Run the steps again and pay close attention to the user name and password you enter in Step 1.</li>
<li>To help prevent denial-of-service (DoS) attacks, you&#8217;re limited to three open remote PowerShell connections to your Exchange Online organization.</li>
<li>The account you use to connect to Exchange Online must be enabled for remote PowerShell. For more information, see <a href="https://technet.microsoft.com/en-us/library/jj984292%28v=exchg.160%29.aspx" target="_blank">Enable or disable access to Exchange Online PowerShell</a>.</li>
<li>TCP port 80 traffic needs to be open between your local computer and Office 365. It&#8217;s probably open, but it’s something to consider if your organization has a restrictive Internet access policy.</li>
</ul>
<p>&nbsp;</p>
</div>
</li>
</ol>
</li>
</ol>
<h3>A few Sample Commands to Test with your Connection</h3>
<p>Below are a few other commands you can try out once your connected to Microsoft Exchange Online (Connect to Exchange Online using Windows PowerShell).</p>
<p>&nbsp;</p>
<ol start="5">
<li>Get-MsolUser &#8211; <b>Lists all users</b></li>
</ol>
<ol start="6">
<li>Remove-MsolUser -UserPrincipalName name@domain.com<b>   &#8211; Remove User/s<br />
</b></li>
</ol><p>The post <a href="https://evertoncollins.com/connect-to-exchange-online-using-windows-powershell/">Connect to Exchange Online using Windows PowerShell</a> first appeared on <a href="https://evertoncollins.com">Cloud Engineer - Everton Collins</a>.</p>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
