<?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> &#187; Microsoft Exchange 2007 Scripts</title>
	<atom:link href="http://markswinkels.nl/category/microsoft-exchange-2007-scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://markswinkels.nl</link>
	<description></description>
	<lastBuildDate>Tue, 22 Jun 2010 08:32:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Changing OWA time out on an Exchange 2007 Server</title>
		<link>http://markswinkels.nl/2009/11/04/changing-owa-time-out-on-an-exchange-2007-server/</link>
		<comments>http://markswinkels.nl/2009/11/04/changing-owa-time-out-on-an-exchange-2007-server/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 15:45:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Exchange 2007 Scripts]]></category>

		<guid isPermaLink="false">http://markswinkels.nl/?p=1636</guid>
		<description><![CDATA[By default the Outlook Web Access (OWA) will automatically time out for the security purposes. This feature has been designed to restrict unauthorized access to any mailbox when the user is using a public or shared computer. You can select this option before you logon to your mailbox.     Though this feature is good for [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://markswinkels.nl/wp-content/uploads/2009/11/OWA_TO_02.jpg"></a>By default the Outlook Web Access (OWA) will automatically time out for the security purposes. This feature has been designed to restrict unauthorized access to any mailbox when the user is using a public or shared computer. You can select this option before you logon to your mailbox.</p>
<p><a href="http://markswinkels.nl/wp-content/uploads/2009/11/OWA_TO_01.jpg"><img class="alignnone size-thumbnail wp-image-1637" title="OWA_TO_01" src="http://markswinkels.nl/wp-content/uploads/2009/11/OWA_TO_01-150x150.jpg" alt="OWA_TO_01" width="150" height="150" /></a>    <a href="http://markswinkels.nl/wp-content/uploads/2009/11/OWA_TO_02.jpg"><img title="OWA_TO_02" src="http://markswinkels.nl/wp-content/uploads/2009/11/OWA_TO_02-150x150.jpg" alt="OWA_TO_02" width="150" height="150" /></a></p>
<p>Though this feature is good for security reasons it may be annoying for many users who use OWA regularly and they may not want to enter the password several times after the time out. This can settled down with a simple registry tweak on the CAS server that runs your Internet facing OWA site. This can be done by following registry modification:</p>
<p><em><strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeOWA<br />
</strong></em><em><strong>Name: PublicTimeout<br />
</strong></em><em><strong>Type: DWORD<br />
</strong></em><em><strong>Value: {value in minutes} </strong>(This value is 15 minutes by default)</em></p>
<p>The above suggestion applies only when the user selects the Public Computer option from the OWA logon screen. For the user who select the Private Computer from the logon screen you might want to modify:</p>
<p><em><strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeOWA<br />
</strong></em><em><strong>Name: PrivateTimeout<br />
</strong></em><em><strong>Type: DWORD<br />
</strong></em><em><strong>Value: {value in minutes} </strong>(This value is 8 hours by default)</em></p>
<p>If you don’t see the DWORD values named, PublicTimeout and PrivateTimeout then you have create then manually.</p>
]]></content:encoded>
			<wfw:commentRss>http://markswinkels.nl/2009/11/04/changing-owa-time-out-on-an-exchange-2007-server/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Microsoft Exchange 2007 Service Pack 2 available</title>
		<link>http://markswinkels.nl/2009/09/01/microsoft-exchange-2007-service-pack-2-available/</link>
		<comments>http://markswinkels.nl/2009/09/01/microsoft-exchange-2007-service-pack-2-available/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 09:08:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Exchange 2007 Scripts]]></category>

		<guid isPermaLink="false">http://markswinkels.nl/?p=1264</guid>
		<description><![CDATA[ Last week Exchange Service Pack 2 has become available! Here are some new features:  Enhanced Auditing &#8211; New Exchange auditing events and audit log repository enable Exchange administrators to more easily audit the activities occurring on their Exchange servers. It allows the right balance of granularity, performance, and easy access to audited events via a dedicated audit [...]]]></description>
			<content:encoded><![CDATA[<p> Last week Exchange Service Pack 2 has become available! Here are some new features: </p>
<li><strong>Enhanced Auditing</strong> &#8211; New Exchange auditing events and audit log repository enable Exchange administrators to more easily audit the activities occurring on their Exchange servers. It allows the right balance of granularity, performance, and easy access to audited events via a dedicated audit log repository. This simplifies the auditing process and makes review of audited events easier by segregating audited events in a dedicated location.</li>
<li><strong>Exchange Volume Snapshot Backup Functionality </strong><strong>- </strong>A new backup plug-in has been added to the product that will enable customers to create Exchange backups when a backup is invoked through the Windows Server 2008 Backup tool. Exchange Server 2007 didn&#8217;t have this capability on Windows Server 2008 and additional solutions were required to perform this task.</li>
<li><strong>Dynamic Active Directory Schema Update and Validation &#8211; </strong>The dynamic AD schema update and validation feature allows for future schema updates to be dynamic deployed as well as proactively preventing conflicts whenever a new property is added to the AD schema. Once this capability is deployed it will enable easier management of future schema updates and will prevent support issues when adding properties that don&#8217;t exist in the AD schema.</li>
<li><strong>Public Folder Quota Management</strong> &#8211; SP2 enables a consistent way to manage quotas by improving the current PowerShell cmdlets to perform quota management tasks.</li>
<li><strong>Centralized Organizational Settings</strong> &#8211; SP2 introduces new PowerShell option that enable centralized management of many of the Exchange organization settings.</li>
<li><strong>Named Properties cmdlets</strong> &#8211; SP2 enables Exchange administrators to monitor their named property usage per database.</li>
<li><strong>New User Interface for Managing Diagnostic Logging</strong>- SP2 enables Exchange administrators to easily configure and manage diagnostic logging from within the Exchange Management Console.</li>
<p>You can download Exchange 2007 Serivce Pack 2 <a title="Exchange 2007 Service Pack 2" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=4C4BD2A3-5E50-42B0-8BBB-2CC9AFE3216A&amp;displaylang=en" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://markswinkels.nl/2009/09/01/microsoft-exchange-2007-service-pack-2-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download free PowerShell eBook</title>
		<link>http://markswinkels.nl/2009/07/17/download-free-powershell-ebook/</link>
		<comments>http://markswinkels.nl/2009/07/17/download-free-powershell-ebook/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 06:36:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Exchange 2007 Scripts]]></category>

		<guid isPermaLink="false">http://markswinkels.nl/?p=1130</guid>
		<description><![CDATA[If you want to learn all the ins en outs about PowerShell&#8230;.this is your chance! Download the free PowerShell eBook Mastering PowerShell]]></description>
			<content:encoded><![CDATA[<p>If you want to learn all the ins en outs about PowerShell&#8230;.this is your chance! Download the free PowerShell eBook <strong><em>Mastering PowerShell</em></strong></p>
<p><a title="Mastering PowerShell" href="http://powershell.com/Mastering-PowerShell.pdf" target="_blank"><img class="alignnone size-full wp-image-1131" title="powershell_01" src="http://markswinkels.nl/wp-content/uploads/2009/07/powershell_01.jpg" alt="powershell_01" width="378" height="484" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://markswinkels.nl/2009/07/17/download-free-powershell-ebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Managing the Event Viewer with PowerShell</title>
		<link>http://markswinkels.nl/2009/07/13/managing-the-event-viewer-with-powershell/</link>
		<comments>http://markswinkels.nl/2009/07/13/managing-the-event-viewer-with-powershell/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 12:32:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Exchange 2007 Scripts]]></category>

		<guid isPermaLink="false">http://markswinkels.nl/?p=1124</guid>
		<description><![CDATA[An easy way to manage your windows event viewer is to use PowerShell. With some simple commands you can open all the events. Let&#8217;s have a look on that&#8230;. Get-EventLog * (gives an overview of all the available event sources) Get-EventLog -LogName&#8221;DNS Server&#8221; (gives all the event logs in the DNS server log) Get-EventLog -LogName &#8220;DNS Server&#8221; -Newest [...]]]></description>
			<content:encoded><![CDATA[<p>An easy way to manage your windows <em>event viewer</em> is to use PowerShell. With some simple commands you can open all the events. Let&#8217;s have a look on that&#8230;.</p>
<p><em><strong>Get-EventLog *<br />
</strong>(gives an overview of all the available event sources)</p>
<p><strong>Get-EventLog -LogName&#8221;DNS Server&#8221;<br />
</strong>(gives all the event logs in the DNS server log)</p>
<p><strong>Get-EventLog -LogName &#8220;DNS Server&#8221; -Newest 10<br />
</strong>(gives the newest 10 event logs in the DNS server log)</p>
<p><strong><a href="http://markswinkels.nl/wp-content/uploads/2009/07/event_01.jpg"><img class="alignnone size-thumbnail wp-image-1125" title="event_01" src="http://markswinkels.nl/wp-content/uploads/2009/07/event_01-150x150.jpg" alt="event_01" width="150" height="150" /></a>    <a href="http://markswinkels.nl/wp-content/uploads/2009/07/event_02.jpg"><img class="alignnone size-thumbnail wp-image-1126" title="event_02" src="http://markswinkels.nl/wp-content/uploads/2009/07/event_02-150x150.jpg" alt="event_02" width="150" height="150" /></a>    <a href="http://markswinkels.nl/wp-content/uploads/2009/07/event_03.jpg"><img class="alignnone size-thumbnail wp-image-1127" title="event_03" src="http://markswinkels.nl/wp-content/uploads/2009/07/event_03-150x150.jpg" alt="event_03" width="150" height="150" /></a></strong></em></p>
<p>When you put the following commands into a PS1 file and schedule it on a specific server, you&#8217;ll receive the event logs in an e-mail! <img src='http://markswinkels.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<em>(in this example you&#8217;ll receive an e-mail from <strong>eventviewer@e2k10.local </strong>with the 10 newest event logs)</em></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
$body = Get-EventLog -LogName &#8220;dns server&#8221; -Newest 10 | out-string<br />
$From = “eventviewer@e2k10.local”<br />
$to = “administrator@e2k10.local”<br />
$server = “srv-exc2010.e2k10.local”<br />
$subject = “Event Viewer &#8211; srv-exc2010.e2k10.local”<br />
$msg = new-object System.Net.Mail.MailMessage $From, $to, $subject, $body<br />
$client = new-object System.Net.Mail.SmtpClient $Server<br />
$Client.Send($msg)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><a href="http://markswinkels.nl/wp-content/uploads/2009/07/event_04.jpg"><img class="alignnone size-large wp-image-1128" title="event_04" src="http://markswinkels.nl/wp-content/uploads/2009/07/event_04-1023x563.jpg" alt="event_04" width="716" height="394" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://markswinkels.nl/2009/07/13/managing-the-event-viewer-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exchange 2007 change permissions on your Information Store</title>
		<link>http://markswinkels.nl/2009/06/09/exchange-2007-change-permissions-on-information-store/</link>
		<comments>http://markswinkels.nl/2009/06/09/exchange-2007-change-permissions-on-information-store/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 13:41:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Exchange 2007 Scripts]]></category>

		<guid isPermaLink="false">http://markswinkels.nl/?p=1044</guid>
		<description><![CDATA[If you&#8217;re using a service account for example your backup software, it&#8217;s some times nessesary that this account has full controll permissions on all the mailboxes in your Exchange environment. Now you can set the full controll permissions on all the mailboxes, but it&#8217;s better to set the permissions on your information store. So if [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re using a service account for example your backup software, it&#8217;s some times nessesary that this account has full controll permissions on all the mailboxes in your Exchange environment. Now you can set the full controll permissions on all the mailboxes, but it&#8217;s better to set the permissions on your information store. So if there are new mailboxes created, they have also the right permissions automatically. With the following command you can set the permissions on information store level:</p>
<p><strong><em>get-mailboxserver Servername | add-adpermission -user svc-backup -accessrights GenericRead, GenericWrite -extendedrights  Send-As, Receive-As, ms-Exch-Store-Admin</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://markswinkels.nl/2009/06/09/exchange-2007-change-permissions-on-information-store/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exchange 2007 export all distribution groups</title>
		<link>http://markswinkels.nl/2009/05/19/exchange-2007-export-all-distribution-groups/</link>
		<comments>http://markswinkels.nl/2009/05/19/exchange-2007-export-all-distribution-groups/#comments</comments>
		<pubDate>Tue, 19 May 2009 08:22:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Exchange 2007 Scripts]]></category>

		<guid isPermaLink="false">http://markswinkels.nl/?p=999</guid>
		<description><![CDATA[In some situations it&#8217;s verry usefull to have an export of all the available distribution group in your Exchange 2007 environment. With the following script you can export alle the distribution groups with there Name, Alias, SMTP address and secundary SMTP addresses. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Get-DistributionGroup &#124; select name , alias ,EmailAddresses &#124; foreach {   &#8220;Name: [...]]]></description>
			<content:encoded><![CDATA[<p>In some situations it&#8217;s verry usefull to have an export of all the available distribution group in your Exchange 2007 environment. With the following script you can export alle the distribution groups with there <strong><em>Name, Alias, SMTP address </em></strong>and <strong><em>secundary SMTP addresses.</em></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Get-DistributionGroup | select name , alias ,EmailAddresses | foreach {<br />
  &#8220;Name: &#8220;+$_.name<br />
  &#8220;Alias: &#8220;+$_.alias<br />
   $_.EmailAddresses | foreach {<br />
     if($_.SmtpAddress){<br />
     &#8220;SmtpAddress: &#8220;+$_.SmtpAddress<br />
   }<br />
}<br />
write-host<br />
}<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>When you copy and past this code in notepad and save it as <strong><em>Get_Dis.ps1 </em></strong>, you get the following export for example:</p>
<p>Name: Exchange Team<br />
Alias: ExchangeTeam<br />
SmtpAddress: Exchange2003Team@e2k7.local<br />
SmtpAddress: Exchange2007Team@e2k7.local<br />
SmtpAddress: ExchangeTeam@e2k7.local</p>
<p>Name: ICT Helpdesk<br />
Alias: ICTHelpdesk<br />
SmtpAddress: Helpdesk@e2k7.local<br />
SmtpAddress: ICTHelpdesk@e2k7.local</p>
<p>Name: ICT Management<br />
Alias: ICTManagement<br />
SmtpAddress: ICTManagement@e2k7.local</p>
]]></content:encoded>
			<wfw:commentRss>http://markswinkels.nl/2009/05/19/exchange-2007-export-all-distribution-groups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exchange 2007, find all mailboxes hidden from the GAL</title>
		<link>http://markswinkels.nl/2009/04/18/exchange-2007-find-all-mailboxes-hidden-from-the-gal/</link>
		<comments>http://markswinkels.nl/2009/04/18/exchange-2007-find-all-mailboxes-hidden-from-the-gal/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 07:29:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Exchange 2007 Scripts]]></category>

		<guid isPermaLink="false">http://markswinkels.nl/?p=926</guid>
		<description><![CDATA[With the following command you can list all the mailboxes that are hidden from the GAL (Global Address List). A very usefull command when you&#8217;ve to perform a migration from Exchange to Exchange and you&#8217;ve pre-created the new Exchange mailboxes. Get-Mailbox &#124; Where {$_.HiddenFromAddressListsEnabled -eq $true} &#124; ft -wrap Get-Mailbox &#124; Where {$_.HiddenFromAddressListsEnabled -eq $true} [...]]]></description>
			<content:encoded><![CDATA[<p>With the following command you can list all the mailboxes that are hidden from the GAL (Global Address List). A very usefull command when you&#8217;ve to perform a migration from Exchange to Exchange and you&#8217;ve pre-created the new Exchange mailboxes.</p>
<p><strong><em>Get-Mailbox | Where {$_.HiddenFromAddressListsEnabled -eq $true} | ft -wrap</em></strong></p>
<p><strong><em>Get-Mailbox | Where {$_.HiddenFromAddressListsEnabled -eq $true} | Select Name, HiddenFromAddresslistsEnabled, ExchangeVersion</em></strong></p>
<p><strong><em><a href="http://markswinkels.nl/wp-content/uploads/2009/04/pwsh_011.jpg"><img class="alignnone size-full wp-image-930" title="pwsh_011" src="http://markswinkels.nl/wp-content/uploads/2009/04/pwsh_011.jpg" alt="pwsh_011" width="690" height="202" /></a></em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://markswinkels.nl/2009/04/18/exchange-2007-find-all-mailboxes-hidden-from-the-gal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exchange 2007 view all the full access permissions</title>
		<link>http://markswinkels.nl/2009/01/09/exchange-2007-view-all-the-full-access-permissions/</link>
		<comments>http://markswinkels.nl/2009/01/09/exchange-2007-view-all-the-full-access-permissions/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 09:59:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Exchange 2007 Scripts]]></category>

		<guid isPermaLink="false">http://markswinkels.nl/?p=683</guid>
		<description><![CDATA[To view all the full access permissions on all the mailboxes in your environment, you can use the following command in the Exchange Management Shell. Get-Mailbox &#124; Get-mailboxpermission &#124; where {-not ($_.User -like &#8220;NT AUTHORITY\SELF&#8221;)} &#124; Ft -wrap When you want the full access permissions configured on one specific mailbox, you can add the -identity [...]]]></description>
			<content:encoded><![CDATA[<p>To view all the <em>full access permissions </em>on all the mailboxes in your environment, you can use the following command in the Exchange Management Shell.</p>
<p><em>Get-Mailbox | Get-mailboxpermission | where {-not ($_.User -like &#8220;NT AUTHORITY\SELF&#8221;)} | Ft -wrap</em></p>
<p><em><img class="alignnone size-full wp-image-684" title="fullaccess_01" src="http://markswinkels.nl/wp-content/uploads/2009/01/fullaccess_01.jpg" alt="fullaccess_01" width="599" height="238" /></em></p>
<p>When you want the full access permissions configured on one specific mailbox, you can add the <em>-identity </em>switch. For example:</p>
<p><em>Get-Mailbox -identity systeembeheer | Get-mailboxpermission | where {-not ($_.User -like &#8220;NT AUTHORITY\SELF&#8221;)} | Ft -wrap</em></p>
<p> <img class="alignnone size-full wp-image-685" title="fullaccess_02" src="http://markswinkels.nl/wp-content/uploads/2009/01/fullaccess_02.jpg" alt="fullaccess_02" width="599" height="219" /></p>
]]></content:encoded>
			<wfw:commentRss>http://markswinkels.nl/2009/01/09/exchange-2007-view-all-the-full-access-permissions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exchange 2007 view all the Send-As permissions</title>
		<link>http://markswinkels.nl/2009/01/09/exchange-2007-view-all-the-send-as-permissions/</link>
		<comments>http://markswinkels.nl/2009/01/09/exchange-2007-view-all-the-send-as-permissions/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 09:33:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Exchange 2007 Scripts]]></category>

		<guid isPermaLink="false">http://markswinkels.nl/?p=673</guid>
		<description><![CDATA[When you want an overview of all the Send-As permissions configured on all the mailboxes in your environment, you can use the following command in the Exchange Management Console. Get-Mailbox &#124; Get-ADPermission &#124; where {($_.ExtendedRights -like &#8220;*Send-As*&#8221;) -and -not ($_.User -like &#8220;NT AUTHORITY\SELF&#8221;)} &#124; Ft -wrap When you want the Send-As permissions configured on one [...]]]></description>
			<content:encoded><![CDATA[<p>When you want an overview of all the Send-As permissions configured on all the mailboxes in your environment, you can use the following command in the Exchange Management Console.</p>
<p><em>Get-Mailbox | Get-ADPermission | where {($_.ExtendedRights -like &#8220;*Send-As*&#8221;) -and -not ($_.User -like &#8220;NT AUTHORITY\SELF&#8221;)} | Ft -wrap</em></p>
<p><img class="alignnone size-full wp-image-674" title="sendas_01" src="http://markswinkels.nl/wp-content/uploads/2009/01/sendas_01.jpg" alt="sendas_01" width="599" height="246" /></p>
<p>When you want the Send-As permissions configured on one specific mailbox, you can add the <em>-identity </em>switch. For example:</p>
<p><em>Get-Mailbox -identity systeembeheer | Get-ADPermission | where {($_.ExtendedRights -like &#8220;*Send-As*&#8221;) -and -not ($_.User -like &#8220;NT AUTHORITY\SELF&#8221;)} | Ft -wrap</em></p>
<p> <img class="alignnone size-full wp-image-675" title="sendas_02" src="http://markswinkels.nl/wp-content/uploads/2009/01/sendas_02.jpg" alt="sendas_02" width="600" height="216" /></p>
]]></content:encoded>
			<wfw:commentRss>http://markswinkels.nl/2009/01/09/exchange-2007-view-all-the-send-as-permissions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exchange 2007 create new Storage Groups with Mailbox Database</title>
		<link>http://markswinkels.nl/2008/12/05/exchange-2007-create-new-storage-groups-with-mailbox-database/</link>
		<comments>http://markswinkels.nl/2008/12/05/exchange-2007-create-new-storage-groups-with-mailbox-database/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 14:01:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Exchange 2007 Scripts]]></category>

		<guid isPermaLink="false">http://markswinkels.nl/?p=535</guid>
		<description><![CDATA[After a default Exchange 2007 SP1 installation, there is one Storage Group with one Mailbox Database available and mounted. You have to change the logfile path and database path manually. If you use the following script, you can create one, two, three, four (or more) Storage Groups and Databases fully automatic. Let&#8217;s say you&#8217;ve installed [...]]]></description>
			<content:encoded><![CDATA[<p>After a default Exchange 2007 SP1 installation, there is one Storage Group with one Mailbox Database available and mounted. You have to change the logfile path and database path manually. If you use the following script, you can create one, two, three, four (or more) Storage Groups and Databases fully automatic. Let&#8217;s say you&#8217;ve installed a new Exchagne 2007 server with three partitions.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
# This script creates two storage groups named SG1 and SG2, with mailbox stores MB1 and MB2, and finally mounts them.<br />
# C: &#8211; Operating System<br />
# D: &#8211; Exchange Logfiles/Systemfiles<br />
# E: &#8211; Exchange Databases</p>
<p># Environment variables<br />
$server = &#8220;srv-ex01&#8243;<br />
$logfilepath = &#8220;D:\Log&#8221;<br />
$mbxfilepath = &#8220;E:\Database&#8221;</p>
<p># Creating the Storage Groups and Mailbox Stores<br />
foreach (<br />
$i in (1,2,3,4)<br />
){<br />
new-storagegroup -name SG$i -server $server -logfolderpath &#8220;$logfilepath\SG$i&#8221; -systemfolderpath &#8220;$logfilepath\SG$i&#8221;<br />
}<br />
foreach (<br />
$i in (1,2,3,4)<br />
){<br />
new-mailboxdatabase -storagegroup $server\SG$i -name MB$i -edbfilepath &#8220;$mbxfilepath\MB$i\MB$i.edb&#8221;<br />
mount-database MB$i<br />
}<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><a href="http://markswinkels.nl/wp-content/uploads/2008/12/sg_mb.jpg"><img class="alignnone size-full wp-image-536" title="sg_mb" src="http://markswinkels.nl/wp-content/uploads/2008/12/sg_mb.jpg" alt="" width="500" height="212" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://markswinkels.nl/2008/12/05/exchange-2007-create-new-storage-groups-with-mailbox-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exchange 2007 Send Mailbox sizes with PowerShell</title>
		<link>http://markswinkels.nl/2008/12/05/exchange-2007-send-mailbox-sizes-with-powershell/</link>
		<comments>http://markswinkels.nl/2008/12/05/exchange-2007-send-mailbox-sizes-with-powershell/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 12:38:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Exchange 2007 Scripts]]></category>

		<guid isPermaLink="false">http://markswinkels.nl/?p=530</guid>
		<description><![CDATA[It could be verry usefull to receive a overview of all the mailbox sizes in your environments every day, week or month. You can see verry quickly when a users mailbox is growing to fast&#8230;.The easiest way is to automate this, so i&#8217;ve made a PowerShell script to do this for me &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; $body = [...]]]></description>
			<content:encoded><![CDATA[<p>It could be verry usefull to receive a overview of all the mailbox sizes in your environments every day, week or month. You can see verry quickly when a users mailbox is growing to fast&#8230;.The easiest way is to automate this, so i&#8217;ve made a PowerShell script to do this for me <img src='http://markswinkels.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
$body = Get-MailboxStatistics | sort-object -descending totalItemSize | ft DisplayName, @{expression={$_.totalitemsize.value.ToMB()};label=&#8221;Mailbox Size(MB)&#8221;}, itemcount, lastlogontime | out-string</p>
<p>$From = &#8220;administrator@e2k7.local&#8221;<br />
$to = &#8220;m.swinkels@e2k7.local&#8221;<br />
$server = &#8220;srv-ex01.e2k7.local&#8221;<br />
$subject = &#8220;Mailbox overview &#8211; srv-ex01.e2k7.local&#8221;<br />
$msg = new-object System.Net.Mail.MailMessage $From, $to, $subject, $body<br />
$client = new-object System.Net.Mail.SmtpClient $Server<br />
$Client.Send($msg)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Copy this script into Notepad and save it as <strong><em>MailboxSizes.ps1. </em></strong>You can schedule this script to run every day, or every week using the following command:</p>
<p><strong><em>C:\WINDOWS\system32\Windowspowershell\v1.0\powershell.exe -PSConsoleFile &#8220;D:\ExchSvr\Bin\exshell.psc1&#8243; C:\Scripts\MailboxSizes.ps1</em></strong></p>
<p><strong><em>C:\WINDOWS\system32\Windowspowershell\v1.0\powershell.exe<br />
</em></strong>The path to <em>Powershell.exe</em> needed to run the script</p>
<p><strong><em>-PSConsoleFile &#8220;D:\ExchSvr\Bin\exshell.psc1&#8243;<br />
</em></strong>Loads the specified Windows PowerShell console file. To create a console file<br />
<em>(Change the path to the installation path of Exchange 2007 in your environment)</em></p>
<p><strong><em>C:\Scripts\MailboxSizes.ps1<br />
</em></strong>The path to the script.<br />
<em>(Change the path where you save the script)</em></p>
<p>When you try to run the script, you may receive an error <em>&#8220;Client was not authenticated&#8221;.  </em>You have to add the Exchange 2007 Server to an <em>Relay Connector</em>, so that this server can send e-mail without authentication. If you&#8217;ve done this and run the script, you&#8217;ll receive the following e-mail.</p>
<p> </p>
<p><a href="http://markswinkels.nl/wp-content/uploads/2008/12/exc_send_01.jpg"><img class="alignnone size-full wp-image-531" title="exc_send_01" src="http://markswinkels.nl/wp-content/uploads/2008/12/exc_send_01.jpg" alt="" width="499" height="316" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://markswinkels.nl/2008/12/05/exchange-2007-send-mailbox-sizes-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exchange 2007 mailbox size script V5</title>
		<link>http://markswinkels.nl/2008/11/20/exchange-2007-mailbox-size-script-v5/</link>
		<comments>http://markswinkels.nl/2008/11/20/exchange-2007-mailbox-size-script-v5/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 08:36:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Exchange 2007 Scripts]]></category>

		<guid isPermaLink="false">http://markswinkels.nl/?p=409</guid>
		<description><![CDATA[Maybe some of you now, Glen Scales has made a PowerShell script to view the mailbox sizes in an Exchange 2007 environment. You can download this script at his blog Script. It&#8217;s a great script, to overview the current mailboxsizes, items, growth history, quota used. Watch the screenshot below, to see the great script of scripting [...]]]></description>
			<content:encoded><![CDATA[<p>Maybe some of you now, <a title="Glen Scales Blog" href="http://gsexdev.blogspot.com" target="_blank">Glen Scales</a> has made a PowerShell script to view the mailbox sizes in an Exchange 2007 environment. You can download this script at his blog <strong><em><a title="mbsizereportv5" href="http://msgdev.mvps.org/exdevblog/mbsizereportv5.zip" target="_blank">Script.</a></em></strong></p>
<p>It&#8217;s a great script, to overview the current mailboxsizes, items, growth history, quota used. Watch the screenshot below, to see the great script of scripting guru Glen <img src='http://markswinkels.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a href="http://markswinkels.nl/wp-content/uploads/2008/11/clan_scales_scriptv5.jpg"><img class="alignnone size-full wp-image-416" title="clan_scales_scriptv5" src="http://markswinkels.nl/wp-content/uploads/2008/11/clan_scales_scriptv5.jpg" alt="" width="500" height="310" /></a><a href="http://markswinkels.nl/wp-content/uploads/2008/11/clan_scales_scriptv5.jpg"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://markswinkels.nl/2008/11/20/exchange-2007-mailbox-size-script-v5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Export Distribution Group details</title>
		<link>http://markswinkels.nl/2008/11/07/export-distribution-group-details/</link>
		<comments>http://markswinkels.nl/2008/11/07/export-distribution-group-details/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 13:10:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Exchange 2007 Scripts]]></category>

		<guid isPermaLink="false">http://markswinkels.nl/?p=355</guid>
		<description><![CDATA[When you have multiple Distribution Groups in your Exchange 2007 environments and you need an overview of the members per Distribution Group, you want to script this action. Whit the following script you can export all Distribution Groups in an Organizational Unit with the following information: Groupname, Primary SMTP address, Members. This will save a [...]]]></description>
			<content:encoded><![CDATA[<p>When you have multiple Distribution Groups in your Exchange 2007 environments and you need an overview of the members per Distribution Group, you want to script this action. Whit the following script you can export all Distribution Groups in an Organizational Unit with the following information: <strong><em>Groupname, Primary SMTP address, Members. </em></strong>This will save a lot of time, while you don&#8217;t have to click around all your groups in Active Directory <img src='http://markswinkels.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>All you have to change is the <strong><em>OU$=&#8221;edir&#8221;. </em></strong></p>
<p>If your Organizational Unit is called &#8220;<em>Distribution Groups</em>&#8220;, it will be: <strong><em>OU$=&#8221;Distribution Groups&#8221;</em></strong></p>
<p>_____________________________</p>
<p>## This script will get all distrobution Groups and print out<br />
## the Group Name and Members alias and Primary smtp address<br />
##<br />
## Example<br />
## groupName: Group.Name<br />
##<br />
## alias               PrimarySmtpAddress<br />
## &#8212;-              &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
## Group.Alias    Group@primarySmtpAddress <br />
##<br />
## groupsMembers:<br />
##<br />
## alias               PrimarySmtpAddress<br />
## &#8212;-              &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
## User.Alias      User@primarySmtpAddress</p>
<p>$OU=&#8221;edir&#8221;<br />
##input OU path above</p>
<p>foreach($group in Get-DistributionGroup -OrganizationalUnit $Ou)<br />
{<br />
write-output &#8220;GroupName:$group &#8221;<br />
Get-DistributionGroup $group | ft alias,primarysmtpaddress<br />
Write-output &#8220;GroupsMembers:&#8221;<br />
Get-DistributionGroupMember $group | ft alias,primarysmtpaddress<br />
write-output &#8216; &#8216;<br />
}<br />
_____________________________</p>
<p>Here you can see the output of the script in the Exchange 2007 test environment.</p>
<p><a href="http://markswinkels.nl/wp-content/uploads/2008/11/distribution_groups_01.jpg"><img class="alignnone size-full wp-image-356" title="distribution_groups_01" src="http://markswinkels.nl/wp-content/uploads/2008/11/distribution_groups_01.jpg" alt="" width="500" height="370" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://markswinkels.nl/2008/11/07/export-distribution-group-details/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Total users per storage group</title>
		<link>http://markswinkels.nl/2008/11/07/total-users-per-storage-group/</link>
		<comments>http://markswinkels.nl/2008/11/07/total-users-per-storage-group/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 10:26:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Exchange 2007 Scripts]]></category>

		<guid isPermaLink="false">http://markswinkels.nl/?p=344</guid>
		<description><![CDATA[With the following script you can create an overview of all users in the different storage groups. Handy to see how many mailboxes you have in your Exchange 2007 environment __________________________________ ### clear-host write-host -fore yellow &#8220;This script will get each mailboxdatabase and the current user count &#8221; foreach($name in get-mailboxdatabase) { write-output &#8220;$name&#8221; $count=(get-mailbox [...]]]></description>
			<content:encoded><![CDATA[<p>With the following script you can create an overview of all users in the different storage groups. Handy to see how many mailboxes you have in your Exchange 2007 environment <img src='http://markswinkels.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
__________________________________</p>
<p>###<br />
clear-host<br />
write-host -fore yellow &#8220;This script will get each mailboxdatabase and the current user count &#8221;<br />
foreach($name in get-mailboxdatabase)<br />
{<br />
write-output &#8220;$name&#8221;<br />
$count=(get-mailbox -database $name).count<br />
if($count -eq $null)<br />
{ write-host -fore red &#8220;Empty Database, no users&#8221;<br />
}<br />
else<br />
{ write-output $count }<br />
}<br />
write-host -fore yellow &#8220;The system has a total of &#8220;$user=(get-mailbox -resultsize:unlimited).count<br />
write-host -fore red $user</p>
<p>__________________________________</p>
<p>The output of this script you can see below:</p>
<p><a href="http://markswinkels.nl/wp-content/uploads/2008/11/sg_total_users_011.jpg"><img class="alignnone size-full wp-image-348" title="sg_total_users_011" src="http://markswinkels.nl/wp-content/uploads/2008/11/sg_total_users_011.jpg" alt="" width="500" height="73" /></a><a href="http://markswinkels.nl/wp-content/uploads/2008/11/sg_total_users_01.jpg"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://markswinkels.nl/2008/11/07/total-users-per-storage-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing displaynames</title>
		<link>http://markswinkels.nl/2008/11/07/changing-displaynames/</link>
		<comments>http://markswinkels.nl/2008/11/07/changing-displaynames/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 09:12:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Exchange 2007 Scripts]]></category>

		<guid isPermaLink="false">http://markswinkels.nl/?p=341</guid>
		<description><![CDATA[After a default Exchange 2003/2007 installation, the Global Address List is displayed as GivenName, SirName. Most of our customers want to change this in SirName, GiveName, so that the users can search on the SirName instead of the GivenName. With the following script you can change the displaynames of all userobjects in the Domain, or [...]]]></description>
			<content:encoded><![CDATA[<p>After a default Exchange 2003/2007 installation, the Global Address List is displayed as <strong><em>GivenName, SirName. </em></strong>Most of our customers want to change this in <strong><em>SirName, GiveName</em></strong>, so that the users can search on the <strong><em>SirName</em></strong> instead of the <strong><em>GivenName</em></strong>.</p>
<p>With the following script you can change the displaynames of all userobjects in the Domain, or in an Organizational Unit.</p>
<p>The only thing you have to change is: <strong><em>&#8216;LDAP://OU=edir, DC=e2k7 ,DC=local&#8217;</em></strong>. Let&#8217;s say your domain is <strong><em>company.lan</em></strong> and the Organizational Unit where the userobject are placed is <strong><em>CompanyUsers</em></strong>, it would be:</p>
<p><strong><em>&#8220;LDAP://OU=CompanyUsers, DC=company, DC=lan&#8217;<br />
</em></strong>_______________________________________________________</p>
<p>   On Error Resume Next<br />
 Set con = CreateObject(&#8220;ADODB.Connection&#8221;)<br />
 con.Provider = &#8220;ADsDSOObject&#8221;<br />
 con.Open<br />
 set command = CreateObject(&#8220;ADODB.Command&#8221;)<br />
 set command.ActiveConnection = con<br />
 command.CommandText = &#8220;SELECT adsPath, samAccountName,Sn, givenName, DisplayName, userAccountControl FROM &#8216;LDAP://OU=edir, DC=e2k7 ,DC=local&#8217; WHERE  objectClass = &#8216;user&#8217; AND samAccountName &lt;&gt; &#8216;Administrator&#8217; AND samAccountName &lt;&gt; &#8216;*$&#8217; AND userAccountControl &lt;&gt; 514  ORDER BY samAccountName&#8221;<br />
 Set rs = command.Execute<br />
 While not rs.EOF<br />
  GebruikersNaam=rs.Fields(&#8220;adsPath&#8221;).Value<br />
  set oUser = GetObject(GebruikersNaam)<br />
  oUser.Displayname = rs.fields(&#8220;Sn&#8221;).value &amp; CHR(44) &amp;&#8221; &#8221; &amp;  rs.fields(&#8220;givenName&#8221;).value<br />
  oUser.SetInfo<br />
  Set oUser = Nothing<br />
  rs.MoveNext<br />
 Wend<br />
 con.close<br />
 Set con = nothing<br />
 MSGBox &#8220;Klaar!&#8221;<br />
_______________________________________________________</p>
]]></content:encoded>
			<wfw:commentRss>http://markswinkels.nl/2008/11/07/changing-displaynames/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
