<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Installing Applications Using Active Directory Group Membership</title><link>http://blogs.technet.com/deploymentguys/archive/2009/06/22/installing-applications-based-on-active-directory-group-membership.aspx</link><description>Mike recently posted on how to take an MDT action based on group membership in Active Directory. At the same time, I was working on something quite similar but using a different approach, so I thought I’d blog it here to offer an alternative method to</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Installing Applications Using Active Directory Group Membership</title><link>http://blogs.technet.com/deploymentguys/archive/2009/06/22/installing-applications-based-on-active-directory-group-membership.aspx#3258312</link><pubDate>Wed, 24 Jun 2009 19:09:55 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3258312</guid><dc:creator>Jake Swason</dc:creator><description>&lt;p&gt;Daniel - this is exciting and could be a great replacement for role-based deployment scenarios.&lt;/p&gt;
&lt;p&gt;I have a question about &amp;quot;all computer accounts pre-created in the domain and added to the relevant application groups.&amp;quot; &amp;nbsp;Can you elaborate on this?&lt;/p&gt;
&lt;p&gt;I want to create an &amp;quot;Engineering&amp;quot; Task Sequence that will install 3 applications based on AD Group. &amp;nbsp;These 3 Engineer apps are setup so that we can add members to those groups and deploy via ConfgMgr. Can you explain what I need to do to accomplish this?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Jake&lt;/p&gt;</description></item><item><title>re: Installing Applications Using Active Directory Group Membership</title><link>http://blogs.technet.com/deploymentguys/archive/2009/06/22/installing-applications-based-on-active-directory-group-membership.aspx#3258494</link><pubDate>Thu, 25 Jun 2009 09:25:05 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3258494</guid><dc:creator>Daniel Oxley</dc:creator><description>&lt;p&gt;Jake,&lt;/p&gt;
&lt;p&gt;Nice to hear that you find it useful! &amp;nbsp;Let me elaborate on your question.&lt;/p&gt;
&lt;p&gt;In order for the script to work, the groups must already exist in Active Directory. &amp;nbsp;This means that, being being able to deploy a computer, the computer account must have been pre-created (often called pre-staging) in Active Directory. &amp;nbsp;Additionally, the groups need pre-creating for each application, and then the correct pre-created computer accounts added to these groups.&lt;/p&gt;
&lt;p&gt;Once done, the script will read the computers hostname, then run an LDAP query to confirm if a computer account with the same name as the hostname belongs to the specified group.&lt;/p&gt;
&lt;p&gt;Is that clearer?&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;Daniel&lt;/p&gt;
&lt;p&gt;p.s. If you are using ConfigMgr, then you could also deploy applications to groups of computers without the need for my script. &amp;nbsp;I wrote the script with LiteTouch installations in mind.&lt;/p&gt;
</description></item><item><title>re: Installing Applications Using Active Directory Group Membership</title><link>http://blogs.technet.com/deploymentguys/archive/2009/06/22/installing-applications-based-on-active-directory-group-membership.aspx#3258600</link><pubDate>Thu, 25 Jun 2009 16:19:18 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3258600</guid><dc:creator>Jake Swanson</dc:creator><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;Awesome stuff! &amp;nbsp;So, if I am hearing what I think I am hearing, you're saying that with this solution, before we do a deployment..1) the AD group containing the application needs to exist and 2)The PC name needs to be collected and added as a member to the appropriate AD group?&lt;/p&gt;
&lt;p&gt;For example, I have an SMSpkg Group containing my engineering app and I would add the PC name for that machine to this AD group? &amp;nbsp;Is this correct?&lt;/p&gt;
&lt;p&gt;Thanks for sharing this stuff...it is great!&lt;/p&gt;
&lt;p&gt;Jake&lt;/p&gt;</description></item><item><title>re: Installing Applications Using Active Directory Group Membership</title><link>http://blogs.technet.com/deploymentguys/archive/2009/06/22/installing-applications-based-on-active-directory-group-membership.aspx#3258843</link><pubDate>Fri, 26 Jun 2009 09:31:56 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3258843</guid><dc:creator>Daniel Oxley</dc:creator><description>&lt;p&gt;Jake,&lt;/p&gt;
&lt;p&gt;I am wondering if you are not quite following me. &amp;nbsp;This solution doesn't use any ConfigMgr groups, nor does it require it. &amp;nbsp;I wrote it for LTI installs, but it would work with ZTI as well. &amp;nbsp;Here is the process:&lt;/p&gt;
&lt;p&gt;1.) Create a group in Active Directory&lt;/p&gt;
&lt;p&gt;2.) Create a computer account object in Active Directory&lt;/p&gt;
&lt;p&gt;3.) Add computer object to group created&lt;/p&gt;
&lt;p&gt;4.) Add this solution to MDT and specify the DN for the AD group in the task sequence.&lt;/p&gt;
&lt;p&gt;5.) Run deployment.&lt;/p&gt;
&lt;p&gt;6.) The app will install if the script finds that the computer account (the one for the computer running the install) belongs to the specified group.&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;Daniel&lt;/p&gt;
</description></item><item><title>re: Installing Applications Using Active Directory Group Membership</title><link>http://blogs.technet.com/deploymentguys/archive/2009/06/22/installing-applications-based-on-active-directory-group-membership.aspx#3263473</link><pubDate>Mon, 13 Jul 2009 19:11:39 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3263473</guid><dc:creator>Dustin Martin</dc:creator><description>&lt;p&gt;Is it possible to use this solution with the PutEX or Put Methods of the ADSI objects? &lt;/p&gt;
&lt;p&gt; I've written a few scripts to test it, and continue to recieve the same &amp;quot;General access denied&amp;quot; errors i recieved when i use a normal ADSI LDAP connection instead of the OpenDSObject method with supplied credentials. &amp;nbsp; &lt;/p&gt;
&lt;p&gt; I'm trying to add some build scripts into my process to add PC's to security groups based on make/model and location in some situations (WSUS Policy groups, Wireless policy groups, things like that). &amp;nbsp;I'm assuming a run-as is still going to be required due to the access denied error i'm still recieving, however there are issues with the RUNAS feature in MDT i've found as well. (maybe not newer versions, but my current revision of MDT2008 is somewhat picky it seems)&lt;/p&gt;
&lt;p&gt;I've included a quick example: , both Put and PutEx fail with the same error.&lt;/p&gt;
&lt;p&gt;Set objSysInfo = CreateObject(&amp;quot;ADSystemInfo&amp;quot;)&lt;/p&gt;
&lt;p&gt;sComputerName = objSysInfo.ComputerName&lt;/p&gt;
&lt;p&gt;Set dso = GetObject(&amp;quot;LDAP:&amp;quot;)&lt;/p&gt;
&lt;p&gt;Set objGroup = dso.OpenDSObject(&amp;quot;LDAP://mydcname/cn=WSUSGroup,dc=subdomain,dc=domain,dc=com&amp;quot;, &amp;quot;dom\user&amp;quot;, &amp;quot;password&amp;quot;, ADS_SECURE_AUTHENTICATION + ADS_SERVER_BIND + ADS_FAST_BIND )&lt;/p&gt;
&lt;p&gt;objGroup.Put &amp;quot;member&amp;quot;, Array(sComputerName)&lt;/p&gt;
&lt;p&gt;objGroup.SetInfo&lt;/p&gt;
&lt;p&gt;objGroup.PutEx ADS_PROPERTY_APPEND, &amp;quot;member&amp;quot;, Array(sComputerName)&lt;/p&gt;
&lt;p&gt;objGroup.SetInfo&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;-Dustin&lt;/p&gt;</description></item><item><title>re: Installing Applications Using Active Directory Group Membership</title><link>http://blogs.technet.com/deploymentguys/archive/2009/06/22/installing-applications-based-on-active-directory-group-membership.aspx#3291605</link><pubDate>Thu, 05 Nov 2009 06:46:40 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3291605</guid><dc:creator>j_seet</dc:creator><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I'm attempting to execute a script with MDT by utilising the existing credentials in cs.ini. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I've got a VB script that will add the AD Group to the computer's (that it's running from) membership and upon next reboot it will install the application. &amp;nbsp;At the moment this will only work when it's logged in with an domain admin account. &amp;nbsp;MDT2010 logs in with the local administrator account when it is deploying. &amp;nbsp;Is there a way to utilize the existing MDT2010 credentials in cs.ini as that already has the credentials inside, and I don't want to be changing credentials in more than one place.&lt;/p&gt;
&lt;p&gt;The piece of code i've got so far is:&lt;/p&gt;
&lt;p&gt;Set objNetwork = CreateObject(&amp;quot;Wscript.Network&amp;quot;)&lt;/p&gt;
&lt;p&gt;strcomputername = ucase((objnetwork.computername))&lt;/p&gt;
&lt;p&gt;' Adds computer to &amp;quot;INSTALL - Java&amp;quot; group&lt;/p&gt;
&lt;p&gt;'==========================================================&lt;/p&gt;
&lt;p&gt;Const ADS_PROPERTY_APPEND = 3&lt;/p&gt;
&lt;p&gt;Set objGroup = GetObject _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;(&amp;quot;LDAP://cn=INSTALL - Java,ou=Groups,dc=domain,dc=com,dc=au&amp;quot;)&lt;/p&gt;
&lt;p&gt;objGroup.PutEx ADS_PROPERTY_APPEND, _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;quot;member&amp;quot;, Array(&amp;quot;cn=&amp;quot;&amp;amp;strcomputername&amp;amp;&amp;quot;,ou=Computers,ou=_Perth,dc=domain,dc=com,dc=au&amp;quot;)&lt;/p&gt;
&lt;p&gt;objGroup.SetInfo&lt;/p&gt;
&lt;p&gt;Thanks in advance!!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Jon&lt;/p&gt;</description></item><item><title>re: Installing Applications Using Active Directory Group Membership</title><link>http://blogs.technet.com/deploymentguys/archive/2009/06/22/installing-applications-based-on-active-directory-group-membership.aspx#3291606</link><pubDate>Thu, 05 Nov 2009 06:47:17 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3291606</guid><dc:creator>j_seet</dc:creator><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I'm attempting to execute a script with MDT by utilising the existing credentials in cs.ini. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I've got a VB script that will add the AD Group to the computer's (that it's running from) membership and upon next reboot it will install the application. &amp;nbsp;At the moment this will only work when it's logged in with an domain admin account. &amp;nbsp;MDT2010 logs in with the local administrator account when it is deploying. &amp;nbsp;Is there a way to utilize the existing MDT2010 credentials in cs.ini as that already has the credentials inside, and I don't want to be changing credentials in more than one place.&lt;/p&gt;
&lt;p&gt;The piece of code i've got so far is:&lt;/p&gt;
&lt;p&gt;Set objNetwork = CreateObject(&amp;quot;Wscript.Network&amp;quot;)&lt;/p&gt;
&lt;p&gt;strcomputername = ucase((objnetwork.computername))&lt;/p&gt;
&lt;p&gt;' Adds computer to &amp;quot;INSTALL - Java&amp;quot; group&lt;/p&gt;
&lt;p&gt;'==========================================================&lt;/p&gt;
&lt;p&gt;Const ADS_PROPERTY_APPEND = 3&lt;/p&gt;
&lt;p&gt;Set objGroup = GetObject _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;(&amp;quot;LDAP://cn=INSTALL - Java,ou=Groups,dc=domain,dc=com,dc=au&amp;quot;)&lt;/p&gt;
&lt;p&gt;objGroup.PutEx ADS_PROPERTY_APPEND, _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;quot;member&amp;quot;, Array(&amp;quot;cn=&amp;quot;&amp;amp;strcomputername&amp;amp;&amp;quot;,ou=Computers,ou=_Perth,dc=domain,dc=com,dc=au&amp;quot;)&lt;/p&gt;
&lt;p&gt;objGroup.SetInfo&lt;/p&gt;
&lt;p&gt;Thanks in advance!!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Jon&lt;/p&gt;</description></item><item><title>re: Installing Applications Using Active Directory Group Membership</title><link>http://blogs.technet.com/deploymentguys/archive/2009/06/22/installing-applications-based-on-active-directory-group-membership.aspx#3291626</link><pubDate>Thu, 05 Nov 2009 08:23:09 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3291626</guid><dc:creator>Daniel Oxley</dc:creator><description>&lt;p&gt;j_seet,&lt;/p&gt;
&lt;p&gt;Look at the post previous to this one, written by Michael Murgolo. &amp;nbsp;IIRC, he wrote a script that does the same as this one, but retrieves the credentials from the CustomSettings file&lt;/p&gt;
</description></item><item><title>re: Installing Applications Using Active Directory Group Membership</title><link>http://blogs.technet.com/deploymentguys/archive/2009/06/22/installing-applications-based-on-active-directory-group-membership.aspx#3291865</link><pubDate>Fri, 06 Nov 2009 04:31:27 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3291865</guid><dc:creator>j_seet</dc:creator><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;Thanks for the reply!&lt;/p&gt;
&lt;p&gt;I'm just wondering how I could implement Michael's solution into what I'm attempting to do:&lt;/p&gt;
&lt;p&gt;Basically, the user chooses which applications to install, and during the install applications task, it simply runs the script that adds the GP group to the computer's account. &amp;nbsp;So it's run from stand-alone MDT. &amp;nbsp;Where/how can I add the call to pull the credentials from the cs file?&lt;/p&gt;
&lt;p&gt;I admit that my vbs skills are very amatuer at best&lt;/p&gt;</description></item><item><title>re: Installing Applications Using Active Directory Group Membership</title><link>http://blogs.technet.com/deploymentguys/archive/2009/06/22/installing-applications-based-on-active-directory-group-membership.aspx#3291896</link><pubDate>Fri, 06 Nov 2009 09:13:31 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3291896</guid><dc:creator>Daniel Oxley</dc:creator><description>&lt;p&gt;@j_seet&lt;/p&gt;
&lt;p&gt;I think Iam missing something... &amp;nbsp;Why not just have the applications in MDT. &amp;nbsp;Then, when the user chooses the apps to install at the start of the MDT process, they will all get installed - this way you won't need to use Active Directory groups to install the applications.&lt;/p&gt;
&lt;p&gt;What you want to do seems rather convoluted... &amp;nbsp;I really wouldn't try to do it your way unless you have a very specific reason for it.&lt;/p&gt;
&lt;p&gt;Daniel&lt;/p&gt;
</description></item><item><title>re: Installing Applications Using Active Directory Group Membership</title><link>http://blogs.technet.com/deploymentguys/archive/2009/06/22/installing-applications-based-on-active-directory-group-membership.aspx#3292114</link><pubDate>Sat, 07 Nov 2009 04:16:28 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3292114</guid><dc:creator>j_seet</dc:creator><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;I've opted for this because we want the the software to uninstall if the AD group is taken out of the computer account or falls out of scope (removed from domain etc).&lt;/p&gt;
&lt;p&gt;I've trialled your suggestion before but it doesn't allow the flexibility of GP scopes. &amp;nbsp;hope that makes sense&lt;/p&gt;</description></item><item><title>re: Installing Applications Using Active Directory Group Membership</title><link>http://blogs.technet.com/deploymentguys/archive/2009/06/22/installing-applications-based-on-active-directory-group-membership.aspx#3292733</link><pubDate>Tue, 10 Nov 2009 10:17:24 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3292733</guid><dc:creator>Daniel Oxley</dc:creator><description>&lt;p&gt;@j_seet&lt;/p&gt;
&lt;p&gt;No, my solution will not force the application to uninstall when taking the computer out of a group. &amp;nbsp;In order to achieve that you would need to use something like SCCM in order to handle the application inventory on each machine.&lt;/p&gt;
&lt;p&gt;Daniel&lt;/p&gt;
</description></item><item><title>re: Installing Applications Using Active Directory Group Membership</title><link>http://blogs.technet.com/deploymentguys/archive/2009/06/22/installing-applications-based-on-active-directory-group-membership.aspx#3292978</link><pubDate>Wed, 11 Nov 2009 00:45:27 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3292978</guid><dc:creator>j_seet</dc:creator><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;This is why i'm wanting to install software via a group policy security groups. &amp;nbsp;We don't have SCCM/SMS. &amp;nbsp;I was just hoping that you could help me find a way to get the &amp;quot;install applications&amp;quot; task to add a security group to a computer account.&lt;/p&gt;
&lt;p&gt;If not, thanks anyways!&lt;/p&gt;</description></item><item><title>re: Installing Applications Using Active Directory Group Membership</title><link>http://blogs.technet.com/deploymentguys/archive/2009/06/22/installing-applications-based-on-active-directory-group-membership.aspx#3293283</link><pubDate>Thu, 12 Nov 2009 05:44:53 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3293283</guid><dc:creator>j_seet</dc:creator><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;Nevermind. &amp;nbsp;I've figured out exactly what I wanted utilizing Ben Hunter's templates. &amp;nbsp;Dude's a genius&lt;/p&gt;</description></item></channel></rss>