 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to configure user to be local administrator for all PC&#8217;s in a domain without making him domain administrator</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/how-to-configure-user-to-be-local-administrator-for-all-pcs-in-a-domain-without-making-him-domain-administrator/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-configure-user-to-be-local-administrator-for-all-pcs-in-a-domain-without-making-him-domain-administrator/</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 05:05:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: jmalik</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-configure-user-to-be-local-administrator-for-all-pcs-in-a-domain-without-making-him-domain-administrator/#comment-43688</link>
		<dc:creator>jmalik</dc:creator>
		<pubDate>Tue, 08 Mar 2005 13:11:15 +0000</pubDate>
		<guid isPermaLink="false">#comment-43688</guid>
		<description><![CDATA[Thanks everyone esp rjournitz57 and amigus. The VBScript should do the trick. Thanks guys!]]></description>
		<content:encoded><![CDATA[<p>Thanks everyone esp rjournitz57 and amigus. The VBScript should do the trick. Thanks guys!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amigus</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-configure-user-to-be-local-administrator-for-all-pcs-in-a-domain-without-making-him-domain-administrator/#comment-43689</link>
		<dc:creator>amigus</dc:creator>
		<pubDate>Mon, 07 Mar 2005 14:16:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-43689</guid>
		<description><![CDATA[This VBS script should do what you want.  It will require some customization for your site and you&#039;ll need to run it from a domain controller or some computer trusted for delegation, as a Domain Administrator.

&#039; -- BEGIN --
&#039; Add user to local group for all domain computers.

strDomainSuffix = &quot;DC=example,DC=com&quot;

strDomain = &quot;EXAMPLE&quot;
strUser = &quot;Adam&quot;
strDstGroup = &quot;Administrators&quot;

Const ADS_SCOPE_SUBTREE = 2

Set objConnection = CreateObject(&quot;ADODB.Connection&quot;)
Set objCommand =   CreateObject(&quot;ADODB.Command&quot;)

objConnection.Provider = &quot;ADsDSOObject&quot;
objConnection.Open &quot;Active Directory Provider&quot;

Set objCommand.ActiveConnection = objConnection

&#039; Taylor this search to return the computers you want.
objCommand.CommandText = &quot;&quot; _
	&amp; &quot;select Name &quot; _
	&amp; &quot;from &#039;LDAP://&quot; &amp; strDomainSuffix &amp; &quot;&#039; &quot; _
	&amp; &quot;where objectClass=&#039;computer&#039; &quot; _
	&amp; &quot;and operatingSystem=&#039;Windows XP Professional&#039; &quot; _
	&amp; &quot;&quot;

objCommand.Properties(&quot;SearchScope&quot;) = ADS_SCOPE_SUBTREE 
objCommand.Properties(&quot;Cache Results&quot;) = False 
objCommand.Properties(&quot;Timeout&quot;) = 300

Set objRecordSet = objCommand.Execute

objRecordSet.MoveFirst
Do Until objRecordSet.EOF
	strComputer = objRecordSet.Fields(&quot;Name&quot;).Value

	Set objGroup = GetObject(&quot;WinNT://&quot; &amp; strComputer &amp; &quot;/&quot; &amp; strDstGroup &amp; &quot;,group&quot;)
	Set objUser = GetObject(&quot;WinNT://&quot; &amp; strDomain &amp; &quot;/&quot; &amp; strUser &amp; &quot;,user&quot;)

	WScript.Echo objUser.ADsPath &amp; &quot; -&gt; &quot; &amp; objGroup.ADsPath

	objGroup.Add(objUser.ADsPath)

	objRecordSet.MoveNext
Loop
&#039; -- END --]]></description>
		<content:encoded><![CDATA[<p>This VBS script should do what you want.  It will require some customization for your site and you&#8217;ll need to run it from a domain controller or some computer trusted for delegation, as a Domain Administrator.</p>
<p>&#8216; &#8212; BEGIN &#8211;<br />
&#8216; Add user to local group for all domain computers.</p>
<p>strDomainSuffix = &#8220;DC=example,DC=com&#8221;</p>
<p>strDomain = &#8220;EXAMPLE&#8221;<br />
strUser = &#8220;Adam&#8221;<br />
strDstGroup = &#8220;Administrators&#8221;</p>
<p>Const ADS_SCOPE_SUBTREE = 2</p>
<p>Set objConnection = CreateObject(&#8220;ADODB.Connection&#8221;)<br />
Set objCommand =   CreateObject(&#8220;ADODB.Command&#8221;)</p>
<p>objConnection.Provider = &#8220;ADsDSOObject&#8221;<br />
objConnection.Open &#8220;Active Directory Provider&#8221;</p>
<p>Set objCommand.ActiveConnection = objConnection</p>
<p>&#8216; Taylor this search to return the computers you want.<br />
objCommand.CommandText = &#8220;&#8221; _<br />
	&amp; &#8220;select Name &#8221; _<br />
	&amp; &#8220;from &#8216;LDAP://&#8221; &amp; strDomainSuffix &amp; &#8220;&#8216; &#8221; _<br />
	&amp; &#8220;where objectClass=&#8217;computer&#8217; &#8221; _<br />
	&amp; &#8220;and operatingSystem=&#8217;Windows XP Professional&#8217; &#8221; _<br />
	&amp; &#8220;&#8221;</p>
<p>objCommand.Properties(&#8220;SearchScope&#8221;) = ADS_SCOPE_SUBTREE<br />
objCommand.Properties(&#8220;Cache Results&#8221;) = False<br />
objCommand.Properties(&#8220;Timeout&#8221;) = 300</p>
<p>Set objRecordSet = objCommand.Execute</p>
<p>objRecordSet.MoveFirst<br />
Do Until objRecordSet.EOF<br />
	strComputer = objRecordSet.Fields(&#8220;Name&#8221;).Value</p>
<p>	Set objGroup = GetObject(&#8220;WinNT://&#8221; &amp; strComputer &amp; &#8220;/&#8221; &amp; strDstGroup &amp; &#8220;,group&#8221;)<br />
	Set objUser = GetObject(&#8220;WinNT://&#8221; &amp; strDomain &amp; &#8220;/&#8221; &amp; strUser &amp; &#8220;,user&#8221;)</p>
<p>	WScript.Echo objUser.ADsPath &amp; &#8221; -&gt; &#8221; &amp; objGroup.ADsPath</p>
<p>	objGroup.Add(objUser.ADsPath)</p>
<p>	objRecordSet.MoveNext<br />
Loop<br />
&#8216; &#8212; END &#8211;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: melenie</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-configure-user-to-be-local-administrator-for-all-pcs-in-a-domain-without-making-him-domain-administrator/#comment-43690</link>
		<dc:creator>melenie</dc:creator>
		<pubDate>Mon, 07 Mar 2005 08:24:33 +0000</pubDate>
		<guid isPermaLink="false">#comment-43690</guid>
		<description><![CDATA[Add the user&#039;s domain account to the local administrator account on the machine.  Just a note that if you don&#039;t have some type of imaging software to reimage machines when users &quot;make big mistakes&quot; on them, you may want to give them &quot;power user&quot; instead.  XP Pro is a powerfull OS. I hope this helps.]]></description>
		<content:encoded><![CDATA[<p>Add the user&#8217;s domain account to the local administrator account on the machine.  Just a note that if you don&#8217;t have some type of imaging software to reimage machines when users &#8220;make big mistakes&#8221; on them, you may want to give them &#8220;power user&#8221; instead.  XP Pro is a powerfull OS. I hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rjournitz574</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-configure-user-to-be-local-administrator-for-all-pcs-in-a-domain-without-making-him-domain-administrator/#comment-43691</link>
		<dc:creator>rjournitz574</dc:creator>
		<pubDate>Sun, 06 Mar 2005 03:50:27 +0000</pubDate>
		<guid isPermaLink="false">#comment-43691</guid>
		<description><![CDATA[Hello:

From your original question it sounds to me like what you want is to have a user whose account is domain based be a local administrator on all the PC?s in that same domain but not make that user a Domain Admin or delegate any Domain privileges.

If that is correct then I would suggest the following:

1. Write a VB script that:
    a. Gets the domain based user record.
    b. Adds this user to the Local Administrators group
       on the PC.
2.Add this script to an existing Computer Startup script in your AD Group Policy. If you do not have this policy script then create one.

Once the above runs on all you PC?s you can delete that portion of the GPO.

Email me directly at rjournitz574@charter.net if you would like an example of the script mentioned above.

Randy

]]></description>
		<content:encoded><![CDATA[<p>Hello:</p>
<p>From your original question it sounds to me like what you want is to have a user whose account is domain based be a local administrator on all the PC?s in that same domain but not make that user a Domain Admin or delegate any Domain privileges.</p>
<p>If that is correct then I would suggest the following:</p>
<p>1. Write a VB script that:<br />
    a. Gets the domain based user record.<br />
    b. Adds this user to the Local Administrators group<br />
       on the PC.<br />
2.Add this script to an existing Computer Startup script in your AD Group Policy. If you do not have this policy script then create one.</p>
<p>Once the above runs on all you PC?s you can delete that portion of the GPO.</p>
<p>Email me directly at <a href="mailto:rjournitz574@charter.net">rjournitz574@charter.net</a> if you would like an example of the script mentioned above.</p>
<p>Randy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: texasboy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-configure-user-to-be-local-administrator-for-all-pcs-in-a-domain-without-making-him-domain-administrator/#comment-43692</link>
		<dc:creator>texasboy</dc:creator>
		<pubDate>Sat, 05 Mar 2005 18:59:36 +0000</pubDate>
		<guid isPermaLink="false">#comment-43692</guid>
		<description><![CDATA[Sounds like you&#039;re still getting an incomplete answer. You want to structure AD for administrative purposes. In this case you will need an OU container that has these 60 computers in it. Once you have done so, right-click the OU name and choose &#039;Delegate control&#039;. This should launch the Delegate Control Wizard. You can specify just the type of administrative control you want to give for this OU to an individual. You can specify administering user accounts, adding computer accounts to domain, deleting computers, etc.]]></description>
		<content:encoded><![CDATA[<p>Sounds like you&#8217;re still getting an incomplete answer. You want to structure AD for administrative purposes. In this case you will need an OU container that has these 60 computers in it. Once you have done so, right-click the OU name and choose &#8216;Delegate control&#8217;. This should launch the Delegate Control Wizard. You can specify just the type of administrative control you want to give for this OU to an individual. You can specify administering user accounts, adding computer accounts to domain, deleting computers, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: imaginetsecurity</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-configure-user-to-be-local-administrator-for-all-pcs-in-a-domain-without-making-him-domain-administrator/#comment-43693</link>
		<dc:creator>imaginetsecurity</dc:creator>
		<pubDate>Fri, 04 Mar 2005 11:32:55 +0000</pubDate>
		<guid isPermaLink="false">#comment-43693</guid>
		<description><![CDATA[Use Group Policy.  Put those machines at issue into their own OU, create a policy for that OU that empowers your local administrator with the rights you require on those machines.  

I would suggest creating a user group in the OU through AD, add this user to the group, and then use that group in the above policy.  This way you can change the group membership and the policy and machines are automatically upated.]]></description>
		<content:encoded><![CDATA[<p>Use Group Policy.  Put those machines at issue into their own OU, create a policy for that OU that empowers your local administrator with the rights you require on those machines.  </p>
<p>I would suggest creating a user group in the OU through AD, add this user to the group, and then use that group in the above policy.  This way you can change the group membership and the policy and machines are automatically upated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jmalik</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-configure-user-to-be-local-administrator-for-all-pcs-in-a-domain-without-making-him-domain-administrator/#comment-43694</link>
		<dc:creator>jmalik</dc:creator>
		<pubDate>Fri, 04 Mar 2005 09:26:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-43694</guid>
		<description><![CDATA[Thanks for ur reply slesh20. 

The problem is that I will have to add the user to the local administrators group one by one for all 60 PC&#039;s. The domain admin is automatically local admin for all PC&#039;s in the domain. Is there any way by which I can make a user/group local administrator for all computers in a domain by default (or in one go) without making him a domain admin?

Thanks, jmalik]]></description>
		<content:encoded><![CDATA[<p>Thanks for ur reply slesh20. </p>
<p>The problem is that I will have to add the user to the local administrators group one by one for all 60 PC&#8217;s. The domain admin is automatically local admin for all PC&#8217;s in the domain. Is there any way by which I can make a user/group local administrator for all computers in a domain by default (or in one go) without making him a domain admin?</p>
<p>Thanks, jmalik</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.036 seconds using memcached
Object Caching 351/357 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 06:38:59 -->