<?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: List All User Object Attributes in Active Directory Schema.. Whew!</title> <atom:link href="http://halfloaded.com/blog/list-all-user-object-attributes-in-active-directory-schema-whew/feed/" rel="self" type="application/rss+xml" /><link>http://halfloaded.com/blog/list-all-user-object-attributes-in-active-directory-schema-whew/</link> <description>Smash forehead on keyboard to continue...</description> <lastBuildDate>Wed, 18 Jan 2012 03:07:46 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: JohnL</title><link>http://halfloaded.com/blog/list-all-user-object-attributes-in-active-directory-schema-whew/comment-page-1/#comment-1483</link> <dc:creator>JohnL</dc:creator> <pubDate>Thu, 11 Aug 2011 14:59:22 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/?p=116#comment-1483</guid> <description>I ran the script and got an compilation error, &quot;Sub expected&quot;.  I ran it on a domain computer with an administrative user account.  Is this supposed to be run from the Domain Controller itself?</description> <content:encoded><![CDATA[<p>I ran the script and got an compilation error, &#8220;Sub expected&#8221;.  I ran it on a domain computer with an administrative user account.  Is this supposed to be run from the Domain Controller itself?</p> ]]></content:encoded> </item> <item><title>By: Andrew</title><link>http://halfloaded.com/blog/list-all-user-object-attributes-in-active-directory-schema-whew/comment-page-1/#comment-1172</link> <dc:creator>Andrew</dc:creator> <pubDate>Thu, 23 Jun 2011 19:50:51 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/?p=116#comment-1172</guid> <description>For these, I typically just use: cscript /nologo script.vbs &gt; output.csv</description> <content:encoded><![CDATA[<p>For these, I typically just use: cscript /nologo script.vbs > output.csv</p> ]]></content:encoded> </item> <item><title>By: Andrew</title><link>http://halfloaded.com/blog/list-all-user-object-attributes-in-active-directory-schema-whew/comment-page-1/#comment-1171</link> <dc:creator>Andrew</dc:creator> <pubDate>Thu, 23 Jun 2011 19:19:38 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/?p=116#comment-1171</guid> <description>Thanks Mike.  Glad you found it useful.</description> <content:encoded><![CDATA[<p>Thanks Mike.  Glad you found it useful.</p> ]]></content:encoded> </item> <item><title>By: mikep</title><link>http://halfloaded.com/blog/list-all-user-object-attributes-in-active-directory-schema-whew/comment-page-1/#comment-1169</link> <dc:creator>mikep</dc:creator> <pubDate>Thu, 23 Jun 2011 11:00:20 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/?p=116#comment-1169</guid> <description>And by the way GREAT SCRIPT, THANK YOU !!!</description> <content:encoded><![CDATA[<p>And by the way GREAT SCRIPT, THANK YOU !!!</p> ]]></content:encoded> </item> <item><title>By: mikep</title><link>http://halfloaded.com/blog/list-all-user-object-attributes-in-active-directory-schema-whew/comment-page-1/#comment-1168</link> <dc:creator>mikep</dc:creator> <pubDate>Thu, 23 Jun 2011 10:57:47 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/?p=116#comment-1168</guid> <description>You probally already know this but
by adding a few lines you can ouput this to a file:
&#039;*  Script name:   List All Attributes.vbs
&#039;*  Created on:    01/28/2009
&#039;*  Author:        Andrew J Healey
&#039;*  Purpose:       Exports all attributes from the user object type within
&#039;*                 the Active Directory schema.
&#039;*  Usage:         cscript /nologo &quot;list all attributes.vbs&quot; &gt; Attributes.csv
&#039;*  History:       Andrew J Healey 01/28/2009
&#039;*                  - Created script
&#039;
&#039;  ******   add code  *********
Set WSHShell = CreateObject(&quot;WScript.Shell&quot;)
Set objFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)
objpath = WshShell.SpecialFolders(&quot;Desktop&quot;)
Set objFolder = objFSO.GetFolder(objpath)
For Each objFile In objFolder.files
If objFile.Name = &quot;users.txt&quot; Then
objFile.Delete True
End If
Next
Set objfile = objFSO.CreateTextFile(objpath&amp;&quot;\ad.csv&quot;, True)
set objfile = nothing
Set objfile = objFSO.OpenTextFile(objpath&amp;&quot;\ad.csv&quot;, 8, True)
&#039;  ******   end  add  *********
Dim objUserClass : Set objUserClass = GetObject(&quot;LDAP://schema/user&quot;)
Dim objSchemaClass : Set objSchemaClass = GetObject(objUserClass.Parent)
&#039;  ******   change code - from *********
&#039;wscript.echo chr(34) &amp; &quot;Mandatory&quot; &amp; chr(34) &amp; &quot;,&quot; &amp; _
&#039;			 chr(34) &amp; &quot;Name&quot; &amp; chr(34) &amp; &quot;,&quot; &amp; _
&#039;			 chr(34) &amp; &quot;Syntax&quot; &amp; chr(34) &amp; &quot;,&quot; &amp; _
&#039;			 chr(34) &amp; &quot;Single/Multi Valued&quot; &amp; chr(34)
&#039;  ******   change code - to   *********
writeme = chr(34) &amp; &quot;Mandatory&quot; &amp; chr(34) &amp; &quot;,&quot; &amp; chr(34) &amp; &quot;Name&quot; &amp; chr(34) &amp; &quot;,&quot; &amp; chr(34) &amp; &quot;Syntax&quot; &amp; chr(34) &amp; &quot;,&quot; &amp; chr(34) &amp; &quot;Single/Multi Valued&quot; &amp; chr(34)
objfile.writeline(writeme)
&#039;  ******   end   change code  *********
Call GetAttributes(objUserClass.MandatoryProperties,objSchemaClass,True)
Call GetAttributes(objUserClass.OptionalProperties,objSchemaClass,False)
Private Sub GetAttributes(x,y,z)
Dim strAttribute
For Each strAttribute in x
Dim strOut : strOut = &quot;&quot;
If z = True then
strOut = strOut &amp; chr(34) &amp; &quot;Yes&quot; &amp; chr(34) &amp; &quot;,&quot; &amp; chr(34) &amp; strAttribute &amp; chr(34) &amp; &quot;,&quot;
Else
strOut = strOut &amp; chr(34) &amp; &quot;No&quot; &amp; chr(34) &amp; &quot;,&quot; &amp; chr(34) &amp; strAttribute &amp; chr(34) &amp; &quot;,&quot;
End If
Dim objAttribute : Set objAttribute = y.GetObject(&quot;Property&quot;,  strAttribute)
strOut = strOut &amp; chr(34) &amp; objAttribute.Syntax &amp; chr(34) &amp; &quot;,&quot;
If objAttribute.MultiValued Then
strOut = strOut &amp; chr(34) &amp; &quot;Multi&quot; &amp; chr(34)
Else
strOut = strOut &amp; chr(34) &amp; &quot;Single&quot; &amp; chr(34)
End If
&#039;  ******   change code - from *********
&#039;	wscript.echo strOut
&#039;  ******   change code - to   *********
objfile.writeline(strOut)
&#039;  ******   end  section       *********
strOut = Empty
Next
Set objAttribute = Nothing
strAttribute = Empty
End Sub
&#039;  ******   add code  *********
Set objDomain = Nothing
objfile.close
set objfile = nothing
set objfso = nothing
Wscript.Echo &quot;AD file created, DONE&quot;
&#039;  ******   end  add  *********</description> <content:encoded><![CDATA[<p>You probally already know this but<br
/> by adding a few lines you can ouput this to a file:</p><p>&#8216;*  Script name:   List All Attributes.vbs<br
/> &#8216;*  Created on:    01/28/2009<br
/> &#8216;*  Author:        Andrew J Healey<br
/> &#8216;*  Purpose:       Exports all attributes from the user object type within<br
/> &#8216;*                 the Active Directory schema.<br
/> &#8216;*  Usage:         cscript /nologo &#8220;list all attributes.vbs&#8221; &gt; Attributes.csv<br
/> &#8216;*  History:       Andrew J Healey 01/28/2009<br
/> &#8216;*                  &#8211; Created script<br
/> &#8216;</p><p>&#8216;  ******   add code  *********</p><p>Set WSHShell = CreateObject(&#8220;WScript.Shell&#8221;)<br
/> Set objFSO = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<br
/> objpath = WshShell.SpecialFolders(&#8220;Desktop&#8221;)<br
/> Set objFolder = objFSO.GetFolder(objpath)<br
/> For Each objFile In objFolder.files<br
/> If objFile.Name = &#8220;users.txt&#8221; Then<br
/> objFile.Delete True<br
/> End If<br
/> Next<br
/> Set objfile = objFSO.CreateTextFile(objpath&amp;&#8221;\ad.csv&#8221;, True)<br
/> set objfile = nothing<br
/> Set objfile = objFSO.OpenTextFile(objpath&amp;&#8221;\ad.csv&#8221;, 8, True)</p><p>&#8216;  ******   end  add  *********</p><p>Dim objUserClass : Set objUserClass = GetObject(&#8220;LDAP://schema/user&#8221;)<br
/> Dim objSchemaClass : Set objSchemaClass = GetObject(objUserClass.Parent)</p><p>&#8216;  ******   change code &#8211; from *********</p><p>&#8216;wscript.echo chr(34) &amp; &#8220;Mandatory&#8221; &amp; chr(34) &amp; &#8220;,&#8221; &amp; _<br
/> &#8216;			 chr(34) &amp; &#8220;Name&#8221; &amp; chr(34) &amp; &#8220;,&#8221; &amp; _<br
/> &#8216;			 chr(34) &amp; &#8220;Syntax&#8221; &amp; chr(34) &amp; &#8220;,&#8221; &amp; _<br
/> &#8216;			 chr(34) &amp; &#8220;Single/Multi Valued&#8221; &amp; chr(34)</p><p>&#8216;  ******   change code &#8211; to   *********</p><p>writeme = chr(34) &amp; &#8220;Mandatory&#8221; &amp; chr(34) &amp; &#8220;,&#8221; &amp; chr(34) &amp; &#8220;Name&#8221; &amp; chr(34) &amp; &#8220;,&#8221; &amp; chr(34) &amp; &#8220;Syntax&#8221; &amp; chr(34) &amp; &#8220;,&#8221; &amp; chr(34) &amp; &#8220;Single/Multi Valued&#8221; &amp; chr(34)<br
/> objfile.writeline(writeme)</p><p>&#8216;  ******   end   change code  *********</p><p>Call GetAttributes(objUserClass.MandatoryProperties,objSchemaClass,True)<br
/> Call GetAttributes(objUserClass.OptionalProperties,objSchemaClass,False)<br
/> Private Sub GetAttributes(x,y,z)<br
/> Dim strAttribute<br
/> For Each strAttribute in x<br
/> Dim strOut : strOut = &#8220;&#8221;<br
/> If z = True then<br
/> strOut = strOut &amp; chr(34) &amp; &#8220;Yes&#8221; &amp; chr(34) &amp; &#8220;,&#8221; &amp; chr(34) &amp; strAttribute &amp; chr(34) &amp; &#8220;,&#8221;<br
/> Else<br
/> strOut = strOut &amp; chr(34) &amp; &#8220;No&#8221; &amp; chr(34) &amp; &#8220;,&#8221; &amp; chr(34) &amp; strAttribute &amp; chr(34) &amp; &#8220;,&#8221;<br
/> End If<br
/> Dim objAttribute : Set objAttribute = y.GetObject(&#8220;Property&#8221;,  strAttribute)<br
/> strOut = strOut &amp; chr(34) &amp; objAttribute.Syntax &amp; chr(34) &amp; &#8220;,&#8221;<br
/> If objAttribute.MultiValued Then<br
/> strOut = strOut &amp; chr(34) &amp; &#8220;Multi&#8221; &amp; chr(34)<br
/> Else<br
/> strOut = strOut &amp; chr(34) &amp; &#8220;Single&#8221; &amp; chr(34)<br
/> End If</p><p>&#8216;  ******   change code &#8211; from *********</p><p>&#8216;	wscript.echo strOut</p><p>&#8216;  ******   change code &#8211; to   *********</p><p> objfile.writeline(strOut)</p><p>&#8216;  ******   end  section       *********</p><p> strOut = Empty<br
/> Next<br
/> Set objAttribute = Nothing<br
/> strAttribute = Empty<br
/> End Sub</p><p>&#8216;  ******   add code  *********<br
/> Set objDomain = Nothing<br
/> objfile.close<br
/> set objfile = nothing<br
/> set objfso = nothing<br
/> Wscript.Echo &#8220;AD file created, DONE&#8221;<br
/> &#8216;  ******   end  add  *********</p> ]]></content:encoded> </item> <item><title>By: Tom</title><link>http://halfloaded.com/blog/list-all-user-object-attributes-in-active-directory-schema-whew/comment-page-1/#comment-1025</link> <dc:creator>Tom</dc:creator> <pubDate>Tue, 08 Feb 2011 00:44:29 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/?p=116#comment-1025</guid> <description>A great help and works well!  Thanks much!</description> <content:encoded><![CDATA[<p>A great help and works well!  Thanks much!</p> ]]></content:encoded> </item> <item><title>By: links for 2010-11-12 &#124; Ronaldo Richieri</title><link>http://halfloaded.com/blog/list-all-user-object-attributes-in-active-directory-schema-whew/comment-page-1/#comment-364</link> <dc:creator>links for 2010-11-12 &#124; Ronaldo Richieri</dc:creator> <pubDate>Fri, 12 Nov 2010 16:03:48 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/?p=116#comment-364</guid> <description>[...] List All User Object Attributes in Active Directory Schema.. Whew! Um script ASP para listar atributos ActiveDirectory de um usuário ou de um contexto. (tags: ldap) [...]</description> <content:encoded><![CDATA[<p>[...] List All User Object Attributes in Active Directory Schema.. Whew! Um script ASP para listar atributos ActiveDirectory de um usuário ou de um contexto. (tags: ldap) [...]</p> ]]></content:encoded> </item> <item><title>By: Dom</title><link>http://halfloaded.com/blog/list-all-user-object-attributes-in-active-directory-schema-whew/comment-page-1/#comment-193</link> <dc:creator>Dom</dc:creator> <pubDate>Wed, 12 Aug 2009 11:55:43 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/?p=116#comment-193</guid> <description>works well, thanks!</description> <content:encoded><![CDATA[<p>works well, thanks!</p> ]]></content:encoded> </item> <item><title>By: Glen</title><link>http://halfloaded.com/blog/list-all-user-object-attributes-in-active-directory-schema-whew/comment-page-1/#comment-188</link> <dc:creator>Glen</dc:creator> <pubDate>Fri, 01 May 2009 05:32:41 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/?p=116#comment-188</guid> <description>Most impressive! Thanks mate.</description> <content:encoded><![CDATA[<p>Most impressive! Thanks mate.</p> ]]></content:encoded> </item> <item><title>By: Mark</title><link>http://halfloaded.com/blog/list-all-user-object-attributes-in-active-directory-schema-whew/comment-page-1/#comment-79</link> <dc:creator>Mark</dc:creator> <pubDate>Mon, 02 Mar 2009 14:27:20 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/?p=116#comment-79</guid> <description>Thanks for the script!
There&#039;s a typo in the file name in the Usage section though :)</description> <content:encoded><![CDATA[<p>Thanks for the script!</p><p>There&#8217;s a typo in the file name in the Usage section though <img
src='http://halfloaded.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> </channel> </rss>
<!-- This Quick Cache file was built for (  halfloaded.com/blog/list-all-user-object-attributes-in-active-directory-schema-whew/feed/ ) in 0.26519 seconds, on Feb 5th, 2012 at 12:07 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 5th, 2012 at 1:07 am UTC -->
