<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>blog.powershell.no &#187; Microsoft Outlook</title>
	<atom:link href="http://blog.powershell.no/category/microsoft-outlook/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.powershell.no</link>
	<description>On Windows PowerShell and other admin-related topics</description>
	<lastBuildDate>Mon, 06 Feb 2012 09:18:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.powershell.no' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/e22e511529c14fbc92cde5589d6231b4?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>blog.powershell.no &#187; Microsoft Outlook</title>
		<link>http://blog.powershell.no</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.powershell.no/osd.xml" title="blog.powershell.no" />
	<atom:link rel='hub' href='http://blog.powershell.no/?pushpress=hub'/>
		<item>
		<title>Send text messages (SMS) using Windows PowerShell</title>
		<link>http://blog.powershell.no/2010/07/21/send-text-messages-sms-using-windows-powershell/</link>
		<comments>http://blog.powershell.no/2010/07/21/send-text-messages-sms-using-windows-powershell/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 15:01:41 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Active Directory management]]></category>
		<category><![CDATA[Microsoft Outlook]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[powershell send sms]]></category>
		<category><![CDATA[powershell send text message]]></category>
		<category><![CDATA[sms from powershell]]></category>

		<guid isPermaLink="false">https://janegilring.wordpress.com/2010/07/21/send-text-messages-sms-using-windows-powershell/</guid>
		<description><![CDATA[In Microsoft Office Outlook there is an add-in called Microsoft Outlook SMS Add-in (MOSA), which provides the ability to send text messages (SMS). MOSA is builtin to Outlook 2010, and are available as a plugin for Outlook 2003 and 2007 here. On the Microsoft Office Online Help you can find guidance on how to set [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&amp;blog=5892504&amp;post=571&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Microsoft Office Outlook there is an add-in called Microsoft Outlook SMS Add-in (MOSA), which provides the ability to send text messages (SMS). MOSA is builtin to Outlook 2010, and are available as a plugin for Outlook 2003 and 2007 <a href="http://www.microsoft.com/downloads/details.aspx?familyid=240080b4-986e-4afb-ab21-3af2be63508b&amp;displaylang=en" target="_blank">here</a>.</p>
<p>On the <a href="http://office.microsoft.com/en-gb/outlook-help/send-and-receive-text-messages-sms-HA101823438.aspx" target="_blank">Microsoft Office Online Help</a> you can find guidance on how to set up the service account and sending a text message. To find the necessary settings for your mobile service provider, go <a href="http://messaging.office.microsoft.com/HostingProviders.aspx?src=O14&amp;lc=1033" target="_blank">here</a>.</p>
<p>I looked into the <a href="http://msdn.microsoft.com/en-us/library/ms268893(v=VS.80).aspx" target="_blank">COM-object for Outlook</a>, and it turned out to be rather easy to use this API to send text messages from MOSA.<br />
Based on that I created an <a href="http://technet.microsoft.com/en-us/library/dd315326.aspx" target="_blank">Advanced function</a> in Windows PowerShell v2 called <a href="http://poshcode.org/1999" target="_blank">Send-SMSMessage</a>.</p>
<p>To define the function you can either paste it directly into your session, save it as a ps1 script-file and <a href="http://technet.microsoft.com/en-us/library/ee176949.aspx#ECAA" target="_blank">dot source</a> it, put it into your <a href="http://technet.microsoft.com/en-us/library/ee692764.aspx" target="_blank">profile</a> or into a <a href="http://msdn.microsoft.com/en-us/library/dd901839(VS.85).aspx" target="_blank">module</a>.</p>
<p>When that is accomplished you can find usage information using the consistent Get-Help cmdlet:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/07/image.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/07/image_thumb.png?w=638&#038;h=531" border="0" alt="image" width="638" height="531" /></a></p>
<p>Sample usage:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/07/image1.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/07/image_thumb1.png?w=987&#038;h=55" border="0" alt="image" width="987" height="55" /></a></p>
<p>The function checks if Outlook are installed, and breaks out with a warning if not:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/07/image2.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/07/image_thumb2.png?w=984&#038;h=65" border="0" alt="image" width="984" height="65" /></a></p>
<p>It also checks to see if an account are configured for Text Messaging (SMS):</p>
<p><a href="http://janegilring.files.wordpress.com/2010/07/image3.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/07/image_thumb3.png?w=986&#038;h=64" border="0" alt="image" width="986" height="64" /></a></p>
<p>Any errors related to service availabilty, correct phonenumber format and so on are handled by the SMS Add-in itself. These error messages appear in the Outlook inbox:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/07/image4.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/07/image_thumb4.png?w=469&#038;h=216" border="0" alt="image" width="469" height="216" /></a></p>
<p>The function is tested from Outlook 2010 only, but should work from 2003 and 2007 also when MOSA is installed.</p>
<p>Since the function accepts ValueFromPipeline and ValueFromPipelineByPropertyName you can use it in conjunction with e.g. the <a href="http://technet.microsoft.com/en-us/library/ee617195.aspx" target="_blank">Active Directory cmdlets for Windows PowerShell</a>.  A given example of this retrieves all users from Active Directory with a derfined mobilephone number and sends them an SMS with their username:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/07/image5.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/07/image_thumb5.png?w=988&#038;h=77" border="0" alt="image" width="988" height="77" /></a></p>
<p>Another practical usage scenario I can think of is combining the Send-SMSMessage function with user provisioning, sending the new user it`s new username and password.<br />
Feel free to come up with more usage scenarios in the comment field below.</p>
<p><strong>Bonus tips</strong></p>
<ul>
<li>You can also send MMS messages using the Outlook COM-object. To do this, use “olMobileItemMMS” instead of “olMobileItemSMS” in the following line: $NewMessage = $outlook.CreateItem(&#8220;olMobileItemMMS&#8221;). You should also look into the other properties for MMS messages, like the Attachment-property.</li>
<li>If you got more than one account configured for text messaging, you can use the SendUsingAccount-property to define which account to send from.</li>
<li>If you use the Norwegian mobile service provider Telenor, the “Service Provider URL” in the account settings is <a title="https://telenormobil.no/smapi/services/omsv3_service" href="https://telenormobil.no/smapi/services/omsv3_service">https://telenormobil.no/smapi/services/omsv3_service</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/janegilring.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janegilring.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janegilring.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/janegilring.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/571/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&amp;blog=5892504&amp;post=571&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/07/21/send-text-messages-sms-using-windows-powershell/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/07/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/07/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/07/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/07/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/07/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/07/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Outlook signature based on user information from Active Directory</title>
		<link>http://blog.powershell.no/2010/01/09/outlook-signature-based-on-user-information-from-active-directory/</link>
		<comments>http://blog.powershell.no/2010/01/09/outlook-signature-based-on-user-information-from-active-directory/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 11:51:45 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Microsoft Outlook]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[outlook signature from active directory]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2010/01/09/outlook-signature-based-on-user-information-from-active-directory/</guid>
		<description><![CDATA[To provide a consistent company image all users should use the same signature template in their Outlook profile. I`ve created a Windows PowerShell-script to deploy a consistent Outlook signature to users, based on user information retrieved from Active Directory. I`ve used the fields “Display name”, “Title, “E-mail” and “Telephone number”, however, additional fields may be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&amp;blog=5892504&amp;post=364&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To provide a consistent company image all users should use the same signature template in their Outlook profile. I`ve created a Windows PowerShell-script to deploy a consistent Outlook signature to users, based on user information retrieved from Active Directory. I`ve used the fields “Display name”, “Title, “E-mail” and “Telephone number”, however, additional fields may be added to suit your needs.</p>
<p>&nbsp;</p>
<p><span style="font-size:medium;">Step-by-step</span></p>
<p>1) Download the script from <a href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/6f7eee4b-1f42-499e-ae59-1aceb26100de">here</a>. Save it to a UNC-path accessible for all users.</p>
<p>2) Adjust the custom variables:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb.png?w=644&#038;h=57" border="0" alt="image" width="644" height="57" /></a></p>
<p>3) From an Outlook client, create a signature based on your company template:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image1.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb1.png?w=244&#038;h=164" border="0" alt="image" width="244" height="164" /></a></p>
<p>4) Copy the signature files from %appdata%\Microsoft\Signatures to the UNC-path specified in the SigSource-variable in the script:</p>
<p>&nbsp;</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image2.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb2.png?w=125&#038;h=91" border="0" alt="image" width="125" height="91" /></a></p>
<p>&nbsp;</p>
<p>5) Open both Company Name.rtf and Company Name.htm in Microsoft Office Word and insert the following bookmarks:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image3.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb3.png?w=244&#038;h=129" border="0" alt="image" width="244" height="129" /></a></p>
<p>Mark each word, e.g. “EmailAddress”, go to “Insert”, press the “Bookmark”-button and name the bookmark “EmailAddress”. It`s important that the names of the bookmarks are “DisplayName”, “Title”, “TelephoneNumber” and “EmailAddress”.<br />
This is because these bookmarks are replaced by the information retrieved from Active Directory for the logged-on user.</p>
<p>6) When appropriately tested, deploy the script to end users. This may be accomplished by e.g. Group Policy:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image4.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb4.png?w=244&#038;h=170" border="0" alt="image" width="244" height="170" /></a></p>
<p>&nbsp;</p>
<p><span style="font-size:medium;">Additional information</span></p>
<p>Sample signature created using Set-OutlookSignature.ps1:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image5.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb5.png?w=150&#038;h=148" border="0" alt="image" width="150" height="148" /></a></p>
<p>Active Directory object for sample user:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image6.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb6.png?w=194&#038;h=244" border="0" alt="image" width="194" height="244" /></a> <a href="http://janegilring.files.wordpress.com/2010/01/image7.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb7.png?w=196&#038;h=244" border="0" alt="image" width="196" height="244" /></a></p>
<p>&nbsp;</p>
<p>Settings are stored in HKCU in the registry:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image8.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb8.png?w=244&#038;h=100" border="0" alt="image" width="244" height="100" /></a></p>
<p>A few notes:<br />
-Existing signatures are preserved<br />
-Users are allowed to make customizations to their signatures until a new version are deployed. Then the exisiting company-signature will be overwritten.</p>
<p>&nbsp;</p>
<p>Update 21.11.2010: The script are improved by Darren Kattan. For details and updated instructions, see <a href="http://www.immense.net/deploying-unified-email-signature-template-outlook/">this</a> blog-post.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/janegilring.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janegilring.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janegilring.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/janegilring.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/364/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&amp;blog=5892504&amp;post=364&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/01/09/outlook-signature-based-on-user-information-from-active-directory/feed/</wfw:commentRss>
		<slash:comments>37</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
	</channel>
</rss>
