<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Thomas Ashworth</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/thomas_ashworth/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/thomas_ashworth/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:49:01 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Office 365 Script: Append additional proxy address to existing cloud identity</title>
      <link>https://docs.microsoft.com/archive/blogs/thomas_ashworth/office-365-script-append-additional-proxy-address-to-existing-cloud-identity</link>
      <pubDate>Thu, 28 Jun 2012 16:31:00 GMT</pubDate>
      <dc:creator><![CDATA[Thomas Ashworth]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/thomas_ashworth/2012/06/28/office-365-script-append-additional-proxy-address-to-existing-cloud-identity/</guid>
      <description><![CDATA[What more can be said other than the title? &nbsp;Enjoy&hellip;&nbsp;&nbsp;:)
Read the help...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">What more can be said other than the title? &nbsp;Enjoy&hellip;&nbsp;&nbsp;:)</span></span></p>
<p><span style="font-family: Calibri;" face="Calibri">Read the help information for details on how to execute the script.</span></p>
<p><span style="font-family: Calibri;" face="Calibri">Get-help .\SetMailbox_AppendAdditionalProxyAddress_FromCSV.ps1 -full</span></p>
<p><span style="font-family: Calibri;" face="Calibri">A copy of the script can be downloaded by clicking on the link below.</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/telligent.evolution.components.attachments/01/9288/00/00/03/50/65/66/SetMailbox_AppendProxyAddress_FromCSV.ps1" original-url="https://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-9288-00-00-03-50-65-66/SetMailbox_5F00_AppendProxyAddress_5F00_FromCSV.ps1">SetMailbox_AppendProxyAddress_FromCSV.ps1</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Office 365 Script: Create cloud identities by referencing a CSV file</title>
      <link>https://docs.microsoft.com/archive/blogs/thomas_ashworth/office-365-script-create-cloud-identities-by-referencing-a-csv-file</link>
      <pubDate>Thu, 28 Jun 2012 14:48:00 GMT</pubDate>
      <dc:creator><![CDATA[Thomas Ashworth]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/thomas_ashworth/2012/06/28/office-365-script-create-cloud-identities-by-referencing-a-csv-file/</guid>
      <description><![CDATA[It&rsquo;s easy to think in terms of enterprise deployments and come up with solutions to fit those...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">It&rsquo;s easy to think in terms of enterprise deployments and come up with solutions to fit those scenarios.&nbsp; Then, low and behold, a day comes along when you have a need to provision users without using DirSync!&nbsp; It&rsquo;s doubtful that most of us would want to create users manually.&nbsp; So, if you fall into this scenario and have a need to scriptomatically create users, then feel free to use this script as a way to provision your one&rsquo;s, ten&rsquo;s, hundred&rsquo;s, or whatever number of users as cloud identities (not federated identities).&nbsp; Once the identities are provisioned, you will still need to assign licenses to them and distribute passwords.&nbsp; Fortunately, this script will save the automatically generated passwords to a file for easy reference later when you are ready to distribute them to your user population.</span></span></p>
<p><span style="font-family: Calibri;" face="Calibri">Read the help information for details on how to execute the script.</span></p>
<p><span style="font-family: Calibri;" face="Calibri">Get-help .\<span style="font-size: small;" size="3"> NewMsolUser_FromCSV.ps1 -full</span></span></p>
<p><span style="font-family: Calibri;" face="Calibri">A copy of the script can be downloaded by clicking on the link below.</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/telligent.evolution.components.attachments/01/9288/00/00/03/50/65/49/NewMsolUser_FromCSV.ps1" original-url="https://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-9288-00-00-03-50-65-49/NewMsolUser_5F00_FromCSV.ps1">NewMsolUser_FromCSV.ps1</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Office 365 Script: Count total user, group, and contact objects in on-premises Active Directory forest in preparation for deploying DirSync</title>
      <link>https://docs.microsoft.com/archive/blogs/thomas_ashworth/office-365-script-count-total-user-group-and-contact-objects-in-on-premises-active-directory-forest-in-preparation-for-deploying-dirsync</link>
      <pubDate>Fri, 13 Apr 2012 08:21:00 GMT</pubDate>
      <dc:creator><![CDATA[Thomas Ashworth]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/thomas_ashworth/2012/04/13/office-365-script-count-total-user-group-and-contact-objects-in-on-premises-active-directory-forest-in-preparation-for-deploying-dirsync/</guid>
      <description><![CDATA[So, you are preparing to deploy the Directory Synchronization tool for Office 365 and are looking...]]></description>
      <content:encoded><![CDATA[<p>So, you are preparing to deploy the Directory Synchronization tool for Office 365 and are looking for a PowerShell script that will count all of the users, groups, and contacts in the on-premises Active Directory.&nbsp; First, I should point out that the <a href="https://community.office365.com/en-us/f/183/p/2285/8155.aspx">Deployment Readiness Tool</a> that is available for download from the Office 365 community site will count the objects plus perform additional useful checks.&nbsp; If, however, you still want a PowerShell script that is dedicated to only counting objects, then look no further.&nbsp; This script does not require additional software to run (other than PowerShell).&nbsp; It does, however, require read-only access to the on-premises Active Directory.&nbsp; The results of the script will be displayed to the PowerShell console as well as saved to a CSV file.&nbsp; Enjoy&hellip;</p>
<p>A copy of the script can be downloaded by clicking the link below.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/telligent.evolution.components.attachments/01/9288/00/00/03/49/20/42/GetTotalUsersGroupsContactsInForest.ps1" original-url="https://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-9288-00-00-03-49-20-42/GetTotalUsersGroupsContactsInForest.ps1">GetTotalUsersGroupsContactsInForest.ps1</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Office 365 Script: Get Office 365 tenant SKU/license usage information</title>
      <link>https://docs.microsoft.com/archive/blogs/thomas_ashworth/office-365-script-get-office-365-tenant-skulicense-usage-information</link>
      <pubDate>Wed, 11 Apr 2012 15:53:00 GMT</pubDate>
      <dc:creator><![CDATA[Thomas Ashworth]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/thomas_ashworth/2012/04/11/office-365-script-get-office-365-tenant-skulicense-usage-information/</guid>
      <description><![CDATA[So, you already know how to get license usage information from the Microsoft Online Portal, but now...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: Calibri;" face="Calibri"><span style="font-size: small;" size="3">So, you already know how to get license usage information from the Microsoft Online Portal, but now you are looking for a way to accomplish the same thing via PowerShell.&nbsp; Perhaps you are working on a little bit of automation to create a CSV report of usage information that you can send to yourself or team.&nbsp; The following script should be helpful as it will get the license usage information and dump it to a CSV file along with displaying the same results to the PowerShell console.&nbsp; </span>In order for the script to work, you will need to download and install the Microsoft Online Services Module for Windows PowerShell.&nbsp; </span></p>
<p><span style="font-family: Calibri;" face="Calibri">Read the help information for details on how to execute the script.</span></p>
<p><span style="font-family: Calibri;" face="Calibri">Get-help .\GetMsolTenantSkuUsage.ps1 -full</span></p>
<p><span style="font-family: Calibri;" face="Calibri">A copy of the script can be downloaded by clicking on the link below.</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/telligent.evolution.components.attachments/01/9288/00/00/03/49/16/53/GetMsolTenantSkuUsage.ps1" original-url="https://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-9288-00-00-03-49-16-53/GetMsolTenantSkuUsage.ps1">GetMsolTenantSkuUsage.ps1</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Office 365 Script: Get an Office 365 user statistics report</title>
      <link>https://docs.microsoft.com/archive/blogs/thomas_ashworth/office-365-script-get-an-office-365-user-statistics-report</link>
      <pubDate>Wed, 11 Apr 2012 15:39:00 GMT</pubDate>
      <dc:creator><![CDATA[Thomas Ashworth]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/thomas_ashworth/2012/04/11/office-365-script-get-an-office-365-user-statistics-report/</guid>
      <description><![CDATA[Need a way to report mailbox statistics and/or mobile device usage information (plus a few other...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: Calibri;" face="Calibri"><span style="font-size: small;" size="3">Need a way to report mailbox statistics and/or mobile device usage information (plus a few other things) to your various business groups or subsidiaries?&nbsp; Or, perhaps you want to verify that users have been assigned the correct license?&nbsp; Use the following script to generate a little report &ndash; or big report if you have several thousands of users.</span> In order for the script to work, you will need to download and install the Microsoft Online Services Module for Windows PowerShell.&nbsp; Keep in mind that the script can take a while to run across the internet against Office 365 if you have several thousands of users.</span></p>
<p><span style="font-family: Calibri;" face="Calibri">Read the help information for details on how to execute the script.</span></p>
<p><span style="font-family: Calibri;" face="Calibri">Get-help .\GetMsolUserReport.ps1 -full</span></p>
<p><span style="font-family: Calibri;" face="Calibri">A copy of the script can be downloaded by clicking on the link below.</span></p>
<p>&nbsp;</p>
<p>UPDATED 09/07/2012&nbsp;</p>
<p>- fixed a couple of typo's resulting from&nbsp;the previous update</p>
<p>UPDATED 08/17/2012</p>
<p>- fixed an issue where the script would throw an error about variable optimization when run using PowerShell v3 pre-release.</p>
<p>UPDATED 05/07/2012</p>
<p>- fixed an issue where department, company, and manager attribute values were not being saved to the file.&nbsp; Thanks for pointing this out!</p>
<p><br /><span style="font-family: Calibri;" face="Calibri"></span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/telligent.evolution.components.attachments/01/9288/00/00/03/49/16/49/GetMsolUserReport.ps1" original-url="https://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-9288-00-00-03-49-16-49/GetMsolUserReport.ps1">GetMsolUserReport.ps1</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Office 365 Script: Assign Office 365 licenses</title>
      <link>https://docs.microsoft.com/archive/blogs/thomas_ashworth/office-365-script-assign-office-365-licenses</link>
      <pubDate>Wed, 11 Apr 2012 15:03:00 GMT</pubDate>
      <dc:creator><![CDATA[Thomas Ashworth]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/thomas_ashworth/2012/04/11/office-365-script-assign-office-365-licenses/</guid>
      <description><![CDATA[So, you have some users that are now using Office 365, and you need to assign licenses to those...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">So, you have some users that are now using Office 365, and you need to assign licenses to those users.&nbsp; The following script will enable you to license the users by referencing a CSV file, by identifying all unlicensed users, or by identifying only those users that need license reconciliation.&nbsp; If you have migrated some users, but not all, then you may want to use the option to license only those that require license reconciliation so that you do not assign a license to everyone.&nbsp; If, however, you want to license everyone at once (that does not already have a license), then you may want to use the option to license all unlicensed users.&nbsp; In order for the script to work, you will need to download and install the Microsoft Online Services Module for Windows PowerShell.</span></span></p>
<p><span style="font-family: Calibri;" face="Calibri">Read the help information for details on how to execute the script.</span></p>
<p><span style="font-family: Calibri;" face="Calibri">Get-help .\<span style="font-size: small;" size="3">SetMsolUserLicense_AddLicense.ps1 -full</span></span></p>
<p><span style="font-family: Calibri;" face="Calibri">A copy of the script can be downloaded by clicking on the link below.</span></p>
<p><span style="font-family: Calibri; font-size: small;" size="3" face="Calibri">&nbsp;</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/telligent.evolution.components.attachments/01/9288/00/00/03/49/16/43/SetMsolUserLicense_AddLicense.ps1" original-url="https://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-9288-00-00-03-49-16-43/SetMsolUserLicense_5F00_AddLicense.ps1">SetMsolUserLicense_AddLicense.ps1</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Office 365 Script: Get Office 365 Account Sku ID’s and Service Plan Names</title>
      <link>https://docs.microsoft.com/archive/blogs/thomas_ashworth/office-365-script-get-office-365-account-sku-ids-and-service-plan-names</link>
      <pubDate>Wed, 11 Apr 2012 14:46:00 GMT</pubDate>
      <dc:creator><![CDATA[Thomas Ashworth]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/thomas_ashworth/2012/04/11/office-365-script-get-office-365-account-sku-ids-and-service-plan-names/</guid>
      <description><![CDATA[Preparing to assign Office 365 licenses to users, but want to disable certain plans associated with...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Preparing to assign Office 365 licenses to users, but want to disable certain plans associated with the license sku id?&nbsp; Well, before you can do that, you need to know the names of the service plans.&nbsp; Use the following script to get the account sku id&rsquo;s for a tenant and the corresponding service plan names.&nbsp; </span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Read the help information for details on how to execute the script.</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Get-help .\GetAccountSkuIdsAndServicePlanNames.ps1 -full</span></span></p>
<p></p>
<p><span style="font-family: Calibri; font-size: small;" size="3" face="Calibri">&nbsp;A copy of the script can be downloaded by clicking on the link below.</span></p>
<p><span style="font-family: Calibri; font-size: small;" size="3" face="Calibri">&nbsp;</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/telligent.evolution.components.attachments/01/9288/00/00/03/49/16/41/GetMsolAccountSkuIdsAndServicePlanNames.ps1" original-url="https://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-9288-00-00-03-49-16-41/GetMsolAccountSkuIdsAndServicePlanNames.ps1">GetMsolAccountSkuIdsAndServicePlanNames.ps1</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Connect to Office 365 via Remote PowerShell</title>
      <link>https://docs.microsoft.com/archive/blogs/thomas_ashworth/connect-to-office-365-via-remote-powershell</link>
      <pubDate>Wed, 11 Apr 2012 14:28:00 GMT</pubDate>
      <dc:creator><![CDATA[Thomas Ashworth]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/thomas_ashworth/2012/04/11/connect-to-office-365-via-remote-powershell/</guid>
      <description><![CDATA[First, I should point out that there are a couple of ways of connecting to Office 365. One option...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: Calibri;" face="Calibri">First, I should point out that there are a couple of ways of connecting to Office 365. One option involves using the Microsoft Online Service Module for Windows PowerShell cmdlet named Connect-MsolService. This option will connect you to the Office 365 PowerShell web service so that you can execute any of the cmdlets that are included in the MSOnline module. </span></p>
<p><span style="font-family: Calibri;" face="Calibri">Another option involves establishing a remote PowerShell connection to Exchange Online for the purpose of remotely executing native Exchange cmdlets against Office 365. This is the option that I describe as follows.&nbsp; </span></p>
<p><span style="font-family: Calibri;" face="Calibri">Try creating a function and adding it to your PowerShell profile so that you can quickly execute the function from any open PowerShell session when you need it. &nbsp;<span style="font-size: small;" size="3">Start by creating a PowerShell profile if you do not already have one.&nbsp; The following one liner will create an empty PowerShell profile.</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">PS&gt; New-item $profile &ndash;itemtype file &ndash;force</span></span></p>
<p><span style="font-family: Calibri; font-size: small;" size="3" face="Calibri">&nbsp;</span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Next open the profile file in Notepad.&nbsp; This step is easily performed from PowerShell using the following command.</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">PS&gt; notepad $profile</span></span></p>
<p><span style="font-family: Calibri; font-size: small;" size="3" face="Calibri">&nbsp;</span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Copy and paste the following function into the profile, save the file, and restart PowerShell (or reload the profile).</span></span></p>
<p><span style="font-family: Calibri; font-size: small;" size="3" face="Calibri">&nbsp;</span></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="638">
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Function Connect-ExchangeOnline</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">{</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [CmdletBinding()]</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; param</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [Parameter(Mandatory = $False)]</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [System.Management.Automation.PsCredential]$Credential = $Host.UI.PromptForCredential("Enter MSOL Admin Credential",</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Enter the username and password of an MSOnline Administrator account.",</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "",</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "userCreds"),</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [Parameter(Mandatory = $False)]</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [System.Uri]$Uri = "https://ps.outlook.com/powershell/"</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri $Uri -Credential $Credential -Authentication "Basic" -AllowRedirection</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Import-PSSession $session -AllowClobber</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Return $session</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">}</span></span></p>
</td>
</tr>
</tbody>
</table>
<p><span style="font-family: Calibri; font-size: small;" size="3" face="Calibri">&nbsp;</span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Now, when you need to connect to Office 365 to run Exchange cmdlets, you can simply type &ldquo;Connect-ExchangeOnline&rdquo; directly at the PowerShell prompt just as if you were launching a cmdlet.&nbsp; It is no longer necessary to try to remember where you stored that script or text file that contains the lines of code used to establish the connection - the code/function is readily available upon demand at your fingertips every time you launch PowerShell.&nbsp; </span></span></p>]]></content:encoded>
    </item>
  </channel>
</rss>