<?xml version="1.0" encoding="ISO-8859-1"?><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 for Egil Hansen</title>
	<atom:link href="http://egilhansen.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://egilhansen.com</link>
	<description>.NET, Windows, ASP.Net, scripts</description>
	<lastBuildDate>Sat, 04 Sep 2010 10:44:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on How to take control of style sheets in ASP.NET Themes with the StylePlaceholder and Style control by Tobias</title>
		<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/comment-page-1/#comment-752</link>
		<dc:creator>Tobias</dc:creator>
		<pubDate>Sat, 04 Sep 2010 10:44:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=83#comment-752</guid>
		<description>Incredible! Thanks a lot for this simple but fully functional solution.

One note: In your example code to put in the Styles.skin file, I had to change ConditionCommentExpression to ConditionalCommentExpression. A simple spelling error, maybe someone is helped!</description>
		<content:encoded><![CDATA[<p>Incredible! Thanks a lot for this simple but fully functional solution.</p>
<p>One note: In your example code to put in the Styles.skin file, I had to change ConditionCommentExpression to ConditionalCommentExpression. A simple spelling error, maybe someone is helped!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Simply way of adding a default item to a data bound DropDownList by Joe</title>
		<link>http://egilhansen.com/2008/07/31/simply-way-of-adding-a-default-item-to-a-data-bound-dropdownlist/comment-page-1/#comment-508</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Thu, 20 May 2010 15:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=81#comment-508</guid>
		<description>Nice one.  It would be nice to do it all in the markup though.

I wonder whether it would be possible/desirable to create a WebControl to do this, say ListDefaultItemAdapter.
The markup would look something like:



I&#039;m thinking along the lines that during OnLoad this control could look for the control identified by ListControlId in its NamingContainer, and attach to that controls DataBound event where it would insert the ListItem.

I may play around with this idea.</description>
		<content:encoded><![CDATA[<p>Nice one.  It would be nice to do it all in the markup though.</p>
<p>I wonder whether it would be possible/desirable to create a WebControl to do this, say ListDefaultItemAdapter.<br />
The markup would look something like:</p>
<p>I&#8217;m thinking along the lines that during OnLoad this control could look for the control identified by ListControlId in its NamingContainer, and attach to that controls DataBound event where it would insert the ListItem.</p>
<p>I may play around with this idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Safe way to convert UTC time to local time when databinding by Chris</title>
		<link>http://egilhansen.com/2007/10/29/safe-way-to-convert-utc-time-to-local-time-when-databinding/comment-page-1/#comment-488</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 22 Apr 2010 09:09:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/2007/10/29/safe-way-to-convert-utc-time-to-local-time-when-databinding/#comment-488</guid>
		<description>The other way around:

public static DateTime ConvertToUtcTime(DateTime dt)
        {
            return TimeZoneInfo.ConvertTimeToUtc(dt);
        }</description>
		<content:encoded><![CDATA[<p>The other way around:</p>
<p>public static DateTime ConvertToUtcTime(DateTime dt)<br />
        {<br />
            return TimeZoneInfo.ConvertTimeToUtc(dt);<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to take control of style sheets in ASP.NET Themes with the StylePlaceholder and Style control by Mrinal Jaiswal</title>
		<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/comment-page-1/#comment-476</link>
		<dc:creator>Mrinal Jaiswal</dc:creator>
		<pubDate>Thu, 04 Mar 2010 09:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=83#comment-476</guid>
		<description>Hi Egil,

I was in need to this solution only, u made my work very eassy :)

Thanks,
Mrinal Jaiswal</description>
		<content:encoded><![CDATA[<p>Hi Egil,</p>
<p>I was in need to this solution only, u made my work very eassy <img src='http://egilhansen.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks,<br />
Mrinal Jaiswal</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to take control of style sheets in ASP.NET Themes with the StylePlaceholder and Style control by Egil Hansen</title>
		<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/comment-page-1/#comment-462</link>
		<dc:creator>Egil Hansen</dc:creator>
		<pubDate>Thu, 04 Feb 2010 13:22:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=83#comment-462</guid>
		<description>Hi Jonathan

Thanks, glad to hear it. And thanks for the headsup about the download link. &lt;del datetime=&quot;2010-02-04T13:32:32+00:00&quot;&gt;It seems I managed to forget the zip file on the old server. Will have to look through my backups and upload it again.&lt;/del&gt; The download link should work again.</description>
		<content:encoded><![CDATA[<p>Hi Jonathan</p>
<p>Thanks, glad to hear it. And thanks for the headsup about the download link. <del datetime="2010-02-04T13:32:32+00:00">It seems I managed to forget the zip file on the old server. Will have to look through my backups and upload it again.</del> The download link should work again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to take control of style sheets in ASP.NET Themes with the StylePlaceholder and Style control by Jonathan Carroll</title>
		<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/comment-page-1/#comment-461</link>
		<dc:creator>Jonathan Carroll</dc:creator>
		<pubDate>Thu, 04 Feb 2010 12:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=83#comment-461</guid>
		<description>Hi Egil,

Many thanks for providing this fantastic solution to a VERY frustrating problem at times! Just wanted to point out that your download link doesn&#039;t work... it just reloads the article.

Cheers,
Jonathan</description>
		<content:encoded><![CDATA[<p>Hi Egil,</p>
<p>Many thanks for providing this fantastic solution to a VERY frustrating problem at times! Just wanted to point out that your download link doesn&#8217;t work&#8230; it just reloads the article.</p>
<p>Cheers,<br />
Jonathan</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Upgrading Windows XP SP1 to SP2 gone bad by Bill</title>
		<link>http://egilhansen.com/2007/01/28/upgrading-windows-xp-sp1-to-sp2-gone-bad/comment-page-1/#comment-445</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Sat, 02 Jan 2010 03:45:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/2007/01/28/upgrading-sp1-to-sp2-gone-bad/#comment-445</guid>
		<description>Thanks, worked for me.</description>
		<content:encoded><![CDATA[<p>Thanks, worked for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Slow network transfer speeds in Vista due to media playback by w!ldc@t</title>
		<link>http://egilhansen.com/2007/12/26/slow-network-transfer-speeds-in-vista-due-to-media-playback/comment-page-1/#comment-435</link>
		<dc:creator>w!ldc@t</dc:creator>
		<pubDate>Tue, 22 Dec 2009 19:18:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/2007/12/26/slow-network-transfer-speeds-in-vista-due-to-media-playback/#comment-435</guid>
		<description>actual problem for me with win7...</description>
		<content:encoded><![CDATA[<p>actual problem for me with win7&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CSS trick: Always show scrollbars by Liz</title>
		<link>http://egilhansen.com/2007/03/28/css-trick-always-show-scrollbars/comment-page-1/#comment-423</link>
		<dc:creator>Liz</dc:creator>
		<pubDate>Sat, 05 Dec 2009 07:26:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/2007/03/28/css-trick-always-show-scrollbars/#comment-423</guid>
		<description>Thanks a bunch!</description>
		<content:encoded><![CDATA[<p>Thanks a bunch!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Updates all over by Bo</title>
		<link>http://egilhansen.com/2008/05/10/updates-all-over/comment-page-1/#comment-418</link>
		<dc:creator>Bo</dc:creator>
		<pubDate>Wed, 25 Nov 2009 14:01:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=79#comment-418</guid>
		<description>Hi Egil

I have a suggestion to the mapDrive function. 
I allways found that it was nicer to name a mapped drive to something logical insead og the sometimes very long default naming. Therefore I suggest that you add a name attribute to the mapDrive action.
I have a little script that I have used before if you are interested. Nothing as elaborate as yours though. :-)

Thanks for a really good logonscript.
Bo</description>
		<content:encoded><![CDATA[<p>Hi Egil</p>
<p>I have a suggestion to the mapDrive function.<br />
I allways found that it was nicer to name a mapped drive to something logical insead og the sometimes very long default naming. Therefore I suggest that you add a name attribute to the mapDrive action.<br />
I have a little script that I have used before if you are interested. Nothing as elaborate as yours though. <img src='http://egilhansen.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Thanks for a really good logonscript.<br />
Bo</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to take control of style sheets in ASP.NET Themes with the StylePlaceholder and Style control by Egil Hansen</title>
		<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/comment-page-1/#comment-417</link>
		<dc:creator>Egil Hansen</dc:creator>
		<pubDate>Tue, 24 Nov 2009 08:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=83#comment-417</guid>
		<description>Hi RenÃ©

You are more than welcome to use the controls. I am happy to hear somebody else finds then useful. Good luck with your project.

Regards, Egil.</description>
		<content:encoded><![CDATA[<p>Hi RenÃ©</p>
<p>You are more than welcome to use the controls. I am happy to hear somebody else finds then useful. Good luck with your project.</p>
<p>Regards, Egil.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to take control of style sheets in ASP.NET Themes with the StylePlaceholder and Style control by René Kuss</title>
		<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/comment-page-1/#comment-415</link>
		<dc:creator>René Kuss</dc:creator>
		<pubDate>Mon, 23 Nov 2009 21:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=83#comment-415</guid>
		<description>Hi Egil,

i&#039;m developing an open source application. I&#039;ve integrated your solution into this project. I&#039;ve added a comment on the controls that point to this article. I hope thats ok for you. If not, tell me an i&#039;ll do it another way. The sourcecode can be found on spheria.codeplex.com.</description>
		<content:encoded><![CDATA[<p>Hi Egil,</p>
<p>i&#8217;m developing an open source application. I&#8217;ve integrated your solution into this project. I&#8217;ve added a comment on the controls that point to this article. I hope thats ok for you. If not, tell me an i&#8217;ll do it another way. The sourcecode can be found on spheria.codeplex.com.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on XML Driven Logon Script by Casper</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-384</link>
		<dc:creator>Casper</dc:creator>
		<pubDate>Wed, 30 Sep 2009 07:44:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-384</guid>
		<description>We&#039;re now running a Multi-language version of Windows XP (with DK layout) which shouldn&#039;t have any connection to the problem though the problem didn&#039;t exist on our old DK installation.

The problem only occurse when the logon script is run with the /silent parameter it seems and what&#039;s worse. It&#039;s only very few machines that gets an error.

The error message is: &quot;The procedure entry point GetProcessImageFileNameW could not be located in the dynamic link library PSAPI.DLL&quot;

I&#039;ve tried to google it and the problem exists in a number of applications. I have reason to believe it&#039;s our new IE7 installation that gave us the problem since its one the applications that gives this problem. I just don&#039;t understand why this only happens when I use the &quot;/silent&quot; parametre with your logon script and even why its only on a handfull of PCs?</description>
		<content:encoded><![CDATA[<p>We&#8217;re now running a Multi-language version of Windows XP (with DK layout) which shouldn&#8217;t have any connection to the problem though the problem didn&#8217;t exist on our old DK installation.</p>
<p>The problem only occurse when the logon script is run with the /silent parameter it seems and what&#8217;s worse. It&#8217;s only very few machines that gets an error.</p>
<p>The error message is: &#8220;The procedure entry point GetProcessImageFileNameW could not be located in the dynamic link library PSAPI.DLL&#8221;</p>
<p>I&#8217;ve tried to google it and the problem exists in a number of applications. I have reason to believe it&#8217;s our new IE7 installation that gave us the problem since its one the applications that gives this problem. I just don&#8217;t understand why this only happens when I use the &#8220;/silent&#8221; parametre with your logon script and even why its only on a handfull of PCs?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CSS trick: Always show scrollbars by Jason</title>
		<link>http://egilhansen.com/2007/03/28/css-trick-always-show-scrollbars/comment-page-1/#comment-382</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 29 Sep 2009 16:16:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/2007/03/28/css-trick-always-show-scrollbars/#comment-382</guid>
		<description>Perfect thanks :) works well ... (but not in Google chrome)</description>
		<content:encoded><![CDATA[<p>Perfect thanks <img src='http://egilhansen.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  works well &#8230; (but not in Google chrome)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Updates all over by Egil Hansen</title>
		<link>http://egilhansen.com/2008/05/10/updates-all-over/comment-page-1/#comment-379</link>
		<dc:creator>Egil Hansen</dc:creator>
		<pubDate>Wed, 23 Sep 2009 09:50:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=79#comment-379</guid>
		<description>Hi Casper

I have not seen that error with the xml file before. You point out that it is related to specific users, so this makes me think there are issues with the profile the user has, do you use roaming profiles on your network?

In regards the wscript.exe error, I would go to microsoft.com and find the latest version Windows Scripting Host and (re)install it on the computers you are getting the error on.</description>
		<content:encoded><![CDATA[<p>Hi Casper</p>
<p>I have not seen that error with the xml file before. You point out that it is related to specific users, so this makes me think there are issues with the profile the user has, do you use roaming profiles on your network?</p>
<p>In regards the wscript.exe error, I would go to microsoft.com and find the latest version Windows Scripting Host and (re)install it on the computers you are getting the error on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Updates all over by Casper</title>
		<link>http://egilhansen.com/2008/05/10/updates-all-over/comment-page-1/#comment-377</link>
		<dc:creator>Casper</dc:creator>
		<pubDate>Mon, 21 Sep 2009 09:33:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=79#comment-377</guid>
		<description>Hello Egil.

I seem to have stumbled accross a strange error message which I don&#039;t know how to fix.

On some users I get the following when using your script:

&quot;Your XML Document failed to load due to the following error
Error #: -21477024843: Netværkstien blev ikke fundet.
Line #: 0
Line Position: 0
Position in File: 0
Source Text:
Document URL: \\server\netlogon\logon\logonrules.xml&quot;

I know this seems like a network error and the user doesn&#039;t have access to the file but indeed he does have access.

This is however a user specific error because I&#039;ve tried having him logon on to another computer and he gets the same error but I don&#039;t.

---------

Another error I got is from Wscript.exe. I cannot find the answer via Google so perhaps you know how to get rid of it.

This is happens to some users with your logon script:

&quot;Procedureingangspunktet GetProcessImageFileNameW blev ikke fundet i DLL-bibliotektet PSAPI.DLL&quot;

Regards

Casper</description>
		<content:encoded><![CDATA[<p>Hello Egil.</p>
<p>I seem to have stumbled accross a strange error message which I don&#8217;t know how to fix.</p>
<p>On some users I get the following when using your script:</p>
<p>&#8220;Your XML Document failed to load due to the following error<br />
Error #: -21477024843: Netværkstien blev ikke fundet.<br />
Line #: 0<br />
Line Position: 0<br />
Position in File: 0<br />
Source Text:<br />
Document URL: \\server\netlogon\logon\logonrules.xml&#8221;</p>
<p>I know this seems like a network error and the user doesn&#8217;t have access to the file but indeed he does have access.</p>
<p>This is however a user specific error because I&#8217;ve tried having him logon on to another computer and he gets the same error but I don&#8217;t.</p>
<p>&#8212;&#8212;&#8212;</p>
<p>Another error I got is from Wscript.exe. I cannot find the answer via Google so perhaps you know how to get rid of it.</p>
<p>This is happens to some users with your logon script:</p>
<p>&#8220;Procedureingangspunktet GetProcessImageFileNameW blev ikke fundet i DLL-bibliotektet PSAPI.DLL&#8221;</p>
<p>Regards</p>
<p>Casper</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CSS trick: Always show scrollbars by aNj</title>
		<link>http://egilhansen.com/2007/03/28/css-trick-always-show-scrollbars/comment-page-1/#comment-371</link>
		<dc:creator>aNj</dc:creator>
		<pubDate>Thu, 10 Sep 2009 15:51:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/2007/03/28/css-trick-always-show-scrollbars/#comment-371</guid>
		<description>This is working everywhere:

html{height: 101%}</description>
		<content:encoded><![CDATA[<p>This is working everywhere:</p>
<p>html{height: 101%}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CSS trick: Always show scrollbars by Paul</title>
		<link>http://egilhansen.com/2007/03/28/css-trick-always-show-scrollbars/comment-page-1/#comment-366</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Thu, 03 Sep 2009 06:32:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/2007/03/28/css-trick-always-show-scrollbars/#comment-366</guid>
		<description>@Jonas

To bad its not working in older IE versions. There i get an extra scrollbar and the normal one is not working anymore. I didn&#039;t find a fix for that yet.</description>
		<content:encoded><![CDATA[<p>@Jonas</p>
<p>To bad its not working in older IE versions. There i get an extra scrollbar and the normal one is not working anymore. I didn&#8217;t find a fix for that yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CSS trick: Always show scrollbars by Jonas</title>
		<link>http://egilhansen.com/2007/03/28/css-trick-always-show-scrollbars/comment-page-1/#comment-354</link>
		<dc:creator>Jonas</dc:creator>
		<pubDate>Mon, 03 Aug 2009 08:12:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/2007/03/28/css-trick-always-show-scrollbars/#comment-354</guid>
		<description>@Rob: That causes the horisontal scrollbar to dissapear even if the browser window is too small for the page width. But that´s a easy fix:

html {
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
overflow-x: auto;
}</description>
		<content:encoded><![CDATA[<p>@Rob: That causes the horisontal scrollbar to dissapear even if the browser window is too small for the page width. But that´s a easy fix:</p>
<p>html {<br />
overflow: -moz-scrollbars-vertical;<br />
overflow-y: scroll;<br />
overflow-x: auto;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on XML Driven Logon Script by Egil Hansen</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-352</link>
		<dc:creator>Egil Hansen</dc:creator>
		<pubDate>Thu, 30 Jul 2009 08:20:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-352</guid>
		<description>Hi Ken

It sounds very cool what you are doing.

I am still working on my new version, it is a total rewrite, based mainly on jscript. Basically I am trying my best to make the new version very modular, so you only include the parts you need. If you for example don&#039;t need to map a network drive, you do not include the code to do that, nor the code to parse the map drive xml. 

The added bonus is that it makes it very easy to add new actions, without touching the core logic of the script.

If you have the time, please post your version of the script on your blog, I will gladly link to it on this page, so people can get their hands on a more updates version than the one currently on this site.</description>
		<content:encoded><![CDATA[<p>Hi Ken</p>
<p>It sounds very cool what you are doing.</p>
<p>I am still working on my new version, it is a total rewrite, based mainly on jscript. Basically I am trying my best to make the new version very modular, so you only include the parts you need. If you for example don&#8217;t need to map a network drive, you do not include the code to do that, nor the code to parse the map drive xml. </p>
<p>The added bonus is that it makes it very easy to add new actions, without touching the core logic of the script.</p>
<p>If you have the time, please post your version of the script on your blog, I will gladly link to it on this page, so people can get their hands on a more updates version than the one currently on this site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on XML Driven Logon Script by Ken Knicker</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-351</link>
		<dc:creator>Ken Knicker</dc:creator>
		<pubDate>Thu, 30 Jul 2009 05:39:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-351</guid>
		<description>Hello Egil,


Saw your comment re: working on an updated version via RSS feed for this thread and thought I would check in and ask how development is going and post a few updates re: our implementation of your script (based on the current version, 4.00k)

I&#039;ve recently added code to check the domain membership of the workstation. We needed this because we have multiple domains and ran into situations where a workstation is in one domain and the user is in another.

Another is an update to the routine used to populate the dictionary object with user’s group membership information. It now checks to confirm the entry is not already in dictionary object prior to adding it. I’m pretty certain this is the same thing that Leao Bras described in this post: http://www.egil.dk/xml-driven-logon-script/comment-page-1/#comment-248.

In our situation, we saw the error on users that are members of a domain which is being replaced. As part of that project, user objects and groups from the original domain were copied to the new domain. Because the new domain is visible to the script, during the AD interrogation step performed by “GetGroupMembership”, the script would report “This key is already associated with an element of this collection.”

I believe we could have handled this by requiring user and group names to be fully qualified (i.e.: Instead of &quot;myusername&quot;, make it &quot;mydomain\myusername&quot; or &quot;myusername@mydomain.com&quot;). Another option was to include an “On Error Resume Next” just prior to the loop that populates the dictionary object but that&#039;s really not my style :). 

Other updates we’ve made include:
-	Forcing silent mode for all Citrix sessions
-	Obtaining home drive info to support users logging in via VPN
-	Addition of a “Warning” category for success/fail results. This allows special formatting of events posted to the IE status window but doesn’t prevent the IE window from closing.
-	Ability to handle situations where an attempt to map a drive that is already assigned to a local system drive letter (these are flagged as a “Warning” instead of “Error”). This was done primarily to accommodate logging on to servers via Remote Desktop.

We&#039;ve begun deploying to users across the enterprise as a replacement for the various logon scripts developed by separate IT groups at different locations -- sort of a &quot;one script to rule them all&quot; idea. Things are going well overall.

Something I&#039;m interested in now is identifying any unused bits, redundancies, and general optimization. Would you be interested in having a look at our latest efforts?


Thanks,
Ken</description>
		<content:encoded><![CDATA[<p>Hello Egil,</p>
<p>Saw your comment re: working on an updated version via RSS feed for this thread and thought I would check in and ask how development is going and post a few updates re: our implementation of your script (based on the current version, 4.00k)</p>
<p>I&#8217;ve recently added code to check the domain membership of the workstation. We needed this because we have multiple domains and ran into situations where a workstation is in one domain and the user is in another.</p>
<p>Another is an update to the routine used to populate the dictionary object with user’s group membership information. It now checks to confirm the entry is not already in dictionary object prior to adding it. I’m pretty certain this is the same thing that Leao Bras described in this post: <a href="http://www.egil.dk/xml-driven-logon-script/comment-page-1/#comment-248" rel="nofollow">http://www.egil.dk/xml-driven-logon-script/comment-page-1/#comment-248</a>.</p>
<p>In our situation, we saw the error on users that are members of a domain which is being replaced. As part of that project, user objects and groups from the original domain were copied to the new domain. Because the new domain is visible to the script, during the AD interrogation step performed by “GetGroupMembership”, the script would report “This key is already associated with an element of this collection.”</p>
<p>I believe we could have handled this by requiring user and group names to be fully qualified (i.e.: Instead of &#8220;myusername&#8221;, make it &#8220;mydomain\myusername&#8221; or &#8220;myusername@mydomain.com&#8221;). Another option was to include an “On Error Resume Next” just prior to the loop that populates the dictionary object but that&#8217;s really not my style <img src='http://egilhansen.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . </p>
<p>Other updates we’ve made include:<br />
-	Forcing silent mode for all Citrix sessions<br />
-	Obtaining home drive info to support users logging in via VPN<br />
-	Addition of a “Warning” category for success/fail results. This allows special formatting of events posted to the IE status window but doesn’t prevent the IE window from closing.<br />
-	Ability to handle situations where an attempt to map a drive that is already assigned to a local system drive letter (these are flagged as a “Warning” instead of “Error”). This was done primarily to accommodate logging on to servers via Remote Desktop.</p>
<p>We&#8217;ve begun deploying to users across the enterprise as a replacement for the various logon scripts developed by separate IT groups at different locations &#8212; sort of a &#8220;one script to rule them all&#8221; idea. Things are going well overall.</p>
<p>Something I&#8217;m interested in now is identifying any unused bits, redundancies, and general optimization. Would you be interested in having a look at our latest efforts?</p>
<p>Thanks,<br />
Ken</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on XML Driven Logon Script by Egil Hansen</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-349</link>
		<dc:creator>Egil Hansen</dc:creator>
		<pubDate>Wed, 22 Jul 2009 12:36:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-349</guid>
		<description>Hi James

Thanks!

No, there is not a filter that will look at a computers security group.

A work around is to assign the script to the computers using group policy, and then use filters when applying group policies.</description>
		<content:encoded><![CDATA[<p>Hi James</p>
<p>Thanks!</p>
<p>No, there is not a filter that will look at a computers security group.</p>
<p>A work around is to assign the script to the computers using group policy, and then use filters when applying group policies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on XML Driven Logon Script by James</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-348</link>
		<dc:creator>James</dc:creator>
		<pubDate>Tue, 21 Jul 2009 20:30:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-348</guid>
		<description>Hello Egil,

Very nice script,  

Is there a way to see if a computer is part of a group not the user?

TIA
James</description>
		<content:encoded><![CDATA[<p>Hello Egil,</p>
<p>Very nice script,  </p>
<p>Is there a way to see if a computer is part of a group not the user?</p>
<p>TIA<br />
James</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CSS trick: Always show scrollbars by Brian</title>
		<link>http://egilhansen.com/2007/03/28/css-trick-always-show-scrollbars/comment-page-1/#comment-337</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Fri, 10 Jul 2009 02:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/2007/03/28/css-trick-always-show-scrollbars/#comment-337</guid>
		<description>Thanks for the vertical only tip Rob.  I had a few pages in a center aligned website that didn&#039;t require a scroll bar.  Those pages lined up slightly left of the other pages which caused a jerky reaction when browsing.  Your tip fixed that.  Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks for the vertical only tip Rob.  I had a few pages in a center aligned website that didn&#8217;t require a scroll bar.  Those pages lined up slightly left of the other pages which caused a jerky reaction when browsing.  Your tip fixed that.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on XML Driven Logon Script by Jacob</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-333</link>
		<dc:creator>Jacob</dc:creator>
		<pubDate>Mon, 06 Jul 2009 01:52:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-333</guid>
		<description>Hi Egil

Thanks for the reply, found it, stupid me...</description>
		<content:encoded><![CDATA[<p>Hi Egil</p>
<p>Thanks for the reply, found it, stupid me&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on XML Driven Logon Script by Egil Hansen</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-331</link>
		<dc:creator>Egil Hansen</dc:creator>
		<pubDate>Thu, 02 Jul 2009 09:07:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-331</guid>
		<description>Oliver:

I am working on an updated version that will include the updates Ken, Marianok and you provided, hopefully I will be done with it over the weekend.

If you can wait a little bit, I will have something for you then.

Jacob:

There is a DTD included in the XML file right now (at the very top), are you trying to put the DTD in a separate file?</description>
		<content:encoded><![CDATA[<p>Oliver:</p>
<p>I am working on an updated version that will include the updates Ken, Marianok and you provided, hopefully I will be done with it over the weekend.</p>
<p>If you can wait a little bit, I will have something for you then.</p>
<p>Jacob:</p>
<p>There is a DTD included in the XML file right now (at the very top), are you trying to put the DTD in a separate file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on XML Driven Logon Script by Jacob</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-330</link>
		<dc:creator>Jacob</dc:creator>
		<pubDate>Thu, 02 Jul 2009 05:13:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-330</guid>
		<description>Hi All

I am trying this out and it works great. I am trying to create dtd file for the xml file, but strugling a big load on this, is there an dtd file out there for this xml file?

Thanks all</description>
		<content:encoded><![CDATA[<p>Hi All</p>
<p>I am trying this out and it works great. I am trying to create dtd file for the xml file, but strugling a big load on this, is there an dtd file out there for this xml file?</p>
<p>Thanks all</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on XML Driven Logon Script by Oliver</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-329</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Wed, 01 Jul 2009 12:32:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-329</guid>
		<description>Dear Egil

Your script incl. my modifications works fine so far...

But I would be interested in the changes from:

- Ken Knicker (March 9th 200) : http://www.egil.dk/xml-driven-logon-script/#comment-275
- marianok (October 9th) : http://www.egil.dk/xml-driven-logon-script/#comment-218

Can you send them to me ?

Regards,
Oliver</description>
		<content:encoded><![CDATA[<p>Dear Egil</p>
<p>Your script incl. my modifications works fine so far&#8230;</p>
<p>But I would be interested in the changes from:</p>
<p>- Ken Knicker (March 9th 200) : <a href="http://www.egil.dk/xml-driven-logon-script/#comment-275" rel="nofollow">http://www.egil.dk/xml-driven-logon-script/#comment-275</a><br />
- marianok (October 9th) : <a href="http://www.egil.dk/xml-driven-logon-script/#comment-218" rel="nofollow">http://www.egil.dk/xml-driven-logon-script/#comment-218</a></p>
<p>Can you send them to me ?</p>
<p>Regards,<br />
Oliver</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to take control of style sheets in ASP.NET Themes with the StylePlaceholder and Style control by Egil Hansen</title>
		<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/comment-page-1/#comment-327</link>
		<dc:creator>Egil Hansen</dc:creator>
		<pubDate>Fri, 26 Jun 2009 13:56:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=83#comment-327</guid>
		<description>Hi Mike

I think the following should compile for you (although I have not tested it at all):

&lt;pre&gt;
List&lt;HtmlLink&gt; removeCandidate = new List&lt;HtmlLink&gt;();
foreach(Control c in Page.Header.Controls)
{
    HtmlLink link = c as HtmlLink;
    if(link != null &amp;&amp; link.Href.StartsWith(themePath))
    {
        removeCandidate.Add(link);
    }
}
&lt;/pre&gt;

Let me know if it works, regards, Egil.</description>
		<content:encoded><![CDATA[<p>Hi Mike</p>
<p>I think the following should compile for you (although I have not tested it at all):</p>
<pre>
List&lt;HtmlLink&gt; removeCandidate = new List&lt;HtmlLink&gt;();
foreach(Control c in Page.Header.Controls)
{
    HtmlLink link = c as HtmlLink;
    if(link != null &amp;amp;&amp;amp; link.Href.StartsWith(themePath))
    {
        removeCandidate.Add(link);
    }
}
</pre>
<p>Let me know if it works, regards, Egil.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to take control of style sheets in ASP.NET Themes with the StylePlaceholder and Style control by Mike Taylor</title>
		<link>http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/comment-page-1/#comment-326</link>
		<dc:creator>Mike Taylor</dc:creator>
		<pubDate>Fri, 26 Jun 2009 12:38:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=83#comment-326</guid>
		<description>I&#039;m trying to do this using the 2.0 framework --- is there a way around the LINQ query:

// find all existing stylesheets in header
                var removeCandidate = Page.Header.Controls.OfType()
                    .Where(link =&gt; link.Href.StartsWith(themePath)).ToList();

How can I do this in 2.0?

Mike</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to do this using the 2.0 framework &#8212; is there a way around the LINQ query:</p>
<p>// find all existing stylesheets in header<br />
                var removeCandidate = Page.Header.Controls.OfType()<br />
                    .Where(link =&gt; link.Href.StartsWith(themePath)).ToList();</p>
<p>How can I do this in 2.0?</p>
<p>Mike</p>
]]></content:encoded>
	</item>
</channel>
</rss>
