<?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 on: XML Driven Logon Script</title>
	<atom:link href="http://egilhansen.com/xml-driven-logon-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://egilhansen.com</link>
	<description></description>
	<lastBuildDate>Sat, 04 Sep 2010 10:44:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>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>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>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>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>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>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>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>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>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>By: Egil Hansen</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-316</link>
		<dc:creator>Egil Hansen</dc:creator>
		<pubDate>Thu, 04 Jun 2009 18:10:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-316</guid>
		<description>Dear Oliver, you should receive a mail shortly, thanks for the work.</description>
		<content:encoded><![CDATA[<p>Dear Oliver, you should receive a mail shortly, thanks for the work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-315</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Thu, 04 Jun 2009 15:49:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-315</guid>
		<description>Upppsss.... There has been a lot more text but the blog cut it out because I used XML syntax..... :-(
So send me your email address and I send you the text and code.

Regards,
Oliver</description>
		<content:encoded><![CDATA[<p>Upppsss&#8230;. There has been a lot more text but the blog cut it out because I used XML syntax&#8230;.. <img src='http://egilhansen.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /><br />
So send me your email address and I send you the text and code.</p>
<p>Regards,<br />
Oliver</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-314</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Thu, 04 Jun 2009 15:45:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-314</guid>
		<description>Dear Egil

I have implemented most of the stuff I mentioned above

%userhomedirectory%
%userhomedrive%
%userprofilepath%

New Actions:



Modified Filters:




They now can check against the OU where an object (user, group) is stored in.

&quot;name&quot; can now handle DNs as well. Example


It auto-detects if it is a real name or a DN and compares accordingly.


Added internal variables for 

Computer Objects OU
Users OU

I had to slightly change the DTD of the XML file.

Can you send me your email so I can send you back the code ? 
Especially the DTD definition of the &quot;ou&quot; attribute is special. As I am not a XML DOM crack 
I would like to know what a real crack has to say about this implementation and if it could 
be solved easier or cleaner.

Regards,
Oliver</description>
		<content:encoded><![CDATA[<p>Dear Egil</p>
<p>I have implemented most of the stuff I mentioned above</p>
<p>%userhomedirectory%<br />
%userhomedrive%<br />
%userprofilepath%</p>
<p>New Actions:</p>
<p>Modified Filters:</p>
<p>They now can check against the OU where an object (user, group) is stored in.</p>
<p>&#8220;name&#8221; can now handle DNs as well. Example</p>
<p>It auto-detects if it is a real name or a DN and compares accordingly.</p>
<p>Added internal variables for </p>
<p>Computer Objects OU<br />
Users OU</p>
<p>I had to slightly change the DTD of the XML file.</p>
<p>Can you send me your email so I can send you back the code ?<br />
Especially the DTD definition of the &#8220;ou&#8221; attribute is special. As I am not a XML DOM crack<br />
I would like to know what a real crack has to say about this implementation and if it could<br />
be solved easier or cleaner.</p>
<p>Regards,<br />
Oliver</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Egil Hansen</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-313</link>
		<dc:creator>Egil Hansen</dc:creator>
		<pubDate>Wed, 03 Jun 2009 17:21:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-313</guid>
		<description>Dear Oliver

Thank you for the input. I would be pushing the term &quot;active development&quot; if I said that it was. I have received some great input from a few others as well and would love to write an updated version of the script. With a bit of luck I might get to it during the summer, but no guarantees :)

If you decide to extend the script yourself with some of the functionality you talk about, please send me a copy of what you figure out.

Regards, Egil.</description>
		<content:encoded><![CDATA[<p>Dear Oliver</p>
<p>Thank you for the input. I would be pushing the term &#8220;active development&#8221; if I said that it was. I have received some great input from a few others as well and would love to write an updated version of the script. With a bit of luck I might get to it during the summer, but no guarantees <img src='http://egilhansen.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you decide to extend the script yourself with some of the functionality you talk about, please send me a copy of what you figure out.</p>
<p>Regards, Egil.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-312</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Wed, 03 Jun 2009 16:15:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-312</guid>
		<description>Dear Egil

I must admit, your logonscript is one of the best I have seen so far. Is it still under active development ?
If so could you please add the following features ?

- %userprofilepath%    = Users Profile Path
- %userhomedirpath% = Users Home-Directory Path
- %userhomedrive% = Users Home-Directory Drive (e.g. H:)

Actions:

RemoveNetworkPrinter = Would remove a specific network printer
RemoveAllNetworkPrinters = Would remove all network Printers

Maybe an additional option for AddPrinter would be nice as well (removebeforeadd = true¦false)

Would it be possible to extend teh TestFilter (for Computers) in a way you could test the OU name a computer object is stored in ? I need this for printer assignment. All PCs in the same OU (Room OU) get a specific Printer assigned.

Kind regards,
Oliver</description>
		<content:encoded><![CDATA[<p>Dear Egil</p>
<p>I must admit, your logonscript is one of the best I have seen so far. Is it still under active development ?<br />
If so could you please add the following features ?</p>
<p>- %userprofilepath%    = Users Profile Path<br />
- %userhomedirpath% = Users Home-Directory Path<br />
- %userhomedrive% = Users Home-Directory Drive (e.g. H:)</p>
<p>Actions:</p>
<p>RemoveNetworkPrinter = Would remove a specific network printer<br />
RemoveAllNetworkPrinters = Would remove all network Printers</p>
<p>Maybe an additional option for AddPrinter would be nice as well (removebeforeadd = true¦false)</p>
<p>Would it be possible to extend teh TestFilter (for Computers) in a way you could test the OU name a computer object is stored in ? I need this for printer assignment. All PCs in the same OU (Room OU) get a specific Printer assigned.</p>
<p>Kind regards,<br />
Oliver</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Egil Hansen</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-276</link>
		<dc:creator>Egil Hansen</dc:creator>
		<pubDate>Tue, 10 Mar 2009 10:22:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-276</guid>
		<description>Hi Ken

Thanks for the feedback. I will drop you a mail later today, would love to see your code. I hope to get a chance to actually update the script with some of the feedback I have been getting from various people the last year.</description>
		<content:encoded><![CDATA[<p>Hi Ken</p>
<p>Thanks for the feedback. I will drop you a mail later today, would love to see your code. I hope to get a chance to actually update the script with some of the feedback I have been getting from various people the last year.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken Knicker</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-275</link>
		<dc:creator>Ken Knicker</dc:creator>
		<pubDate>Mon, 09 Mar 2009 22:46:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-275</guid>
		<description>Hello Egil,

Great work on this script! I had been considering splitting our logon script code from the functions and rules for a while.

I noticed a couple of minor issues in the &#039;ReplaceWildCards&#039; function and thought you would like to know about it:
  1.  %Fonts% is being set twice
  2.  %PrintHood% is not set at all

Also, one other thing: In our environment we have a need to set IPC connections and also to map drives using alternate credentials. I  have reworked your &#039;MapDrive&#039; class a bit to accommodate these requirements. If you would like to see the updated code just let me know.

Best regards,
Ken</description>
		<content:encoded><![CDATA[<p>Hello Egil,</p>
<p>Great work on this script! I had been considering splitting our logon script code from the functions and rules for a while.</p>
<p>I noticed a couple of minor issues in the &#8216;ReplaceWildCards&#8217; function and thought you would like to know about it:<br />
  1.  %Fonts% is being set twice<br />
  2.  %PrintHood% is not set at all</p>
<p>Also, one other thing: In our environment we have a need to set IPC connections and also to map drives using alternate credentials. I  have reworked your &#8216;MapDrive&#8217; class a bit to accommodate these requirements. If you would like to see the updated code just let me know.</p>
<p>Best regards,<br />
Ken</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Egil Hansen</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-254</link>
		<dc:creator>Egil Hansen</dc:creator>
		<pubDate>Mon, 12 Jan 2009 12:18:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-254</guid>
		<description>You would have to add some code to the GetGroupMembership sub, that would get a list of distribution groups the user is a member of and possibly create a new filter. There is not any existing filter that you can apply I am afraid.

Alternatively, you can upgrade your distribution groups to security groups. To do that, I am pretty sure you have to have a domain that&#039;s running in 2003 native mode on the forest level.

Hopo this helps, Egil.</description>
		<content:encoded><![CDATA[<p>You would have to add some code to the GetGroupMembership sub, that would get a list of distribution groups the user is a member of and possibly create a new filter. There is not any existing filter that you can apply I am afraid.</p>
<p>Alternatively, you can upgrade your distribution groups to security groups. To do that, I am pretty sure you have to have a domain that&#8217;s running in 2003 native mode on the forest level.</p>
<p>Hopo this helps, Egil.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leao Bras</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-253</link>
		<dc:creator>Leao Bras</dc:creator>
		<pubDate>Mon, 12 Jan 2009 11:11:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-253</guid>
		<description>Hi, 
It’s true, isn’t not a map drive. I have active the debug mode and make a various tests, and the error occurs when the script try get the distribution group (doesn&#039;t detect distribution group) from a standby dc (not a master dc)... But I have make a restart on all dcs and now it’s work. (estrange)

How I can use the distribution group to make a filterset? There are exist registry filterset or action?


Thanks,</description>
		<content:encoded><![CDATA[<p>Hi,<br />
It’s true, isn’t not a map drive. I have active the debug mode and make a various tests, and the error occurs when the script try get the distribution group (doesn&#8217;t detect distribution group) from a standby dc (not a master dc)&#8230; But I have make a restart on all dcs and now it’s work. (estrange)</p>
<p>How I can use the distribution group to make a filterset? There are exist registry filterset or action?</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Egil Hansen</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-252</link>
		<dc:creator>Egil Hansen</dc:creator>
		<pubDate>Fri, 09 Jan 2009 10:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-252</guid>
		<description>Hi Leao:

The line you are getting the error in, has nothing to do with the mapping of a drive. 

The line of code adds each active directory security group to a dictionary for lookup later, it looks like you have two security groups with the exact same name, something I have never come across before.

Try testing with a new user, who is not a member of any security groups besides the default Domain Users.</description>
		<content:encoded><![CDATA[<p>Hi Leao:</p>
<p>The line you are getting the error in, has nothing to do with the mapping of a drive. </p>
<p>The line of code adds each active directory security group to a dictionary for lookup later, it looks like you have two security groups with the exact same name, something I have never come across before.</p>
<p>Try testing with a new user, who is not a member of any security groups besides the default Domain Users.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leao Bras</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-251</link>
		<dc:creator>Leao Bras</dc:creator>
		<pubDate>Thu, 08 Jan 2009 17:22:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-251</guid>
		<description>Sorry about this spam, maybe cache problems :(</description>
		<content:encoded><![CDATA[<p>Sorry about this spam, maybe cache problems <img src='http://egilhansen.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leao Bras</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-250</link>
		<dc:creator>Leao Bras</dc:creator>
		<pubDate>Thu, 08 Jan 2009 16:58:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-250</guid>
		<description>Map drive : error line 463 char 9 This key is already associated with an element of this collection</description>
		<content:encoded><![CDATA[<p>Map drive : error line 463 char 9 This key is already associated with an element of this collection</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leao Bras</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-249</link>
		<dc:creator>Leao Bras</dc:creator>
		<pubDate>Thu, 08 Jan 2009 16:57:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-249</guid>
		<description>Need help, but Duplicate comment detected; it looks as though you&#039;ve already said that!</description>
		<content:encoded><![CDATA[<p>Need help, but Duplicate comment detected; it looks as though you&#8217;ve already said that!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leao Bras</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-248</link>
		<dc:creator>Leao Bras</dc:creator>
		<pubDate>Thu, 08 Jan 2009 16:56:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-248</guid>
		<description>I have vbscript error on try the map a drive: line 463, char 9, error: This key is already associated with an element of this collection.
Thanks,</description>
		<content:encoded><![CDATA[<p>I have vbscript error on try the map a drive: line 463, char 9, error: This key is already associated with an element of this collection.<br />
Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leao Bras</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-247</link>
		<dc:creator>Leao Bras</dc:creator>
		<pubDate>Thu, 08 Jan 2009 16:53:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-247</guid>
		<description>Hi,
I try to map a drive, but have this error:
Line 463
Char 9
Error: This key is already associated with an element of this colletion

Thanks,</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I try to map a drive, but have this error:<br />
Line 463<br />
Char 9<br />
Error: This key is already associated with an element of this colletion</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Egil Hansen</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-219</link>
		<dc:creator>Egil Hansen</dc:creator>
		<pubDate>Fri, 10 Oct 2008 07:47:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-219</guid>
		<description>Hi marianok

That is very cool. I always like it when someone build upon then script. You should get a mail from me soon, would love to discuss the additions you have made.</description>
		<content:encoded><![CDATA[<p>Hi marianok</p>
<p>That is very cool. I always like it when someone build upon then script. You should get a mail from me soon, would love to discuss the additions you have made.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marianok</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-218</link>
		<dc:creator>marianok</dc:creator>
		<pubDate>Thu, 09 Oct 2008 20:06:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-218</guid>
		<description>Hi Egil, 
         I was researching in order to write an XML+VBScript based logon script for may company when I run into yours. After a few minutes i decided to adopt yours as it&#039;s already doing most of what I wanted it to.
Now, I have made a few changes to it and it&#039;s only fair that I offer them back to you.
The changes I made are:
         1) added a variable for the sitename (so we can use it when specifiying servers) as we are geografically distributed company and we map stuff to the local servers.
         2) Re designed a litle the HTML to add our company logo and put the user information in a table instead of plai text.
         3) modified the group selection in order to pull the group information from multiple domains, and not just the current one.
         4) created a simple XLS to show the current values in a more understandable way.

       If you think that the changes and you think that someone else might like them, let me know (you should have my email in this post) and i&#039;ll send them to you.</description>
		<content:encoded><![CDATA[<p>Hi Egil,<br />
         I was researching in order to write an XML+VBScript based logon script for may company when I run into yours. After a few minutes i decided to adopt yours as it&#8217;s already doing most of what I wanted it to.<br />
Now, I have made a few changes to it and it&#8217;s only fair that I offer them back to you.<br />
The changes I made are:<br />
         1) added a variable for the sitename (so we can use it when specifiying servers) as we are geografically distributed company and we map stuff to the local servers.<br />
         2) Re designed a litle the HTML to add our company logo and put the user information in a table instead of plai text.<br />
         3) modified the group selection in order to pull the group information from multiple domains, and not just the current one.<br />
         4) created a simple XLS to show the current values in a more understandable way.</p>
<p>       If you think that the changes and you think that someone else might like them, let me know (you should have my email in this post) and i&#8217;ll send them to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Egil Hansen</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-214</link>
		<dc:creator>Egil Hansen</dc:creator>
		<pubDate>Wed, 24 Sep 2008 07:45:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-214</guid>
		<description>Hi Casper

There is no way to specify a user name and password. And you should never do that in a plain text file like the XML rules file, especially since that file is most likely placed in a rather public share like \\Domain\NETLOGON - which renders the point of having a user name and password irrelevant.

The script assumes the user logging onto computer is part of a domain, which means you can also assign access rights through NTFS ACLs on the shared folder directly, and thus do not need to specify a user name and password. That is by far the recommend way of doing things.

If the share is on a none Windows server, where you can not authenticate against the domain, and you need the data to be secure, I would look in to setting up a automated copy/move process of the data to a server that can be protected with NTFS security. That way only the copy/move process needs to know the security credentials to the original share.

Hope this helps, Egil.</description>
		<content:encoded><![CDATA[<p>Hi Casper</p>
<p>There is no way to specify a user name and password. And you should never do that in a plain text file like the XML rules file, especially since that file is most likely placed in a rather public share like \\Domain\NETLOGON &#8211; which renders the point of having a user name and password irrelevant.</p>
<p>The script assumes the user logging onto computer is part of a domain, which means you can also assign access rights through NTFS ACLs on the shared folder directly, and thus do not need to specify a user name and password. That is by far the recommend way of doing things.</p>
<p>If the share is on a none Windows server, where you can not authenticate against the domain, and you need the data to be secure, I would look in to setting up a automated copy/move process of the data to a server that can be protected with NTFS security. That way only the copy/move process needs to know the security credentials to the original share.</p>
<p>Hope this helps, Egil.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Casper</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-213</link>
		<dc:creator>Casper</dc:creator>
		<pubDate>Tue, 23 Sep 2008 11:40:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-213</guid>
		<description>I have the following code from KIX32 I&#039;d like to convert to your script but I cannot find the description for this.

Use S: &quot;\\SERVER\SHARE&quot; /user:SERVER\USERNAME /password:PASSWORD

I know I have to use something like this:



But cannot find a description about an option to put a username and password with mapDrive.</description>
		<content:encoded><![CDATA[<p>I have the following code from KIX32 I&#8217;d like to convert to your script but I cannot find the description for this.</p>
<p>Use S: &#8220;\\SERVER\SHARE&#8221; /user:SERVER\USERNAME /password:PASSWORD</p>
<p>I know I have to use something like this:</p>
<p>But cannot find a description about an option to put a username and password with mapDrive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Egil Hansen</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-98</link>
		<dc:creator>Egil Hansen</dc:creator>
		<pubDate>Thu, 12 Jun 2008 13:38:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-98</guid>
		<description>Hi Sidar

Thanks, please post any feedback you might have.</description>
		<content:encoded><![CDATA[<p>Hi Sidar</p>
<p>Thanks, please post any feedback you might have.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sidar Ok</title>
		<link>http://egilhansen.com/xml-driven-logon-script/comment-page-1/#comment-97</link>
		<dc:creator>Sidar Ok</dc:creator>
		<pubDate>Thu, 12 Jun 2008 12:31:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/xml-driven-logon-script/#comment-97</guid>
		<description>Really good work, I&#039;ll definitely have a deeper glance. Keep it up.</description>
		<content:encoded><![CDATA[<p>Really good work, I&#8217;ll definitely have a deeper glance. Keep it up.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
