<?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>PowerShell &#8211; Ruben&#039;s Corner</title>
	<atom:link href="http://rubenscorner.com/category/office365/powershell-office365/feed/" rel="self" type="application/rss+xml" />
	<link>http://rubenscorner.com</link>
	<description></description>
	<lastBuildDate>Thu, 14 Nov 2019 20:07:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>Set Default Calendar Sharing Permissions for all users</title>
		<link>http://rubenscorner.com/2019/11/14/set-default-calendar-sharing/</link>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Thu, 14 Nov 2019 20:07:22 +0000</pubDate>
				<category><![CDATA[Office365]]></category>
		<category><![CDATA[PowerShell]]></category>
		<guid isPermaLink="false">https://www.rubenscorner.com/?p=142</guid>

					<description><![CDATA[Open Notepad Copy the following cmdlets and edit as required: 3. Save the file as a&#160;PowerShell Script file. 4. Open Windows PowerShell 5. Run your script file 6. Enter your Office 365 admin credentials and click ok Access Rights Roles Author CreateItems, DeleteOwnedItems, EditOwnedItems, FolderVisible, ReadItems Contributor CreateItems, FolderVisible Editor CreateItems, DeleteAllItems, DeleteOwnedItems, EditAllItems, EditOwnedItems, [&#8230;]]]></description>
										<content:encoded><![CDATA[
<ol class="wp-block-list"><li>Open Notepad</li><li>Copy the following cmdlets and edit as required:</li></ol>



<figure class="wp-block-image size-large is-resized"><img fetchpriority="high" decoding="async" src="https://www.rubenscorner.com/wp-content/uploads/2019/11/DefaultSharingPolicyOffice365.png" alt="DefaultSharingPolicyOffice365" class="wp-image-141" width="683" height="266"/><figcaption>PowerShell DefaultSharingPolicyOffice365</figcaption></figure>



<p>3. Save the file as a<strong>&nbsp;PowerShell Script file</strong>. </p>



<p>4. Open Windows PowerShell</p>



<p>5. Run your script file </p>



<p>6. Enter your Office 365 admin credentials and click ok</p>



<p></p>



<h2 class="wp-block-heading" id="access-rights-roles">Access Rights Roles</h2>



<h3 class="wp-block-heading" id="author">Author</h3>



<p class="has-text-align-center">CreateItems, DeleteOwnedItems, EditOwnedItems, FolderVisible, ReadItems</p>



<h3 class="wp-block-heading" id="contributor">Contributor</h3>



<p class="has-text-align-center">CreateItems, FolderVisible</p>



<h3 class="wp-block-heading" id="editor">Editor</h3>



<p class="has-text-align-center">CreateItems, DeleteAllItems, DeleteOwnedItems, EditAllItems, EditOwnedItems, FolderVisible, ReadItems</p>



<h3 class="wp-block-heading" id="none">None</h3>



<p class="has-text-align-center">FolderVisible</p>



<h3 class="wp-block-heading" id="noneditingauthor">NonEditingAuthor</h3>



<p class="has-text-align-center">CreateItems, FolderVisible, ReadItems</p>



<h3 class="wp-block-heading" id="owner">Owner</h3>



<p class="has-text-align-center">CreateItems, CreateSubfolders, DeleteAllItems, DeleteOwnedItems, EditAllItems, EditOwnedItems, FolderContact, FolderOwner, FolderVisible, ReadItems</p>



<h3 class="wp-block-heading" id="publishingeditor">PublishingEditor</h3>



<p class="has-text-align-center">CreateItems, CreateSubfolders, DeleteAllItems, DeleteOwnedItems, EditAllItems, EditOwnedItems, FolderVisible, ReadItems</p>



<h3 class="wp-block-heading" id="publishingauthor">PublishingAuthor</h3>



<p class="has-text-align-center">CreateItems, CreateSubfolders, DeleteOwnedItems, EditOwnedItems, FolderVisible, ReadItems</p>



<h3 class="wp-block-heading" id="reviewer">Reviewer</h3>



<p class="has-text-align-center">FolderVisible, ReadItems</p>



<h2 class="wp-block-heading">The following roles apply specifically to calendar folders:</h2>



<h3 class="wp-block-heading" id="availabilityonly">AvailabilityOnly</h3>



<p class="has-text-align-center">View only availability data</p>



<h3 class="wp-block-heading" id="limiteddetails">LimitedDetails</h3>



<p class="has-text-align-center">View availability data with subject and location</p>



<h2 class="wp-block-heading" id="access-rights-permissions">Access Rights Permissions</h2>



<h3 class="wp-block-heading" id="createitems">CreateItems</h3>



<p class="has-text-align-center">The user can create items in the specified folder.</p>



<h3 class="wp-block-heading" id="createsubfolders">CreateSubfolders</h3>



<p class="has-text-align-center">The user can create subfolders in the specified folder.</p>



<h3 class="wp-block-heading" id="deleteallitems">DeleteAllItems</h3>



<p class="has-text-align-center">The user can delete all items in the specified folder.</p>



<h3 class="wp-block-heading" id="deleteowneditems">DeleteOwnedItems</h3>



<p class="has-text-align-center">The user can only delete items that they created from the specified folder.</p>



<h3 class="wp-block-heading" id="editallitems">EditAllItems</h3>



<p class="has-text-align-center">The user can edit all items in the specified folder.</p>



<h3 class="wp-block-heading" id="editowneditems">EditOwnedItems</h3>



<p class="has-text-align-center">The user can only edit items that they created in the specified folder.</p>



<h3 class="wp-block-heading" id="foldercontact">FolderContact</h3>



<p class="has-text-align-center">The user is the contact for the specified public folder.</p>



<h3 class="wp-block-heading" id="folderowner">FolderOwner</h3>



<p class="has-text-align-center">The user is the owner of the specified folder. The user can view the folder, move the move the folder, and create subfolders. The user can’t read items, edit items, delete items, or create items.</p>



<h3 class="wp-block-heading" id="foldervisible">FolderVisible</h3>



<p class="has-text-align-center">The user can view the specified folder, but can’t read or edit items within the specified public folder.</p>



<h3 class="wp-block-heading" id="readitems">ReadItems</h3>



<p class="has-text-align-center">The user can read items within the specified folder.</p>



<p class="has-text-align-center"><strong>Related Links:  </strong></p>



<p><a href="https://docs.microsoft.com/en-us/powershell/module/exchange/mailboxes/Set-MailboxFolderPermission?redirectedfrom=MSDN&amp;view=exchange-ps">https://docs.microsoft.com/en-us/powershell/module/exchange/mailboxes/Set-MailboxFolderPermission?redirectedfrom=MSDN&amp;view=exchange-ps </a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to list Windows 10 Upgrades</title>
		<link>http://rubenscorner.com/2019/10/24/how-to-list-windows-10-upgrades/</link>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Thu, 24 Oct 2019 22:34:02 +0000</pubDate>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows 10, 8.X, and 7]]></category>
		<guid isPermaLink="false">https://www.rubenscorner.com/?p=122</guid>

					<description><![CDATA[Do you need to know when a particular upgrade for windows 10 was done? Open Powershell Open Windows PowerShell and run the following two cmdlets PS &#62; $AllBuilds = $(gci &#8220;HKLM:\System\Setup&#8221; &#124; ? {$_.Name -match &#8220;\Source\s&#8221;}) &#124; % { $_ &#124; Select @{n=&#8221;UpdateTime&#8221;;e={if ($_.Name -match &#8220;Updated\son\s(\d{1,2}\/\d{1,2}\/\d{4}\s\d{2}:\d{2}:\d{2}))$&#8221;) {[dateTime]::Parse($Matches[1],([Globalization.CultureInfo]::CreateSpecificCulture(&#8216;en-US&#8217;)))}}}, @{n=&#8221;ReleaseID&#8221;;e={$_.GetValue(&#8220;ReleaseID&#8221;)}},@{n=&#8221;Branch&#8221;;e={$_.GetValue(&#8220;BuildBranch&#8221;)}},@{n=&#8221;Build&#8221;;e={$_.GetValue(&#8220;CurrentBuild&#8221;)}},@{n=&#8221;ProductName&#8221;;e={$_.GetValue(&#8220;ProductName&#8221;)}},@{n=&#8221;InstallTime&#8221;;e={[datetime]::FromFileTime($_.GetValue(&#8220;InstallTime&#8221;))}} }; PS &#62; $AllBuilds &#124; Sort UpdateTime [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Do you need to know when a particular upgrade for windows 10 was done? </h2>



<h2 class="wp-block-heading">Open Powershell</h2>



<p>Open Windows PowerShell and run the following two cmdlets</p>



<p>PS &gt; $AllBuilds = $(gci &#8220;HKLM:\System\Setup&#8221; | ? {$_.Name -match &#8220;\Source\s&#8221;}) | % { $_ | Select @{n=&#8221;UpdateTime&#8221;;e={if ($_.Name -match &#8220;Updated\son\s(\d{1,2}\/\d{1,2}\/\d{4}\s\d{2}:\d{2}:\d{2}))$&#8221;) {[dateTime]::Parse($Matches[1],([Globalization.CultureInfo]::CreateSpecificCulture(&#8216;en-US&#8217;)))}}}, @{n=&#8221;ReleaseID&#8221;;e={$_.GetValue(&#8220;ReleaseID&#8221;)}},@{n=&#8221;Branch&#8221;;e={$_.GetValue(&#8220;BuildBranch&#8221;)}},@{n=&#8221;Build&#8221;;e={$_.GetValue(&#8220;CurrentBuild&#8221;)}},@{n=&#8221;ProductName&#8221;;e={$_.GetValue(&#8220;ProductName&#8221;)}},@{n=&#8221;InstallTime&#8221;;e={[datetime]::FromFileTime($_.GetValue(&#8220;InstallTime&#8221;))}} };</p>



<p>PS &gt; $AllBuilds | Sort UpdateTime | ft UpdateTime, ReleaseID, Branch, Build, ProductName</p>



<p>The first command pulls the OS info and saves it to $AllBuilds adn the second command sorts the information.</p>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Export a List of Email Addresses from Office 365</title>
		<link>http://rubenscorner.com/2019/09/13/how-to-export-a-list-of-email-addresses-from-office-365/</link>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Fri, 13 Sep 2019 23:41:29 +0000</pubDate>
				<category><![CDATA[Office365]]></category>
		<category><![CDATA[PowerShell]]></category>
		<guid isPermaLink="false">https://www.rubenscorner.com/?p=119</guid>

					<description><![CDATA[To export the list of users and emails addresses from Office 365 along with the first and last name of the users: Start PowerShell Run the following commands $LiveCred = Get-Credential&#160; $Session = New-PSSession -ConfigurationName Microsoft.Exchange &#8211; ConnectionUri&#160;https://ps.outlook.com/powershell/&#160;-Credential $LiveCred &#8211; Authentication Basic -AllowRedirection&#160;Import-PSSession $Session 3. To export Get-Mailbox -ResultSize Unlimited &#124;Select-Object DisplayName,PrimarySmtpAddress, @{Name=&#8221;EmailAddresses&#8221;;Expression={$_.EmailAddresses &#124;Where-Object {$_.PrefixString [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>To export the list of users and emails addresses from Office 365 along with the first and last name of the users:</p>



<ol class="wp-block-list"><li>Start PowerShell</li><li>Run the following commands<br> $LiveCred = Get-Credential&nbsp;<br> $Session = New-PSSession -ConfigurationName Microsoft.Exchange &#8211;  ConnectionUri&nbsp;<a rel="noreferrer noopener" href="https://ps.outlook.com/powershell/" target="_blank">https://ps.outlook.com/powershell/</a>&nbsp;-Credential $LiveCred &#8211; Authentication Basic -AllowRedirection&nbsp;<br>Import-PSSession $Session </li></ol>



<p>3. To export </p>



<p>Get-Mailbox -ResultSize Unlimited |Select-Object DisplayName,PrimarySmtpAddress, @{Name=&#8221;EmailAddresses&#8221;;Expression={$_.EmailAddresses |Where-Object {$_.PrefixString -ceq &#8220;smtp&#8221;} | ForEach-Object {$_.SmtpAddress}}} | Export-Csv c:\email-addresses.csv </p>



<p><br></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Start a Manual Active Directory Sync to Office 365</title>
		<link>http://rubenscorner.com/2019/09/13/how-to-start-a-manual-active-directory-sync-to-office-365/</link>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Fri, 13 Sep 2019 21:37:20 +0000</pubDate>
				<category><![CDATA[Office365]]></category>
		<category><![CDATA[PowerShell]]></category>
		<guid isPermaLink="false">https://www.rubenscorner.com/?p=116</guid>

					<description><![CDATA[By Default, Active directory synchronization happens every 30 minutes and it runs on the Server you Installed Azure AD on. Log In to the Server you’ve Installed Azure AD Sync and open PowerShell. In the PowerShell windows type the cmdlet below: Start-ADSyncSyncCycle -PolicyType Delta]]></description>
										<content:encoded><![CDATA[
<p> By Default, Active directory synchronization happens every 30 minutes and it runs on the Server you Installed Azure AD on.</p>



<p> Log In to the Server you’ve Installed Azure AD Sync and open PowerShell. </p>



<p> In the PowerShell windows type the cmdlet below: </p>



<pre class="wp-block-preformatted">Start-ADSyncSyncCycle -PolicyType Delta</pre>



<p></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
