<?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>Kreslavsky IT blog &#187; Exchange 2010</title>
	<atom:link href="http://www.kreslavsky.com/category/microsoft/exchange-2010/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kreslavsky.com</link>
	<description>News, guides, and tips to antivirus programmes, scripts, and security</description>
	<lastBuildDate>Sun, 29 Jan 2012 04:57:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Outlook 2010 Automatically maps mailboxes</title>
		<link>http://www.kreslavsky.com/2011/09/outlook-2010-automatically-maps-mailboxes.html</link>
		<comments>http://www.kreslavsky.com/2011/09/outlook-2010-automatically-maps-mailboxes.html#comments</comments>
		<pubDate>Sun, 18 Sep 2011 07:22:45 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Office 2010]]></category>
		<category><![CDATA[Access Page]]></category>
		<category><![CDATA[Automatic Mapping]]></category>
		<category><![CDATA[Mailboxes]]></category>
		<category><![CDATA[Map]]></category>
		<category><![CDATA[Maps]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Multiple Users]]></category>
		<category><![CDATA[Outlook]]></category>
		<category><![CDATA[Outlook 2010]]></category>
		<category><![CDATA[Personal Mailbox]]></category>
		<category><![CDATA[Power Shell]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/2011/09/outlook-2010-automatically-maps-mailboxes.html</guid>
		<description><![CDATA[Tweet A new client side feature which Microsoft has released in Exchange 2010 SP1 is the ability of Outlook 2010 to automatically map all mailboxes to which the logged in user has full access. There by, on each mailbox that you have been granted Full Access, you will see it on your own personal mailbox. In Order to disable automatic mapping: Go to this user mailbox, right click on it and choose manage full mailbox access, then just remove your user from the full mailbox access page You can use ADSIEDIT, and go this user properties, and under msExchDelegateListLink attribute, just remove the link to your user You can use the following script for future mailbox permissions – this will add full mailbox access with no AutoMapping. You can remove msExchDelegateListLink values from multiple users properties using ADModify.net In order to find all users that have Full Mailbox Access on other users’ mailbox, run the following powershell: Get-Mailbox -ResultSize Unlimited &#124; Get-MailboxPermission &#124; ? {($_.AccessRights -match &#34;FullAccess&#34;) -and -not ($_.User -like &#34;NT AUTHORITYSELF&#34;)} &#124; ft Identity, User]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.kreslavsky.com%2F2011%2F09%2Foutlook-2010-automatically-maps-mailboxes.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.kreslavsky.com/2011/09/outlook-2010-automatically-maps-mailboxes.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.kreslavsky.com/2011/09/outlook-2010-automatically-maps-mailboxes.html"  data-text="Outlook 2010 Automatically maps mailboxes" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.kreslavsky.com/2011/09/outlook-2010-automatically-maps-mailboxes.html" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.kreslavsky.com/2011/09/outlook-2010-automatically-maps-mailboxes.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>A new client side feature which Microsoft has released in Exchange 2010 SP1 is the ability of Outlook 2010 to automatically map all mailboxes to which the logged in user has full access.   <br />There by, on each mailbox that you have been granted Full Access, you will see it on your own personal mailbox.</p>
<p><strong>In Order to disable automatic mapping</strong>:</p>
<ol>
<li>Go to this user mailbox, right click on it and choose manage full mailbox access, then just remove your user from the full mailbox access page</li>
<li>You can use ADSIEDIT, and go this user properties, and under msExchDelegateListLink attribute, just remove the link to your user</li>
<li>You can use the following <a href="http://www.stevieg.org/2011/02/disable-exchange-2010-sp1s-auto-shared-mailbox-mapping" target="_blank" rel="nofollow">script</a> for future mailbox permissions – this will add full mailbox access with no AutoMapping.</li>
<li>You can remove msExchDelegateListLink values from multiple users properties using ADModify.net</li>
</ol>
<p>In order to find all users that have <strong>Full Mailbox Access</strong> on other users’ mailbox, run the following powershell:</p>
<blockquote><p>Get-Mailbox -ResultSize Unlimited | Get-MailboxPermission | ? {($_.AccessRights -match &quot;FullAccess&quot;) -and -not ($_.User -like &quot;NT AUTHORITYSELF&quot;)} | ft Identity, User</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2011/09/outlook-2010-automatically-maps-mailboxes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grant editor permission to calendar via power shell Exchange 2010</title>
		<link>http://www.kreslavsky.com/2011/09/grant-editor-permission-to-calendar-via-power-shell-exchange-2010.html</link>
		<comments>http://www.kreslavsky.com/2011/09/grant-editor-permission-to-calendar-via-power-shell-exchange-2010.html#comments</comments>
		<pubDate>Wed, 14 Sep 2011 08:15:30 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Attribute]]></category>
		<category><![CDATA[Calendar Editor]]></category>
		<category><![CDATA[Calendar Permissions]]></category>
		<category><![CDATA[Calendar Sharing]]></category>
		<category><![CDATA[Calendar User]]></category>
		<category><![CDATA[Client Exchange]]></category>
		<category><![CDATA[Contributor]]></category>
		<category><![CDATA[Echange 2010]]></category>
		<category><![CDATA[Folder Permissions]]></category>
		<category><![CDATA[Old Fashion Way]]></category>
		<category><![CDATA[Power Exchange]]></category>
		<category><![CDATA[Power Shell]]></category>
		<category><![CDATA[Ps Command]]></category>
		<category><![CDATA[PS Script]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/2011/09/grant-editor-permission-to-calendar-via-power-shell-exchange-2010.html</guid>
		<description><![CDATA[Tweet The old fashion way for granting permission was to access user calendar and share the calendar from client. Exchange 2010 allows us to use power shell for assigning calendar permissions. You can add Reviewer, Editor and all other permission types remotely without moving from your chair. To assign Calendar Editor permission use the following command: Set-MailboxFolderPermission -Identity Granter_Username:Calendar -User ‘Granted_username’ -AccessRights Editor You can review calendar permissions with following PS command Get-MailboxFolderPermission -Identity Granter_Username:calendar You can use the same PS command to provide all available access rights. Just replace the attribute after -AccessRights Here is a list of folder permissions in Exchange 2010 Permission level Effective permission None&#160; FolderVisible Owner CreateItems, ReadItems, CreateSubfolders, FolderOwner, FolderContact, FolderVisible, EditOwnedItems, EditAllItems, DeleteOwnedItems, DeleteAllItems PublishingEditor CreateItems, ReadItems, CreateSubfolders, FolderVisible, EditOwnedItems, EditAllItems, DeleteOwnedItems, DeleteAllItems Editor CreateItems, ReadItems, FolderVisible, EditOwnedItems, EditAllItems, DeleteOwnedItems, DeleteAllItems PublishingAuthor CreateItems, ReadItems, CreateSubfolders, FolderVisible, EditOwnedItems, DeleteOwnedItems Author&#160;&#160; CreateItems, ReadItems, FolderVisible, EditOwnedItems, DeleteOwnedItems NonEditingAuthor CreateItems, ReadItems, FolderVisible Reviewer&#160;&#160; ReadItems, FolderVisible Contributor&#160; CreateItems, FolderVisible]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.kreslavsky.com%2F2011%2F09%2Fgrant-editor-permission-to-calendar-via-power-shell-exchange-2010.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.kreslavsky.com/2011/09/grant-editor-permission-to-calendar-via-power-shell-exchange-2010.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.kreslavsky.com/2011/09/grant-editor-permission-to-calendar-via-power-shell-exchange-2010.html"  data-text="Grant editor permission to calendar via power shell Exchange 2010" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.kreslavsky.com/2011/09/grant-editor-permission-to-calendar-via-power-shell-exchange-2010.html" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.kreslavsky.com/2011/09/grant-editor-permission-to-calendar-via-power-shell-exchange-2010.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>The old fashion way for granting permission was to access user calendar and share the calendar from client.</p>
<p>Exchange 2010 allows us to use power shell for assigning calendar permissions. You can add Reviewer, Editor and all other permission types remotely without moving from your chair.</p>
<p>To assign <strong>Calendar Editor</strong> <strong>permission</strong> use the following command:</p>
<blockquote><p>Set-MailboxFolderPermission -Identity <em>Granter_Username</em>:Calendar -User ‘<em>Granted_username</em>’ -AccessRights Editor</p>
</blockquote>
<p>You can review calendar permissions with following PS command</p>
<blockquote><p>Get-MailboxFolderPermission -Identity <em>Granter_Username</em>:calendar</p>
</blockquote>
<p>You can use the same PS command to provide all available access rights.   <br />Just replace the attribute after <em>-AccessRights</em> </p>
<p><a href="http://www.kreslavsky.com/wp-content/uploads/2011/09/windows_powershell_icon_2.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="windows_powershell_icon_2" border="0" alt="windows_powershell_icon_2" src="http://www.kreslavsky.com/wp-content/uploads/2011/09/windows_powershell_icon_2_thumb.png" width="126" height="126" /></a></p>
<p>Here is a list of folder permissions in Exchange 2010</p>
<table border="0" cellspacing="0" cellpadding="2" width="400">
<tbody>
<tr>
<td valign="top" width="200"><strong>Permission level</strong></td>
<td valign="top" width="200"><strong>Effective permission</strong></td>
</tr>
<tr>
<td valign="top" width="200">None&#160; </td>
<td valign="top" width="200">FolderVisible</td>
</tr>
<tr>
<td valign="top" width="200">Owner</td>
<td valign="top" width="200">CreateItems, ReadItems, CreateSubfolders, FolderOwner, FolderContact, FolderVisible, EditOwnedItems, EditAllItems, DeleteOwnedItems, DeleteAllItems</td>
</tr>
<tr>
<td valign="top" width="200">PublishingEditor</td>
<td valign="top" width="200">CreateItems, ReadItems, CreateSubfolders, FolderVisible, EditOwnedItems, EditAllItems, DeleteOwnedItems, DeleteAllItems</td>
</tr>
<tr>
<td valign="top" width="200">Editor</td>
<td valign="top" width="200">CreateItems, ReadItems, FolderVisible, EditOwnedItems, EditAllItems, DeleteOwnedItems, DeleteAllItems</td>
</tr>
<tr>
<td valign="top" width="200">PublishingAuthor</td>
<td valign="top" width="200">CreateItems, ReadItems, CreateSubfolders, FolderVisible, EditOwnedItems, DeleteOwnedItems</td>
</tr>
<tr>
<td valign="top" width="200">Author&#160;&#160; </td>
<td valign="top" width="200">CreateItems, ReadItems, FolderVisible, EditOwnedItems, DeleteOwnedItems</td>
</tr>
<tr>
<td valign="top" width="200">NonEditingAuthor </td>
<td valign="top" width="200"> CreateItems, ReadItems, FolderVisible</td>
</tr>
<tr>
<td valign="top" width="200">Reviewer&#160;&#160; </td>
<td valign="top" width="200">ReadItems, FolderVisible</td>
</tr>
<tr>
<td valign="top" width="200">Contributor&#160; </td>
<td valign="top" width="200">CreateItems, FolderVisible</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2011/09/grant-editor-permission-to-calendar-via-power-shell-exchange-2010.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>550 5.1.1 User unknown&#8221; Error while sending to distribution group in Exchange 2010</title>
		<link>http://www.kreslavsky.com/2011/04/550-5-1-1-user-unknown-error-while-sending-to-distribution-group-in-exchange-2010.html</link>
		<comments>http://www.kreslavsky.com/2011/04/550-5-1-1-user-unknown-error-while-sending-to-distribution-group-in-exchange-2010.html#comments</comments>
		<pubDate>Fri, 22 Apr 2011 14:45:00 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[550 5.1.1 User unknown]]></category>
		<category><![CDATA[Distribution Group]]></category>
		<category><![CDATA[Distribution Groups]]></category>
		<category><![CDATA[Double Click]]></category>
		<category><![CDATA[Emails]]></category>
		<category><![CDATA[Emc]]></category>
		<category><![CDATA[External Users]]></category>
		<category><![CDATA[Face]]></category>
		<category><![CDATA[Internal Distribution]]></category>
		<category><![CDATA[Internal Mail]]></category>
		<category><![CDATA[Mail Flow]]></category>
		<category><![CDATA[Mail Relay]]></category>
		<category><![CDATA[Message Delivery]]></category>
		<category><![CDATA[Organization]]></category>
		<category><![CDATA[Settings Tab]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/2011/04/550-5-1-1-user-unknown-error-while-sending-to-distribution-group-in-exchange-2010.html</guid>
		<description><![CDATA[Tweet &#160; You may face this error while user is sending email from outside the company&#160; to distribution group in your Exchange 2010 organization. You can’t send it either from internet internal mail relay or SMTP server When review logs you see &#34;550 5.1.1 User unknown&#34; error . it works fine with no issues If you use Outlook or OWA Why: When you create new Distribution group In Exchange 2010 an Require that all senders are authenticated has been marked by default.So unauthenticated users are unable to send emails to distribution groups. To fix this: Double click on Distribution Group name in EMC locate the Mail Flow Settings tab Press on Message Delivery Restrictions Uncheck the Require that all senders are authenticated Please note that it will allow external users to send emails to internal distribution groups . It is not recommended to set the setting to “All company” and other large mailing lists]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.kreslavsky.com%2F2011%2F04%2F550-5-1-1-user-unknown-error-while-sending-to-distribution-group-in-exchange-2010.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.kreslavsky.com/2011/04/550-5-1-1-user-unknown-error-while-sending-to-distribution-group-in-exchange-2010.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.kreslavsky.com/2011/04/550-5-1-1-user-unknown-error-while-sending-to-distribution-group-in-exchange-2010.html"  data-text="550 5.1.1 User unknown&#8221; Error while sending to distribution group in Exchange 2010" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.kreslavsky.com/2011/04/550-5-1-1-user-unknown-error-while-sending-to-distribution-group-in-exchange-2010.html" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.kreslavsky.com/2011/04/550-5-1-1-user-unknown-error-while-sending-to-distribution-group-in-exchange-2010.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>&#160;</p>
<p>You may face this error while user is sending email from outside the company&#160; to distribution group in your Exchange 2010 organization.   <br />You can’t send it either from internet internal mail relay or SMTP server When review logs you see &quot;<strong>550 5.1.1 User unknown</strong>&quot; <strong>error</strong> . </p>
<p>it works fine with no issues If you use Outlook or OWA</p>
<p>Why: When you create new Distribution group In Exchange 2010 an <strong>Require that all senders are authenticated</strong> has been marked by default.So unauthenticated users are unable to send emails to distribution groups.</p>
<p>To fix this:</p>
<ul>
<li>Double click on Distribution Group name in EMC locate the Mail Flow Settings tab</li>
<li>Press on<strong> Message Delivery Restrictions</strong></li>
</ul>
<p><a href="http://www.kreslavsky.com/wp-content/uploads/2011/04/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Mail Flow Settings" border="0" alt="Mail Flow Settings" src="http://www.kreslavsky.com/wp-content/uploads/2011/04/image_thumb.png" width="349" height="393" /></a> </p>
<ul>
<li>Uncheck the <strong>Require that all senders are authenticated</strong></li>
</ul>
<p><a href="http://www.kreslavsky.com/wp-content/uploads/2011/04/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Require that all senders are authenticated" border="0" alt="Require that all senders are authenticated" src="http://www.kreslavsky.com/wp-content/uploads/2011/04/image_thumb1.png" width="348" height="373" /></a> </p>
<blockquote><p>Please note that it will allow external users to send emails to internal distribution groups . It is not recommended to set the setting to “All company” and other large mailing lists</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2011/04/550-5-1-1-user-unknown-error-while-sending-to-distribution-group-in-exchange-2010.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Shut Down Exchange 2010 DAG member</title>
		<link>http://www.kreslavsky.com/2011/04/shut-down-exchange-2010-dag-member.html</link>
		<comments>http://www.kreslavsky.com/2011/04/shut-down-exchange-2010-dag-member.html#comments</comments>
		<pubDate>Thu, 21 Apr 2011 11:12:22 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[C Program]]></category>
		<category><![CDATA[Cluster Group]]></category>
		<category><![CDATA[Company Mail]]></category>
		<category><![CDATA[Dag]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Emc]]></category>
		<category><![CDATA[Functionality]]></category>
		<category><![CDATA[High Availability Solution]]></category>
		<category><![CDATA[Mail Services]]></category>
		<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[Maitainance]]></category>
		<category><![CDATA[Members]]></category>
		<category><![CDATA[Microsoft Exchange Server]]></category>
		<category><![CDATA[Microsoft Server]]></category>
		<category><![CDATA[Node]]></category>
		<category><![CDATA[Pam]]></category>
		<category><![CDATA[PS Script]]></category>
		<category><![CDATA[Shutdown Exchange]]></category>
		<category><![CDATA[Type Cd]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[Windows Shutdown]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/2011/04/shut-down-exchange-2010-dag-member.html</guid>
		<description><![CDATA[Tweet &#160; While performing maintenance to Exchange 2010 DAG server you should first remove the DAG member from DAG group.Other wise you may have unwanted DB failovers and many other unexpected issue that may affect company mail services availability Shutting Down DAG Members The Exchange 2010 high availability solution is integrated with the Windows shutdown process. If an administrator or application initiates a shutdown of a Windows server in a DAG that has a mounted database that&#8217;s replicated to one or more DAG members, the system attempts to activate another copy of the mounted database prior to allowing the shutdown process to complete. However, this new behavior doesn&#8217;t guarantee that all of the databases on the server being shut down will experience a lossless activation. As a result, it&#8217;s a best practice to perform a server switchover prior to shutting down a server that&#8217;s a member of a DAG. The correct way to perform any maintenance is to run first&#160; StartDagServerMaintenance.ps1 script that is located under “C:Program FilesMicrosoftExchange ServerV14scripts” This script moves all the active databases to next preferred DAG server and prevents active databases from moving to that server during the maintenance. In addition the script ensures that all critical DAG support functionality that may be on this server has been moved to next proffered server To run the script open EMC Type: cd $exscripts StartDagServerMaintenance.ps1 -server YourServername The script performs the following tasks on the background: Runs the Suspend-MailboxDatabaseCopy cmdlet for each database copy hosted on the DAG member. Pauses the node in the cluster, which prevents the node from being and becoming the PAM. Sets the value of the DatabaseCopyAutoActivationPolicy parameter on the DAG member to blocked Moves all active databases currently hosted on the DAG member to other DAG members. If the DAG member currently owns the default cluster group, the script moves the default cluster group (and therefore the PAM role) to another DAG member. If any of the preceding tasks fails, all operations, except for successful database moves, are undone. &#160; After the maintenance is complete and the DAG member is ready to return to serve clients you need to run the following script: cd $exscripts StopDagServerMaintenance.ps1 -server YourServername The script performs the following tasks on the background: Runs the Resume-MailboxDatabaseCopy cmdlet for each database copy hosted on the DAG member. Resumes the node in the cluster, which enables full cluster functionality for the DAG member. Sets the value of the DatabaseCopyAutoActivationPolicy parameter on the DAG member to Unrestricted &#160; I highly recommend using&#160; Start/StopDagServerMaintenanceInstalling maintainance scripts before any action that requiers server Reboot/ShutDown or Update Rollups instalation. &#160; Most of the material has been taken from Managing Database Availability Groups MS article]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.kreslavsky.com%2F2011%2F04%2Fshut-down-exchange-2010-dag-member.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.kreslavsky.com/2011/04/shut-down-exchange-2010-dag-member.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.kreslavsky.com/2011/04/shut-down-exchange-2010-dag-member.html"  data-text="Shut Down Exchange 2010 DAG member" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.kreslavsky.com/2011/04/shut-down-exchange-2010-dag-member.html" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.kreslavsky.com/2011/04/shut-down-exchange-2010-dag-member.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>&#160;</p>
<p>While performing maintenance to Exchange 2010 DAG server you should first remove the DAG member from DAG group.Other wise you may have unwanted DB failovers and many other unexpected issue that may affect company mail services availability</p>
<p><strong>Shutting Down DAG Members</strong> </p>
<p>The Exchange 2010 high availability solution is integrated with the Windows shutdown process. If an administrator or application initiates a shutdown of a Windows server in a DAG that has a mounted database that&#8217;s replicated to one or more DAG members, the system attempts to activate another copy of the mounted database prior to allowing the shutdown process to complete. </p>
<p>However, this new behavior doesn&#8217;t guarantee that all of the databases on the server being shut down will experience a lossless activation. As a result, it&#8217;s a best practice to perform a server switchover prior to shutting down a server that&#8217;s a member of a DAG.</p>
<p>The correct way to perform any maintenance is to run first&#160; StartDagServerMaintenance.ps1 script that is located under “C:Program FilesMicrosoftExchange ServerV14scripts”   <br />This script moves all the active databases to next preferred DAG server and prevents active databases from moving to that server during the maintenance.     <br />In addition the script ensures that all critical DAG support functionality that may be on this server has been moved to next proffered server</p>
<p>To run the script open EMC   <br />Type:    <br /><em>cd $exscripts     <br />StartDagServerMaintenance.ps1 -server YourServername</em></p>
<p>The script performs the following tasks on the background:</p>
<ul>
<li>Runs the <em>Suspend-MailboxDatabaseCopy</em> cmdlet for each database copy hosted on the DAG member.</li>
<li>Pauses the node in the cluster, which prevents the node from being and becoming the PAM.</li>
<li>Sets the value of the <em>DatabaseCopyAutoActivationPolicy</em> parameter on the DAG member to <strong>blocked</strong></li>
<li>Moves all active databases currently hosted on the DAG member to other DAG members.</li>
<li>If the DAG member currently owns the default cluster group, the script moves the default cluster group (and therefore the PAM role) to another DAG member.</li>
</ul>
<p>If any of the preceding tasks fails, all operations, except for successful database moves, are undone.</p>
<p>&#160;</p>
<p>After the maintenance is complete and the DAG member is ready to return to serve clients you need to run the following script: </p>
<p><em>cd $exscripts     <br />StopDagServerMaintenance.ps1 -server YourServername</em></p>
<p>The script performs the following tasks on the background:</p>
<ul>
<li>Runs the Resume-MailboxDatabaseCopy cmdlet for each database copy hosted on the DAG member.</li>
<li>Resumes the node in the cluster, which enables full cluster functionality for the DAG member.</li>
<li>Sets the value of the <em>DatabaseCopyAutoActivationPolicy</em> parameter on the DAG member to <strong>Unrestricted</strong></li>
</ul>
<p>&#160;</p>
<p><img src="http://i.msdn.microsoft.com/Global/Images/clear.gif" />I highly recommend using&#160; Start/StopDagServerMaintenanceInstalling maintainance scripts before any action that requiers server Reboot/ShutDown or Update Rollups instalation.</p>
<p>&#160;</p>
<p>Most of the material has been taken from Managing <a href="http://technet.microsoft.com/en-us/library/dd298065.aspx" target="_blank">Database Availability Groups MS article</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2011/04/shut-down-exchange-2010-dag-member.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Some Exchange 2010sp1 power shell scripts part1</title>
		<link>http://www.kreslavsky.com/2011/04/some-exchange-2010sp1-power-shell-scripts-part1.html</link>
		<comments>http://www.kreslavsky.com/2011/04/some-exchange-2010sp1-power-shell-scripts-part1.html#comments</comments>
		<pubDate>Thu, 14 Apr 2011 11:23:19 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Alias]]></category>
		<category><![CDATA[Cluster Member]]></category>
		<category><![CDATA[Csv]]></category>
		<category><![CDATA[Dag]]></category>
		<category><![CDATA[Distribution Group]]></category>
		<category><![CDATA[Firewall]]></category>
		<category><![CDATA[Group Owner]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[Mailbox Format]]></category>
		<category><![CDATA[Mailboxes]]></category>
		<category><![CDATA[Move Mailbox]]></category>
		<category><![CDATA[Profiles]]></category>
		<category><![CDATA[Quota Report]]></category>
		<category><![CDATA[Server Exchange]]></category>
		<category><![CDATA[Server Servername]]></category>
		<category><![CDATA[Shell Scripts]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/?p=1163</guid>
		<description><![CDATA[Tweet &#160; Get Quota report Get-Mailbox &#124; Format-Table alias, *quota Delete message from Mailbox get-mailbox -resultsize unlimited &#124; search-mailbox -SearchQuery &#8220;Subject:ABDCEV&#8217;&#8221; -DeleteContent Turn Off firewall on all profiles netsh advfirewall set allprofiles firewallpolicy allowinbound,allowoutbound Exchange 2007 &#8211; check DB copy status. Get-StorageGroupCopyStatus -StandbyMachine mtvmail01 Message Tracking log to csv (&#124; Select Sender, Recipients, TimeStamp, MessageSubject) Get-MessageTrackingLog -Server servername-ResultSize Unlimited &#124; Where { $_.Sender -like &#8220;username*&#8221; } &#124; Export-CSV &#8220;c:username.csv&#8221; Put Exchange DAG cluster member to Maintainance cd $exscripts StartDagServerMaintenance.ps1 -server servername Get Exchange DAG cluster member from Mainatainance cd $exscripts StopDagServerMaintenance.ps1 -server servername Set Distribution group owner Set-DistributionGroup groupname -ManagedBy &#8220;User Name&#8221; -BypassSecurityGroupManagerCheck Access rights to all mailboxes in DB or All Get-Mailbox &#124; Add-MailboxPermission -User “Username” -AccessRights FullAccess -InheritanceType All Get-MailboxDatabase –identity “DBNAME” &#124; Add-ADPermission -User “UserName” -AccessRights GenericAll Move Mailbox New-MoveRequest -Identity user@mail.com -TargetDatabase DBNAME -BadItemLimit 100 -AcceptLargeDataLoss Add permition to send as Add-ADpermission -Identity &#8220;DatabaseName&#8221; -user &#8220;username&#8221;  -ExtendedRights Receive-as]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.kreslavsky.com%2F2011%2F04%2Fsome-exchange-2010sp1-power-shell-scripts-part1.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.kreslavsky.com/2011/04/some-exchange-2010sp1-power-shell-scripts-part1.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.kreslavsky.com/2011/04/some-exchange-2010sp1-power-shell-scripts-part1.html"  data-text="Some Exchange 2010sp1 power shell scripts part1" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.kreslavsky.com/2011/04/some-exchange-2010sp1-power-shell-scripts-part1.html" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.kreslavsky.com/2011/04/some-exchange-2010sp1-power-shell-scripts-part1.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>&nbsp;</p>
<p><strong>Get Quota report<br />
</strong>Get-Mailbox | Format-Table alias, *quota</p>
<p><strong>Delete message from Mailbox<br />
</strong>get-mailbox -resultsize unlimited | search-mailbox -SearchQuery &#8220;Subject:ABDCEV&#8217;&#8221; -DeleteContent</p>
<p><strong>Turn Off firewall on all profiles<br />
</strong>netsh advfirewall set allprofiles firewallpolicy allowinbound,allowoutbound</p>
<p><strong>Exchange 2007 &#8211; check DB copy status.<br />
</strong>Get-StorageGroupCopyStatus -StandbyMachine mtvmail01</p>
<p><strong>Message Tracking log to csv (| Select Sender, Recipients, TimeStamp, MessageSubject)<br />
</strong>Get-MessageTrackingLog -Server <strong>servername</strong>-ResultSize Unlimited | Where { $_.Sender -like &#8220;username*&#8221; } | Export-CSV &#8220;c:username.csv&#8221;</p>
<p><strong>Put Exchange DAG cluster member to Maintainance<br />
</strong>cd $exscripts<br />
StartDagServerMaintenance.ps1 -server servername</p>
<p><strong>Get Exchange DAG cluster member from Mainatainance</strong></p>
<p>cd $exscripts<br />
StopDagServerMaintenance.ps1 -server servername</p>
<p><strong>Set Distribution group owner<br />
</strong>Set-DistributionGroup groupname -ManagedBy &#8220;User Name&#8221; -BypassSecurityGroupManagerCheck</p>
<p><strong>Access rights to all mailboxes in DB or All<br />
</strong>Get-Mailbox | Add-MailboxPermission -User “Username” -AccessRights FullAccess -InheritanceType All<br />
Get-MailboxDatabase –identity “DBNAME” | Add-ADPermission -User “UserName” -AccessRights GenericAll</p>
<p><strong>Move Mailbox<br />
</strong>New-MoveRequest -Identity user@mail.com -TargetDatabase DBNAME -BadItemLimit 100 -AcceptLargeDataLoss</p>
<p><strong>Add permition to send as<br />
</strong>Add-ADpermission -Identity &#8220;DatabaseName&#8221; -user &#8220;username&#8221;  -ExtendedRights Receive-as</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2011/04/some-exchange-2010sp1-power-shell-scripts-part1.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manage mobile phone option is missing on users</title>
		<link>http://www.kreslavsky.com/2011/02/manage-mobile-phone-option-is-missing-on-users.html</link>
		<comments>http://www.kreslavsky.com/2011/02/manage-mobile-phone-option-is-missing-on-users.html#comments</comments>
		<pubDate>Tue, 15 Feb 2011 10:44:28 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Active Sync]]></category>
		<category><![CDATA[Adsi]]></category>
		<category><![CDATA[Mobile access]]></category>
		<category><![CDATA[Mobile Data]]></category>
		<category><![CDATA[Mobile Phone]]></category>
		<category><![CDATA[Partnership]]></category>
		<category><![CDATA[Phone Option]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/2011/02/manage-mobile-phone-option-is-missing-on-users.html</guid>
		<description><![CDATA[Tweet &#160; Manage mobile phone option gets you the ability to &#34;Remove mobile phone partnership&#34; and &#34;perform a remote wipe to clear mobile phone data.” If this option is missing run ADSI edit, locate problematic user in user properties find msExchMobileMailboxFlags and set to 1]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.kreslavsky.com%2F2011%2F02%2Fmanage-mobile-phone-option-is-missing-on-users.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.kreslavsky.com/2011/02/manage-mobile-phone-option-is-missing-on-users.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.kreslavsky.com/2011/02/manage-mobile-phone-option-is-missing-on-users.html"  data-text="Manage mobile phone option is missing on users" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.kreslavsky.com/2011/02/manage-mobile-phone-option-is-missing-on-users.html" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.kreslavsky.com/2011/02/manage-mobile-phone-option-is-missing-on-users.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>&#160;</p>
<p>Manage mobile phone option gets you the ability to &quot;Remove mobile phone partnership&quot; and &quot;perform a remote wipe to clear mobile phone data.”</p>
<p>If this option is missing run ADSI edit, locate problematic user in user properties find <strong>msExchMobileMailboxFlags</strong> and set to 1</p>
<p><a href="http://www.kreslavsky.com/wp-content/uploads/2011/02/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.kreslavsky.com/wp-content/uploads/2011/02/image_thumb.png" width="406" height="352" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2011/02/manage-mobile-phone-option-is-missing-on-users.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It didn&#8217;t specify an end date. The end date must be before</title>
		<link>http://www.kreslavsky.com/2011/01/it-didnt-specify-an-end-date-the-end-date-must-be-before.html</link>
		<comments>http://www.kreslavsky.com/2011/01/it-didnt-specify-an-end-date-the-end-date-must-be-before.html#comments</comments>
		<pubDate>Mon, 10 Jan 2011 08:24:26 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Implementation]]></category>
		<category><![CDATA[Mailboxes]]></category>
		<category><![CDATA[Recursive meeting]]></category>
		<category><![CDATA[Window Period]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/2011/01/it-didnt-specify-an-end-date-the-end-date-must-be-before.html</guid>
		<description><![CDATA[Tweet In Exchange 2010 ,while you try to schedule a recursive meeting you may receive the following error “Your meeting request was declined” It didn&#8217;t specify an end date. The end date must be before xx/xx/xx After implementation of Exchange 2010 ,room mailboxes got automatic setting setting that rejects recursive meetings beyond defined booking window. To resolve the issue you can: Increase booking window period Remove checkbox from “Reject repeating meetings that have an end date beyond the booking window.]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.kreslavsky.com%2F2011%2F01%2Fit-didnt-specify-an-end-date-the-end-date-must-be-before.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.kreslavsky.com/2011/01/it-didnt-specify-an-end-date-the-end-date-must-be-before.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.kreslavsky.com/2011/01/it-didnt-specify-an-end-date-the-end-date-must-be-before.html"  data-text="It didn&#8217;t specify an end date. The end date must be before" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.kreslavsky.com/2011/01/it-didnt-specify-an-end-date-the-end-date-must-be-before.html" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.kreslavsky.com/2011/01/it-didnt-specify-an-end-date-the-end-date-must-be-before.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>In Exchange 2010 ,while you try to schedule a recursive meeting you may receive the following error</p>
<p><strong><font color="#ff0000">“Your meeting request was declined”       <br />It didn&#8217;t specify an end date. The end date must be before xx/xx/xx</font></strong></p>
<p>After implementation of Exchange 2010 ,room mailboxes got automatic setting setting that rejects recursive meetings beyond defined booking window.</p>
<p>To resolve the issue you can:</p>
<ol>
<li>Increase booking window period</li>
<li>Remove checkbox from “Reject repeating meetings that have an end date beyond the booking window.</li>
</ol>
<p><a href="http://www.kreslavsky.com/wp-content/uploads/2011/01/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="It didn&#39;t specify an end date. The end date must be before " border="0" alt="It didn&#39;t specify an end date. The end date must be before " src="http://www.kreslavsky.com/wp-content/uploads/2011/01/image_thumb.png" width="346" height="416" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2011/01/it-didnt-specify-an-end-date-the-end-date-must-be-before.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send Email Powershell script</title>
		<link>http://www.kreslavsky.com/2010/11/send-email-powershell-script.html</link>
		<comments>http://www.kreslavsky.com/2010/11/send-email-powershell-script.html#comments</comments>
		<pubDate>Thu, 25 Nov 2010 12:36:00 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[Att]]></category>
		<category><![CDATA[Attachments]]></category>
		<category><![CDATA[C Program]]></category>
		<category><![CDATA[Exe]]></category>
		<category><![CDATA[Mail Attachment]]></category>
		<category><![CDATA[Mailmessage]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Microsoft Exchange Server]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[PS Script]]></category>
		<category><![CDATA[Ps1]]></category>
		<category><![CDATA[Quot]]></category>
		<category><![CDATA[Recipient Address]]></category>
		<category><![CDATA[Send Email]]></category>
		<category><![CDATA[Send Mail]]></category>
		<category><![CDATA[Send mail Powershel]]></category>
		<category><![CDATA[Smtp]]></category>
		<category><![CDATA[Task Scheduler]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/2010/11/send-email-powershell-script.html</guid>
		<description><![CDATA[Tweet &#160; Some times we need to use PS script to send email, script can be used in Task Scheduler or any other program BatchFile to run script: Create *.bat file C:WindowsSystem32WindowsPowerShellv1.0powershell.exe -PSConsoleFile &#34;C:Program FilesMicrosoftExchange Serverbinexshell.psc1&#34; -noexit -command &#34;. C:scriptslocationscriptname.ps1&#34; &#160; PS Script to send mail: Create&#160; .ps1 file $filename = “c:filelocationHtmlFIleyouwant torecieve.html” $smtpServer = “SMTP Servername” $msg = new-object Net.Mail.MailMessage $att = new-object Net.Mail.Attachment($filename) $smtp = new-object Net.Mail.SmtpClient($smtpServer) $msg.From = “sendername@domainanme” $msg.To.Add(“recipient_address@domainanme”) $msg.Subject = “Subject” $msg.Body = “Body ” $msg.Attachments.Add($att) $smtp.Send($msg)]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.kreslavsky.com%2F2010%2F11%2Fsend-email-powershell-script.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.kreslavsky.com/2010/11/send-email-powershell-script.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.kreslavsky.com/2010/11/send-email-powershell-script.html"  data-text="Send Email Powershell script" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.kreslavsky.com/2010/11/send-email-powershell-script.html" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.kreslavsky.com/2010/11/send-email-powershell-script.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>&#160;</p>
<p>Some times we need to use PS script to send email, script can be used in Task Scheduler or any other program</p>
<p>BatchFile to run script: Create *.bat file </p>
<p>C:WindowsSystem32WindowsPowerShellv1.0powershell.exe -PSConsoleFile &quot;C:Program FilesMicrosoftExchange Serverbinexshell.psc1&quot; -noexit -command &quot;.<em><strong> C:scriptslocationscriptname.ps1</strong></em>&quot;</p>
<p>&#160;</p>
<p><strong>PS Script to send mail:</strong> Create&#160; .ps1 file </p>
<p>$filename = “<strong>c:filelocationHtmlFIleyouwant torecieve.html</strong>”    <br />$smtpServer = “<strong><em>SMTP Servername</em></strong>” </p>
<p>$msg = new-object Net.Mail.MailMessage   <br />$att = new-object Net.Mail.Attachment($filename)    <br />$smtp = new-object Net.Mail.SmtpClient($smtpServer) </p>
<p>$msg.From = “<strong><em>sendername@domainanme</em></strong>”    <br />$msg.To.Add(“<strong><em>recipient_address@domainanme</em></strong>”)    <br />$msg.Subject = “Subject”    <br />$msg.Body = “Body ”    <br />$msg.Attachments.Add($att)     <br />$smtp.Send($msg)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2010/11/send-email-powershell-script.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Exchange 2010 Video Guides</title>
		<link>http://www.kreslavsky.com/2009/11/microsoft-exchange-2010-video-guides.html</link>
		<comments>http://www.kreslavsky.com/2009/11/microsoft-exchange-2010-video-guides.html#comments</comments>
		<pubDate>Fri, 06 Nov 2009 13:06:00 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Guides]]></category>
		<category><![CDATA[Video Guides]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/2009/11/microsoft-exchange-2010-video-guides.html</guid>
		<description><![CDATA[Tweet &#160; Microsoft Released set of new videos explaining HA and Unified Messaging features in Exchange 2010. Videos are available online under the following links High Availability and Storage in Exchange Server 2010 (17 minutes) Unified Messaging in Exchange Server 2010 (18 minutes)]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.kreslavsky.com%2F2009%2F11%2Fmicrosoft-exchange-2010-video-guides.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.kreslavsky.com/2009/11/microsoft-exchange-2010-video-guides.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.kreslavsky.com/2009/11/microsoft-exchange-2010-video-guides.html"  data-text="Microsoft Exchange 2010 Video Guides" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.kreslavsky.com/2009/11/microsoft-exchange-2010-video-guides.html" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.kreslavsky.com/2009/11/microsoft-exchange-2010-video-guides.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>&#160;</p>
<p>Microsoft Released set of new videos explaining HA and Unified Messaging features in Exchange 2010.</p>
<p><a href="http://www.kreslavsky.com/wp-content/uploads/2009/11/image11.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Exchange 2010" border="0" alt="Exchange 2010" src="http://www.kreslavsky.com/wp-content/uploads/2009/11/image_thumb10.png" width="392" height="188" /></a> </p>
<p>Videos are available online under the following links </p>
<ul>
<li><a href="http://www.microsoft.com/learning/_silverlight/learningsnacks/exchange/snack01/Default.html"><b>High Availability and Storage in Exchange Server 2010</b></a> (17 minutes)      </li>
<li><a href="http://www.microsoft.com/learning/_silverlight/learningsnacks/exchange/snack02/Default.html"><b>Unified Messaging in Exchange Server 2010</b></a> (18 minutes)      </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2009/11/microsoft-exchange-2010-video-guides.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

