<?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>RES Software User Group &#187; PowerLaunch</title>
	<atom:link href="http://www.resug.com/tag/powerlaunch/feed" rel="self" type="application/rss+xml" />
	<link>http://www.resug.com</link>
	<description>automators &#38; workspacers unite!</description>
	<lastBuildDate>Tue, 19 Apr 2011 06:58:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Preconfigured voluntary settings in a mandatory profile</title>
		<link>http://www.resug.com/preconfigured-voluntary-settings-in-a-mandatory-profile</link>
		<comments>http://www.resug.com/preconfigured-voluntary-settings-in-a-mandatory-profile#comments</comments>
		<pubDate>Thu, 26 Feb 2009 23:57:00 +0000</pubDate>
		<dc:creator>Yuri Haak</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Building Blocks]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Mandatory Profile]]></category>
		<category><![CDATA[PowerLaunch]]></category>
		<category><![CDATA[User Preferences]]></category>

		<guid isPermaLink="false">http://resguru.com/?p=796</guid>
		<description><![CDATA[This little blurb was inspired by an email to a partner, explaning the differences between PoweFuse&#8217;s PowerLaunch and the UserPreferences. This lead to an example on how you can combine these two parts of PowerFuse. The goal is to be able to provide the user with preconfigured, voluntary settings &#8211; in a mandatory profile environment. Let&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-253" title="Animated, Gears, box" src="http://resguru.com/wp-content/uploads/2009/01/gears4.gif" alt="Animated, Gears, box" width="50" height="35" />This little blurb was inspired by an email to a partner, explaning the differences between PoweFuse&#8217;s PowerLaunch and the UserPreferences. This lead to an example on how you can combine these two parts of PowerFuse. The goal is to be able to provide the user with preconfigured, voluntary settings &#8211; in a mandatory profile environment. Let&#8217;s take a real-world example on this:</p>
<p>We have some users which share a mandatory profile, where the default webpage for IE has been set to about:blank or something else long ago. This setting coded into the .man profile and we don&#8217;t want to bother hacking into it since our goal would be to have it changed dynamically, according to group membership.</p>
<p>For example: We want to have users in <em>group1</em> initially having <a href="http://www.batman.com">www.batman.com</a> as their homepage and <em>group2</em> should have <a href="http://www.superman.com">www.superman.com</a> as their homepage. To make the entire thing a bit more interesting, we want to provide the user with the option to change their homepage to something else if they prefer to do so.</p>
<p>To summarize we are talking about creating a dynamic, group assigned voulentary user registry setting on top of a mandatory profile. Sounds iffy? Not at all. This example is easy to follow, but you can of course just download the PowerFuse buildingblock at the end of the article. The registry key we use for this example is HKCUSoftwareMicrosoftInternet ExplorerMain<em>Start Page</em> (REG_SZ)</p>
<ol>
<li>If you haven&#8217;t already done so, create a PowerFuse application for Internet Explorer (other browsers can be used, but you&#8217;ll have to figure out the registrysettings then for yourself)</li>
<li>Edit the IE app and go to the Configuration | PowerLaunch tab, click Add.</li>
<li><img class="alignright size-full wp-image-797" title="run-once" src="http://resguru.com/wp-content/uploads/2009/02/run-once.jpg" alt="run-once" width="318" height="71" />Create a powerlaunch user registry setting for the IE startup page <a href="http://www.batman.com">www.batman.com</a>. using the HKCU registry path above. Make sure to mark the reghack with the <strong><span style="color: #ff0000;">Run-Once</span></strong> checkmark.</li>
<li><img class="alignright size-full wp-image-798" title="group1" src="http://resguru.com/wp-content/uploads/2009/02/group1.jpg" alt="group1" width="158" height="74" />Go to the Access Control tab of the reghack, assign it to group1.</li>
<li>Export the newly created reghack to a temporary file. This done in the <em>&#8220;Registry|Export registry file&#8230;&#8221;</em> menu inside the PowerFuse <img class="alignright size-full wp-image-805" title="export-reg" src="http://resguru.com/wp-content/uploads/2009/02/export-reg.jpg" alt="export-reg" width="215" height="120" />registry buffer editor. We are going to use this export one steap further ahead.</li>
<li>Save the reghack and return to the PowerLaunch tab of the application</li>
<li><a href="http://resguru.com/wp-content/uploads/2009/02/group1.jpg" rel="lightbox[796]"></a><a href="http://resguru.com/wp-content/uploads/2009/02/export-reg.jpg" rel="lightbox[796]"></a>Repeat step 2 above, then go to the<em> Registry|Import registry file&#8230;</em> and pull the temporary regfile in again (it can safely be deleted after this btw).  In the new reghack, change the startup page to <a href="http://www.superman.com">www.superman.com</a> and assign this one to <em>group2. </em>Notice that the name and any comments you added before was preserved in the regfile. Once you&#8217;ve configured the reghacks for both groups it should look like this: <img class="alignnone size-full wp-image-808" title="app-registry" src="http://resguru.com/wp-content/uploads/2009/02/app-registry.jpg" alt="app-registry" width="485" height="57" /></li>
<li>Let&#8217;s setup the User Preferences. Go to <em>Properties|User Preferences</em>, while still editing the app. Here we can specify one or more seperate items which should be saved before the logoff destroys the mandatory profle. Using the Add button, you can choose to add:
<ol>
<li>A single registry value (like we are using here)</li>
<li>A registry key (containing multiple values)</li>
<li>A registry tree (a branch containing multiple registry keys)</li>
<li>A single file in the profile (such as normal.dot for office)</li>
<li>A folder in the profile (such as cookies or favorites)</li>
</ol>
</li>
<li>Fashion the user preference so it looks something like this (remember, you can download the buildingblock below if you want to make sure you build it right). Click on the image to zoom.<a href="http://resguru.com/wp-content/uploads/2009/02/userpref-ie.jpg" target="_blank" rel="lightbox[796]"><img class="alignnone size-full wp-image-809" title="userpref-ie" src="http://resguru.com/wp-content/uploads/2009/02/userpref-ie.jpg" alt="userpref-ie" width="410" height="300" /></a></li>
</ol>
<p>When the app has been saved and the user sessions refreshed, PowerFuse will write the correct IE startup page to the registry uppon first time user launch of IE. During the session, the user may perhaps change the homepage of IE to something completely different. Regardless of this, User Preferences will capture the current value of the IE startpage key at logoff and save it, just before the mandatory profile is tossed into <a href="http://en.wikipedia.org/wiki/Mount_Doom" target="_blank">Mount Doom</a>. To try all this out for yourself, download the BuildingBlock:</p>
<p>Rightclick and save-target-as here: <a href="http://resguru.com/wp-content/uploads/2009/02/start_internet-exploder-6.xml" target="_blank"><img class="alignnone size-thumbnail wp-image-429" title="legobrick_red" src="http://resguru.com/wp-content/uploads/2009/01/legobrick_red-50x35.jpg" alt="legobrick_red" width="50" height="35" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.resug.com/preconfigured-voluntary-settings-in-a-mandatory-profile/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

