<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://dfwlpiki.dfwlp.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://dfwlpiki.dfwlp.com/index.php?action=history&amp;feed=atom&amp;title=PowerShell_Script_to_Export_Exchange_2013_PSTs</id>
		<title>PowerShell Script to Export Exchange 2013 PSTs - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://dfwlpiki.dfwlp.com/index.php?action=history&amp;feed=atom&amp;title=PowerShell_Script_to_Export_Exchange_2013_PSTs"/>
		<link rel="alternate" type="text/html" href="https://dfwlpiki.dfwlp.com/index.php?title=PowerShell_Script_to_Export_Exchange_2013_PSTs&amp;action=history"/>
		<updated>2026-04-06T15:27:43Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.15</generator>

	<entry>
		<id>https://dfwlpiki.dfwlp.com/index.php?title=PowerShell_Script_to_Export_Exchange_2013_PSTs&amp;diff=32&amp;oldid=prev</id>
		<title>Jhorne: Created page with &quot;Category:Exchange  ==Overview== This script can allow you to create a scheduled job to dump all Mailboxes on a server to .pst files, each time they are dumped they are put...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dfwlpiki.dfwlp.com/index.php?title=PowerShell_Script_to_Export_Exchange_2013_PSTs&amp;diff=32&amp;oldid=prev"/>
				<updated>2016-12-29T16:47:15Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Category:Exchange&quot; title=&quot;Category:Exchange&quot;&gt;Category:Exchange&lt;/a&gt;  ==Overview== This script can allow you to create a scheduled job to dump all Mailboxes on a server to .pst files, each time they are dumped they are put...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Exchange]]&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
This script can allow you to create a scheduled job to dump all Mailboxes on a server to .pst files, each time they are dumped they are put into a directory that is named after the date the script is run.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;New-ManagementRoleAssignment –Role “Mailbox Import Export” –User [DOMAIN]\Username&lt;br /&gt;
Get-MailboxExportRequest -Status Completed | Remove-MailboxExportRequest -confirm:$all&lt;br /&gt;
&lt;br /&gt;
$BackupPath = &amp;quot;F:\PSTs&amp;quot;&lt;br /&gt;
$MaxDays = &amp;quot;-30&amp;quot;&lt;br /&gt;
$CurrentDate = Get-Date&lt;br /&gt;
$DeleteDate = $CurrentDate.AddDays($MaxDays)&lt;br /&gt;
&lt;br /&gt;
# Delete the files older than x days on the main folder level (Folders Excluded)&lt;br /&gt;
Get-ChildItem $BackupPath | ?{ !$_.PsIsContainer } | Where-Object { $_.LastWriteTime -lt $DeleteDate } | Remove-Item -Force &lt;br /&gt;
&lt;br /&gt;
-Confirm:$False&lt;br /&gt;
&lt;br /&gt;
# Delete the folders (and all included content) older than x days on the main folder level (Files Excluded)&lt;br /&gt;
Get-ChildItem $BackupPath | ?{ $_.PSIsContainer } | Where-Object { $_.LastWriteTime -lt $DeleteDate } | Remove-Item -Recurse &lt;br /&gt;
&lt;br /&gt;
-Force -Confirm:$False&lt;br /&gt;
&lt;br /&gt;
$Folder = $(get-date -f yyyy-MM-dd)&lt;br /&gt;
MkDir F:\PSTs\$Folder&lt;br /&gt;
foreach ($i in (Get-Mailbox)) { New-MailboxExportRequest -Mailbox $i -FilePath &amp;quot;\\[UNCPath]\F$\PSTs\$Folder\$($i.Alias).pst&amp;quot; }&lt;br /&gt;
Get-MailboxExportRequest -Status Completed | Remove-MailboxExportRequest -confirm:$all&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jhorne</name></author>	</entry>

	</feed>