<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Creating Groups in the FIM Portal using powershell</title>
	<atom:link href="http://www.wapshere.com/missmiis/creating-groups-in-the-fim-portal-using-powershell/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wapshere.com/missmiis/creating-groups-in-the-fim-portal-using-powershell</link>
	<description>Adventures in identity management</description>
	<lastBuildDate>Tue, 07 Feb 2012 08:24:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Stuart</title>
		<link>http://www.wapshere.com/missmiis/creating-groups-in-the-fim-portal-using-powershell/comment-page-1#comment-286</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Thu, 23 Sep 2010 02:29:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.wapshere.com/missmiis/?p=703#comment-286</guid>
		<description>Great worked fine Carol...appreciate the prompt response...:)

Just one more thing...i want the &quot;email enabled&quot; box ticked...i put the following line into the set attribute...dosent seem to like it much? Any thoughts?

SetAttribute -object $newGroup -attributeName &quot;EmailEnabling&quot; -attributeValue $true

My end goal is to have mail enabled security groups...does the &quot;email enabled&quot; box need to be ticked even if ive already synced a group mail address across? Im assuming it does so the email become a routable address within exchange? I will put an alias in as well because i think it is a required field once the mail enabled box is ticked.

Stu</description>
		<content:encoded><![CDATA[<p>Great worked fine Carol&#8230;appreciate the prompt response&#8230;:)</p>
<p>Just one more thing&#8230;i want the &#8220;email enabled&#8221; box ticked&#8230;i put the following line into the set attribute&#8230;dosent seem to like it much? Any thoughts?</p>
<p>SetAttribute -object $newGroup -attributeName &#8220;EmailEnabling&#8221; -attributeValue $true</p>
<p>My end goal is to have mail enabled security groups&#8230;does the &#8220;email enabled&#8221; box need to be ticked even if ive already synced a group mail address across? Im assuming it does so the email become a routable address within exchange? I will put an alias in as well because i think it is a required field once the mail enabled box is ticked.</p>
<p>Stu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carol</title>
		<link>http://www.wapshere.com/missmiis/creating-groups-in-the-fim-portal-using-powershell/comment-page-1#comment-283</link>
		<dc:creator>Carol</dc:creator>
		<pubDate>Tue, 21 Sep 2010 05:04:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.wapshere.com/missmiis/?p=703#comment-283</guid>
		<description>I think your problem may be missing underscores. When referring to a variable taken from the csv you have to write it like &quot;$_.Email&quot;.</description>
		<content:encoded><![CDATA[<p>I think your problem may be missing underscores. When referring to a variable taken from the csv you have to write it like &#8220;$_.Email&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart</title>
		<link>http://www.wapshere.com/missmiis/creating-groups-in-the-fim-portal-using-powershell/comment-page-1#comment-282</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Tue, 21 Sep 2010 00:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.wapshere.com/missmiis/?p=703#comment-282</guid>
		<description>Thanks carol

Ive added the following to the following section:

# Create group and add attributes
$newGroup = CreateObject -objectType &quot;Group&quot;

I added:

SetAttribute -object $newGroup -attributeName &quot;Email&quot; -attributeValue $Email
SetAttribute -object $newGroup -attributeName &quot;MailNickname&quot; -attributeValue $MailNickname


and also put values in the csv for them...stil no joy?
I got the following output...seems like the 2 new fields arent getting there value?:



PS C:\import&gt; powershell c:\import\Groupimport.ps1
Email
MailNickname
DisplayName test
AccountName test
Domain FIM
Scope Global
Type Security
Filter /P
erson[(DepartmentMultiple = &#039;ADMIN&#039;)]
Description test csv with email fields
Owner 7fb2b853-24f0-4498-9534-4e10589723c4
DisplayedOwner 7fb2b853-24f0-4498-9534-4e10589723c4
MembershipLocked True
MembershipAddWorkflow None


SourceObjectIdentifier : c56586a8-3672-44b5-8894-3816846b1ac3
TargetObjectIdentifier :
ObjectType             : Group
State                  : Create
Changes                : {Email, MailNickname, DisplayName, AccountName...}
AnchorPairs            :

Import-FIMConfig : Failure when making web service call.
SourceObjectID = c56586a8-3672-44b5-8894-3816846b1ac3
Error = Microsoft.ResourceManagement.WebServices.Faults.ServiceFaultException: The request message contains errors that
 prevent processing the request.
   at Microsoft.ResourceManagement.WebServices.Client.ResourceTemplate.CreateResource()
   at Microsoft.ResourceManagement.WebServices.ResourceManager.CreateResource()
   at Microsoft.ResourceManagement.Automation.ImportConfig.Create(String objectType, List`1 changeList)
   at Microsoft.ResourceManagement.Automation.ImportConfig.EndProcessing()
At C:\import\Groupimport.ps1:80 char:29
+ $newGroup &#124; Import-FIMConfig  &lt;&lt;&lt;&lt; -uri $URI

Group creation request complete



cheers
stu</description>
		<content:encoded><![CDATA[<p>Thanks carol</p>
<p>Ive added the following to the following section:</p>
<p># Create group and add attributes<br />
$newGroup = CreateObject -objectType &#8220;Group&#8221;</p>
<p>I added:</p>
<p>SetAttribute -object $newGroup -attributeName &#8220;Email&#8221; -attributeValue $Email<br />
SetAttribute -object $newGroup -attributeName &#8220;MailNickname&#8221; -attributeValue $MailNickname</p>
<p>and also put values in the csv for them&#8230;stil no joy?<br />
I got the following output&#8230;seems like the 2 new fields arent getting there value?:</p>
<p>PS C:\import&gt; powershell c:\import\Groupimport.ps1<br />
Email<br />
MailNickname<br />
DisplayName test<br />
AccountName test<br />
Domain FIM<br />
Scope Global<br />
Type Security<br />
Filter /P<br />
erson[(DepartmentMultiple = 'ADMIN')]<br />
Description test csv with email fields<br />
Owner 7fb2b853-24f0-4498-9534-4e10589723c4<br />
DisplayedOwner 7fb2b853-24f0-4498-9534-4e10589723c4<br />
MembershipLocked True<br />
MembershipAddWorkflow None</p>
<p>SourceObjectIdentifier : c56586a8-3672-44b5-8894-3816846b1ac3<br />
TargetObjectIdentifier :<br />
ObjectType             : Group<br />
State                  : Create<br />
Changes                : {Email, MailNickname, DisplayName, AccountName&#8230;}<br />
AnchorPairs            :</p>
<p>Import-FIMConfig : Failure when making web service call.<br />
SourceObjectID = c56586a8-3672-44b5-8894-3816846b1ac3<br />
Error = Microsoft.ResourceManagement.WebServices.Faults.ServiceFaultException: The request message contains errors that<br />
 prevent processing the request.<br />
   at Microsoft.ResourceManagement.WebServices.Client.ResourceTemplate.CreateResource()<br />
   at Microsoft.ResourceManagement.WebServices.ResourceManager.CreateResource()<br />
   at Microsoft.ResourceManagement.Automation.ImportConfig.Create(String objectType, List`1 changeList)<br />
   at Microsoft.ResourceManagement.Automation.ImportConfig.EndProcessing()<br />
At C:\import\Groupimport.ps1:80 char:29<br />
+ $newGroup | Import-FIMConfig  &lt;&lt;&lt;&lt; -uri $URI</p>
<p>Group creation request complete</p>
<p>cheers<br />
stu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carol</title>
		<link>http://www.wapshere.com/missmiis/creating-groups-in-the-fim-portal-using-powershell/comment-page-1#comment-281</link>
		<dc:creator>Carol</dc:creator>
		<pubDate>Mon, 20 Sep 2010 05:28:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.wapshere.com/missmiis/?p=703#comment-281</guid>
		<description>All you need to do is populate the Email and MailNickname attributes as well.</description>
		<content:encoded><![CDATA[<p>All you need to do is populate the Email and MailNickname attributes as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart</title>
		<link>http://www.wapshere.com/missmiis/creating-groups-in-the-fim-portal-using-powershell/comment-page-1#comment-280</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Mon, 20 Sep 2010 03:00:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.wapshere.com/missmiis/?p=703#comment-280</guid>
		<description>Hi, 

Im just wondering, i would like to run your script above but also make it produce &quot;mail enabled secuirty groups&quot; with email alias... im not fluent in powershell scripting so can you let me know how i would add these additional variables to the script?

 
stu</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>Im just wondering, i would like to run your script above but also make it produce &#8220;mail enabled secuirty groups&#8221; with email alias&#8230; im not fluent in powershell scripting so can you let me know how i would add these additional variables to the script?</p>
<p>stu</p>
]]></content:encoded>
	</item>
</channel>
</rss>

