<?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>Easy to Read Articles &#187; powershell</title>
	<atom:link href="http://www.easyreadarticles.com/Tags/powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.easyreadarticles.com</link>
	<description>Best Technical Writing Online , Easy Reading Books and much more!</description>
	<lastBuildDate>Fri, 10 Feb 2012 14:46:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Live@EDU Outlook Live &#8211; How to get started</title>
		<link>http://www.easyreadarticles.com/applications/liveedu-outlook-live-how-to-get-started/#utm_source=articlesfeed&#038;utm_medium=articlesfeed&#038;utm_campaign=articlesfeed</link>
		<comments>http://www.easyreadarticles.com/applications/liveedu-outlook-live-how-to-get-started/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 07:22:04 +0000</pubDate>
		<dc:creator>EasyReadArticles.com</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[exchange labs]]></category>
		<category><![CDATA[Live@EDU]]></category>
		<category><![CDATA[Outlook Live]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[Windows 2008 Server]]></category>
		<category><![CDATA[WS08]]></category>

		<guid isPermaLink="false">http://www.easyreadarticles.com/?p=203</guid>
		<description><![CDATA[How to easily create and modify Live@EDU Outlook Live users, mailboxes and groups.]]></description>
			<content:encoded><![CDATA[<p>Well I found snippets of cmdlet you can use in PowerShell however knowing how a lot of schools have drive by out sourced technicians and librarians/teachers looking after the school network I thought of commenting on what is going on in the scripts;  not everyone has a full time team or administrator in their school.</p>
<p>It looks like the future will consist of schools taking advantage of Live@EDU Outlook Live so I hope this articles can help you in some way.</p>
<h4><strong>Recommended Prerequisites</strong></h4>
<p><strong><br />
</strong></p>
<ul>
<li>Windows Server 2008 with updates and Internet</li>
</ul>
<ul>
<li>Outlook Live setup with your trusted domains, MX records configured with ISP and Online.</li>
</ul>
<ul>
<li>Domain.live.com Administrator account details</li>
</ul>
<ul>
<li>Check the version of Windows PowerShell on your computer.</li>
</ul>
<ul>
<li>Check the version of WinRM on your computer.</li>
</ul>
<ul>
<li>Install the latest versions of Windows PowerShell and WinRM.</li>
</ul>
<ul>
<li>Verify that Windows PowerShell can run scripts.</li>
</ul>
<ul>
<li>Coffee</li>
</ul>
<h4><strong>Links below will guide you along:</strong></h4>
<ul>
<li><a rel="nofollow" title="Sign up for Microsoft Live@edu" href="https://signup.eduadmin.live.com/default.aspx?1&amp;lc=3081" target="_blank">https://signup.eduadmin.live.com/default.aspx?1&amp;lc=3081</a> &#8211; Sign up for Microsoft Live@edu</li>
<li><a rel="nofollow" title="Install and Configure Windows PowerShell" href="http://help.outlook.com/en-us/140/cc952756.aspx" target="_blank">http://help.outlook.com/en-us/140/cc952756.aspx</a> &#8211; Install and Configure Windows PowerShell</li>
<li><a rel="nofollow" title="Connect Windows PowerShell to Outlook Live" href="http://help.outlook.com/en-us/140/cc952755.aspx" target="_blank">http://help.outlook.com/en-us/140/cc952755.aspx</a> &#8211; Connect Windows PowerShell to Outlook Live</li>
</ul>
<p>Once you have PowerShell up to date and working you should be good to go. Ok here we go&#8230;..</p>
<h3>Live@EDU Outlook Live &#8211; Creating Users using PowerShell, PS1 script and a CSV file.</h3>
<p>I stumbled across the blog of Jonny on <a rel="nofollow" title="LiveatEDU Spaces" href="http://liveatedu.spaces.live.com/blog/cns!C76EAE4D4A509FBD!798.entry?sa=134565126" target="_blank">http://liveatedu.spaces.live.com</a> regarding creation of Live@EDU mailboxes.</p>
<p>The video is a helpful took I recommend watching before you proceed</p>
<p><a rel="nofollow" href="http://silverlight.services.live.com/71782/create%20accounts%20using%20PowerShell/video.wmv">PowerShell Video</a></p>
<p><strong>PLEASE READ FIRST</strong></p>
<p><strong>From: <a rel="nofollow" href="http://help.outlook.com/en-us/140/cc952756.aspx">http://help.outlook.com/en-us/140/cc952756.aspx</a> &#8211; Also mentioned at the beginning of this article.</strong></p>
<p><strong>In PowerShell: </strong><strong>Verify that Windows PowerShell can run scripts</strong></p>
<p><strong> </strong> Click Start &gt; All Programs &gt; Windows PowerShell V2.</p>
<p style="DISPLAY: block">Right-click Windows PowerShell V2 and select Run as administrator. If you get a user account control prompt that asks if you would like to continue, respond Continue.</p>
<p style="DISPLAY: block">Run the following command:</p>
<p style="DISPLAY: block"><strong>Get-ExecutionPolicy</strong></p>
<p style="DISPLAY: block">If the value returned is anything other than <code>RemoteSigned</code>, you need to change the value to <code>RemoteSigned</code>.</p>
<p style="DISPLAY: block"><strong>Note. </strong>When you set the script execution policy to <code>RemoteSigned</code>, you can only run scripts that you create on your computer or scripts that are signed by a trusted source.</p>
<p style="DISPLAY: block">
<p style="DISPLAY: block">The only way so far I have managed to get ps1 scripts to run is using the following command:</p>
<p style="DISPLAY: block"><strong>Set-ExecutionPolicy Unrestricted</strong></p>
<p style="DISPLAY: block">Now if ExecutionPolicy command is set to &#8216;Unrestricted&#8217; it will run untrusted scripts.</p>
<p style="DISPLAY: block">I tried many times trying to sign my own ps1 files however it kept spitting out errors, <strong>so proceed only if you trust the script you are about to run.</strong></p>
<p style="DISPLAY: block">
<p style="DISPLAY: block"><strong> 3, 2, 1, 0 &#8230;&#8230;.</strong></p>
<p style="DISPLAY: block"><strong> </strong></p>
<h2>Some prep work to utilise video: (Copy &amp; Paste)</h2>
<ul>
<li>Create the folder &#8216;Tools&#8217; in &#8220;C: Drive&#8221;.</li>
<li>Create the folder &#8216;Logging&#8217; in &#8220;c:\Tools&#8221;.</li>
<li>Download the <strong>CSV_Parser.ps1</strong> file from <a rel="nofollow" title="CSV_Parser.ps1" href="https://cid-d35070e32bb84f04.skydrive.live.com/self.aspx/Live@edu/Exchange%20Labs/Provisioning/R3/CSV|_Parser.ps1" target="_blank">here</a></li>
<li>Save it into &#8220;c:\Tools&#8221;</li>
</ul>
<h4>Create the file NewMailbox.csv in notepad &amp; paste the following example:</h4>
<p>Action,Type,Name,EmailAddress,FirstName,LastName,DisplayName,Password,ForceChangePassword</p>
<p>Add,Mailbox,TestMbx8888,TestMbx8888@yourdomain.edu,Test,TestMbx8888,Test Mbx8888,1111111,0</p>
<p>Add,Mailbox,TestMbx8889,TestMbx8889@yourdomain.edu,Test,TestMbx8889,Test Mbx8889,1111111,0</p>
<p>Add,Mailbox,TestMbx8890,TestMbx8888@yourdomain.edu,Test,TestMbx8890,Test Mbx8890,1111111,0</p>
<p>Add,Mailbox,TestMbx8891,TestMbx8889@yourdomain.edu,Test,TestMbx8891,Test Mbx8891,1111111,0</p>
<p>Add,Mailbox,TestMbx8892,TestMbx8888@yourdomain.edu,Test,TestMbx8892,Test Mbx8892,1111111,0</p>
<ul>
<li>Save it into &#8216;c:\Tools&#8221;</li>
</ul>
<p>Open up PowerShell ISE (CTP3) and use the following cmdlet&#8217;s:</p>
<p><strong>$Livecred = get-credential</strong></p>
<ul>
<li>It will ask you to enter your Live@EDU account details.</li>
</ul>
<p><strong>c:\Tools\CSV_Parser.ps1 -UsersFile c:\Tools\NewMailbox.csv -LiveCredential $LiveCred -LogDirectory c:\Tools\Logging -ValidateAction $true</strong></p>
<p>That is it, check out your Outlook Live console for changes.</p>
<h3>Live@EDU Outlook Live &#8211; Creating groups using PowerShell, PS1 script and a CSV file.</h3>
<p>To create groups in your Live@EDU account is pretty easy once you know how, there are other methods but I have written what has worked for me.</p>
<p><strong>PLEASE READ FIRST</strong></p>
<p><strong>From: <a rel="nofollow" href="http://help.outlook.com/en-us/140/cc952756.aspx">http://help.outlook.com/en-us/140/cc952756.aspx</a> &#8211; Also mentioned at the beginning of this article.</strong></p>
<p><strong>In PowerShell: </strong><strong>Verify that Windows PowerShell can run scripts</strong></p>
<p><strong> </strong> Click Start &gt; All Programs &gt; Windows PowerShell V2.</p>
<p style="DISPLAY: block">Right-click Windows PowerShell V2 and select Run as administrator. If you get a user account control prompt that asks if you would like to continue, respond Continue.</p>
<p style="DISPLAY: block">Run the following command:</p>
<p style="DISPLAY: block"><strong>Get-ExecutionPolicy</strong></p>
<p style="DISPLAY: block">If the value returned is anything other than <code>RemoteSigned</code>, you need to change the value to <code>RemoteSigned</code>.</p>
<p style="DISPLAY: block"><strong>Note</strong> When you set the script execution policy to <code>RemoteSigned</code>, you can only run scripts that you create on your computer or scripts that are signed by a trusted source.</p>
<p style="DISPLAY: block">
<p style="DISPLAY: block">The only way so far I have managed to get ps1 scripts to run is using the following command:</p>
<p style="DISPLAY: block"><strong>Set-ExecutionPolicy Unrestricted</strong></p>
<p style="DISPLAY: block">Now if ExecutionPolicy command is set to &#8216;Unrestricted&#8217; it will run untrusted scripts.</p>
<p style="DISPLAY: block">I tried many times trying to sign my own ps1 files however it kept spitting out errors, <strong>so proceed only if you trust the script you are about to run.</strong></p>
<p style="DISPLAY: block">
<h4>3, 2, 1, 0 &#8230;&#8230;.</h4>
<h2>Ok a few things to get out of the way before we get to the script: (Copy &amp; Paste)</h2>
<p># Have PowerShell ISE (CTP3) opened and run the following commands:</p>
<ul>
<li># Make sure ExecutionPolicy is to <strong> </strong>&#8216;Unrestricted&#8217;</li>
</ul>
<p><strong><strong>Set-ExecutionPolicy Unrestricted</strong></strong></p>
<ul>
<li># Log into Live Account</li>
</ul>
<p><strong>$livecred = Get-Credential</strong></p>
<ul>
<li># The AllowRedirection parameter enables Outlook Live organizations all over the world to connect Windows PowerShell to Outlook Live by using the same URL.</li>
</ul>
<p><strong>$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri </strong><a rel="nofollow" href="https://ps.outlook.com/powershell/"><strong>https://ps.outlook.com/powershell/</strong></a><strong> -Credential $LiveCred -Authentication Basic -AllowRedirection</strong></p>
<ul>
<li># A progress indicator appears that shows the importing of Outlook Live commands into the client-side session of your local computer. When this process is complete, you can run Outlook Live commands.</li>
</ul>
<p><strong>Import-PSSession $Session</strong></p>
<p>If you have manage not to get any errors you may proceed; the &#8216;$Session&#8217; variable is important for the script to work successfully.</p>
<p><strong>The script. (Copy &amp; Paste into PowerShell V2 script area of console)</strong></p>
<p>##### START ######</p>
<blockquote><p># THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE RISK<br />
# OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER.<br />
#<br />
# Synopsis: This script is designed to add Distribution Groups in Exchange Labs based on a CSV file containing data.<br />
#<br />
# Script Name: CreateGroups.PS1<br />
#<br />
# Author: Original snippets of code was downloaded from <a rel="nofollow" href="http://liveatedu.spaces.live.com/Blog/cns!C76EAE4D4A509FBD!884.entry">http://liveatedu.spaces.live.com/Blog/cns!C76EAE4D4A509FBD!884.entry</a> &#8211; Jonny<br />
#<br />
# Edited by Phil Shapcott 17th June 2009<br />
#<br />
#<br />
#    Usage example:<br />
#<br />
#    What the command will look like with information:<br />
#    New-DistributionGroup -Name Computers -Alias Computers -DisplayName Computer Club -Type Security</p>
<p># Create into an array ($Records) using import-csv tool. &#8216;-path&#8217; is the path to your CSV file, we have our files in &#8220;C:\Tools\&#8221;.<br />
$records = import-csv -Path c:\Tools\groups.csv -OutVariable string</p>
<p># Defines your CSV files columns as a Variable, below is an example of the first line of information &#8220;Computers&#8221; in groups.csv file.<br />
foreach ($group in $records)</p>
<p>{</p>
<p>$this_name                 = $group.name  # &#8216;Computers&#8217;</p>
<p>$this_alias                   = $group.alias  # &#8216;Computers&#8217;</p>
<p>$this_displayname       = $group.displayname # &#8216;Computer Club&#8217;</p>
<p>$this_type                   = $group.type   # &#8216;Security&#8217; group<br />
# Create distribution group &#8211; assigning result to variable to avoid listing the new object<br />
%{Invoke-Command -Session $Session {param ($this_name,$this_alias,$this_displayname,$this_type) New-DistributionGroup -Name $this_name -Alias $this_alias -DisplayName $this_displayname -Type $this_type}-arg $this_name,$this_alias,$this_displayname,$this_type} &gt; $results</p>
<p>}</p></blockquote>
<h4>##### END ######</h4>
<h4>The CSV file example &#8211; groups.csv</h4>
<p>The CSV file is pretty simple as well just copy the text into a notepad file and save it as groups.csv.</p>
<p>Save all files in &#8220;c:\Tools&#8221; folder you created earlier when creating mailboxes.</p>
<blockquote><p>Name,Alias,DisplayName,Type</p>
<p>Computers,Computers,Computer Club,Security</p>
<p>English,English,English Faculty,Security</p></blockquote>
<h2>PRESS &#8216;PLAY&#8217; (Run Script)</h2>
<p>When you&#8217;re finihsed using the Outlook Live serve-side session, always disconnect windows PowerShell from Outlook Live.</p>
<p>For example, to disconnect f rom the server-side session that is defined by the $Session variable.</p>
<p><strong>Remove-PSSession $Session</strong></p>
<p><strong> </strong></p>
<h2>Credits</h2>
<p><a rel="nofollow" href="http://cid-c76eae4d4a509fbd.profile.live.com/" target="_blank">Jonny @ Live Spaces</a>, <a rel="nofollow" title="Microsoft" href="http://www.microsoft.com.au" target="_blank">Microsoft Help and Connect Site</a> and <a rel="nofollow" href="https://cid-d35070e32bb84f04.skydrive.live.com/self.aspx/Live@edu/Exchange%20Labs/Provisioning/R3/CSV|_Parser.ps1" target="_blank">Adam Bradley for phone support</a></p>
<p>Cheers,</p>
<p>Phil</p>
]]></content:encoded>
			<wfw:commentRss>http://www.easyreadarticles.com/applications/liveedu-outlook-live-how-to-get-started/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
<enclosure url="http://silverlight.services.live.com/71782/create%20accounts%20using%20PowerShell/video.wmv" length="5249267" type="audio/x-ms-wmv" />
		</item>
	</channel>
</rss>

