<?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 get a computer&#8217;s Active Directory OU using VBScript</title>
	<atom:link href="http://www.searchmarked.com/windows/how-to-get-a-computers-active-directory-ou-using-vbscript.php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.searchmarked.com/windows/how-to-get-a-computers-active-directory-ou-using-vbscript.php</link>
	<description>I search, I bookmark, I write, You learn.</description>
	<lastBuildDate>Tue, 13 Dec 2011 08:27:48 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Edmar</title>
		<link>http://www.searchmarked.com/windows/how-to-get-a-computers-active-directory-ou-using-vbscript.php/comment-page-1#comment-1438</link>
		<dc:creator>Edmar</dc:creator>
		<pubDate>Thu, 22 Sep 2011 14:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.searchmarked.com/windows/how-to-get-a-computers-active-directory-ou-using-vbscript.php#comment-1438</guid>
		<description>Hey,

I have a last logon script that gives me usernames, dates/times, OUs, DCs, etc...from an active directory. I am trying to also get the computer name of each of these logs, but haven&#039;t found a way to do it yet. How can I do it based on the codes previously mentioned?
Here is the script I&#039;m working with:

&#039; LastLogon.vbs
&#039; VBScript program to determine when each user in the domain last logged
&#039; on.
&#039;
&#039; ----------------------------------------------------------------------
&#039; Copyright (c) 2002-2010 Richard L. Mueller
&#039; Hilltop Lab web site - http://www.rlmueller.net
&#039; Version 1.0 - December 7, 2002
&#039; Version 1.1 - January 17, 2003 - Account for null value for lastLogon.
&#039; Version 1.2 - January 23, 2003 - Account for DC not available.
&#039; Version 1.3 - February 3, 2003 - Retrieve users but not contacts.
&#039; Version 1.4 - February 19, 2003 - Standardize Hungarian notation.
&#039; Version 1.5 - March 11, 2003 - Remove SearchScope property.
&#039; Version 1.6 - May 9, 2003 - Account for error in IADsLargeInteger
&#039;                             property methods HighPart and LowPart.
&#039; Version 1.7 - January 25, 2004 - Modify error trapping.
&#039; Version 1.8 - July 6, 2007 - Modify how IADsLargeInteger interface
&#039;                              is invoked.
&#039; Version 1.9 - December 29, 2009 - Output &quot;Never&quot; if no date.
&#039; Version 1.10 - November 6, 2010 - No need to set objects to Nothing.
&#039;
&#039; Because the lastLogon attribute is not replicated, every Domain
&#039; Controller in the domain must be queried to find the latest lastLogon
&#039; date for each user. The lastest date found is kept in a dictionary
&#039; object. The program first uses ADO to search the domain for all Domain
&#039; Controllers. The AdsPath of each Domain Controller is saved in an
&#039; array. Then, for each Domain Controller, ADO is used to search the
&#039; copy of Active Directory on that Domain Controller for all user
&#039; objects and return the lastLogon attribute. The lastLogon attribute is
&#039; a 64-bit number representing the number of 100 nanosecond intervals
&#039; since 12:00 am January 1, 1601. This value is converted to a date. The
&#039; last logon date is in UTC (Coordinated Univeral Time). It must be
&#039; adjusted by the Time Zone bias in the machine registry to convert to
&#039; local time.
&#039;
&#039; You have a royalty-free right to use, modify, reproduce, and
&#039; distribute this script file in any way you find useful, provided that
&#039; you agree that the copyright owner above has no warranty, obligations,
&#039; or liability for such use.

Option Explicit

Dim objRootDSE, strConfig, adoConnection, adoCommand, strQuery
Dim adoRecordset, objDC
Dim strDNSDomain, objShell, lngBiasKey, lngBias, k, arrstrDCs()
Dim strDN, dtmDate, objDate, objList, strUser
Dim strBase, strFilter, strAttributes, lngHigh, lngLow

&#039;added variables to output to a file - by Edmar Goncalves 09/16/2011
Dim objFSO, objFile, objCompN, strComputerName


Set objFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)
Set objFile = objFSO.CreateTextFile(&quot;output2.txt&quot;, True)
&#039;----------------------

&#039; Use a dictionary object to track latest lastLogon for each user.
Set objList = CreateObject(&quot;Scripting.Dictionary&quot;)
objList.CompareMode = vbTextCompare

&#039; Obtain local Time Zone bias from machine registry.
&#039; This bias changes with Daylight Savings Time.
Set objShell = CreateObject(&quot;Wscript.Shell&quot;)
lngBiasKey = objShell.RegRead(&quot;HKLM\System\CurrentControlSet\Control\&quot; _
    &amp; &quot;TimeZoneInformation\ActiveTimeBias&quot;)
If (UCase(TypeName(lngBiasKey)) = &quot;LONG&quot;) Then
    lngBias = lngBiasKey
ElseIf (UCase(TypeName(lngBiasKey)) = &quot;VARIANT()&quot;) Then
    lngBias = 0
    For k = 0 To UBound(lngBiasKey)
        lngBias = lngBias + (lngBiasKey(k) * 256^k)
    Next
End If

&#039; Determine configuration context and DNS domain from RootDSE object.
Set objRootDSE = GetObject(&quot;LDAP://RootDSE&quot;)
strConfig = objRootDSE.Get(&quot;configurationNamingContext&quot;)
strDNSDomain = objRootDSE.Get(&quot;defaultNamingContext&quot;)

&#039; Use ADO to search Active Directory for ObjectClass nTDSDSA.
&#039; This will identify all Domain Controllers.
Set adoCommand = CreateObject(&quot;ADODB.Command&quot;)
Set adoConnection = CreateObject(&quot;ADODB.Connection&quot;)
adoConnection.Provider = &quot;ADsDSOObject&quot;
adoConnection.Open &quot;Active Directory Provider&quot;
adoCommand.ActiveConnection = adoConnection

strBase = &quot;&quot;
strFilter = &quot;(objectClass=nTDSDSA)&quot;
strAttributes = &quot;AdsPath&quot;
strQuery = strBase &amp; &quot;;&quot; &amp; strFilter &amp; &quot;;&quot; &amp; strAttributes &amp; &quot;;subtree&quot;

adoCommand.CommandText = strQuery
adoCommand.Properties(&quot;Page Size&quot;) = 1000
adoCommand.Properties(&quot;Timeout&quot;) = 60
adoCommand.Properties(&quot;Cache Results&quot;) = False

Set adoRecordset = adoCommand.Execute

&#039; Enumerate parent objects of class nTDSDSA. Save Domain Controller
&#039; AdsPaths in dynamic array arrstrDCs.
k = 0
Do Until adoRecordset.EOF
    Set objDC = _
        GetObject(GetObject(adoRecordset.Fields(&quot;AdsPath&quot;).Value).Parent)
    ReDim Preserve arrstrDCs(k)
    arrstrDCs(k) = objDC.DNSHostName
    k = k + 1
    adoRecordset.MoveNext
Loop
adoRecordset.Close

&#039; Retrieve lastLogon attribute for each user on each Domain Controller.
For k = 0 To Ubound(arrstrDCs)
    strBase = &quot;&quot;
    strFilter = &quot;(&amp;(objectCategory=person)(objectClass=user))&quot;
    strAttributes = &quot;distinguishedName, lastLogon&quot;
    strQuery = strBase &amp; &quot;;&quot; &amp; strFilter &amp; &quot;;&quot; &amp; strAttributes _
        &amp; &quot;;subtree&quot; 
    adoCommand.CommandText = strQuery
    On Error Resume Next
    Set adoRecordset = adoCommand.Execute
    If (Err.Number  0) Then
        On Error GoTo 0
		&#039;Bellow is commented out because it is not required
        &#039;Wscript.Echo &quot;Domain Controller not available: &quot; &amp; arrstrDCs(k)
    Else
        On Error GoTo 0
        Do Until adoRecordset.EOF
            strDN = adoRecordset.Fields(&quot;distinguishedName&quot;).Value
            On Error Resume Next
            Set objDate = adoRecordset.Fields(&quot;lastLogon&quot;).Value
            If (Err.Number  0) Then
                On Error GoTo 0
                dtmDate = #1/1/1601#
            Else
                On Error GoTo 0
                lngHigh = objDate.HighPart
                lngLow = objDate.LowPart
                If (lngLow  objList(strDN)) Then
                    objList.Item(strDN) = dtmDate
                End If
            Else
                objList.Add strDN, dtmDate
            End If
            adoRecordset.MoveNext
        Loop
        adoRecordset.Close
    End If
Next

&#039; Output latest lastLogon date for each user.
For Each strUser In objList.Keys
    If (objList.Item(strUser) = #1/1/1601#) Then
        objFile.WriteLine strUser &amp; &quot;,Never&quot;
    Else
        objFile.WriteLine strUser &amp; &quot;,&quot; &amp; objList.Item(strUser)
    End If
Next

&#039; Clean up.
adoConnection.Close



Thanks,
-Edmar G.</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>I have a last logon script that gives me usernames, dates/times, OUs, DCs, etc&#8230;from an active directory. I am trying to also get the computer name of each of these logs, but haven&#8217;t found a way to do it yet. How can I do it based on the codes previously mentioned?<br />
Here is the script I&#8217;m working with:</p>
<p>&#8216; LastLogon.vbs<br />
&#8216; VBScript program to determine when each user in the domain last logged<br />
&#8216; on.<br />
&#8216;<br />
&#8216; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
&#8216; Copyright (c) 2002-2010 Richard L. Mueller<br />
&#8216; Hilltop Lab web site &#8211; <a href="http://www.rlmueller.net" rel="nofollow" onclick="javascript:urchinTracker ('/outbound/comment/www.rlmueller.net');">http://www.rlmueller.net</a><br />
&#8216; Version 1.0 &#8211; December 7, 2002<br />
&#8216; Version 1.1 &#8211; January 17, 2003 &#8211; Account for null value for lastLogon.<br />
&#8216; Version 1.2 &#8211; January 23, 2003 &#8211; Account for DC not available.<br />
&#8216; Version 1.3 &#8211; February 3, 2003 &#8211; Retrieve users but not contacts.<br />
&#8216; Version 1.4 &#8211; February 19, 2003 &#8211; Standardize Hungarian notation.<br />
&#8216; Version 1.5 &#8211; March 11, 2003 &#8211; Remove SearchScope property.<br />
&#8216; Version 1.6 &#8211; May 9, 2003 &#8211; Account for error in IADsLargeInteger<br />
&#8216;                             property methods HighPart and LowPart.<br />
&#8216; Version 1.7 &#8211; January 25, 2004 &#8211; Modify error trapping.<br />
&#8216; Version 1.8 &#8211; July 6, 2007 &#8211; Modify how IADsLargeInteger interface<br />
&#8216;                              is invoked.<br />
&#8216; Version 1.9 &#8211; December 29, 2009 &#8211; Output &#8220;Never&#8221; if no date.<br />
&#8216; Version 1.10 &#8211; November 6, 2010 &#8211; No need to set objects to Nothing.<br />
&#8216;<br />
&#8216; Because the lastLogon attribute is not replicated, every Domain<br />
&#8216; Controller in the domain must be queried to find the latest lastLogon<br />
&#8216; date for each user. The lastest date found is kept in a dictionary<br />
&#8216; object. The program first uses ADO to search the domain for all Domain<br />
&#8216; Controllers. The AdsPath of each Domain Controller is saved in an<br />
&#8216; array. Then, for each Domain Controller, ADO is used to search the<br />
&#8216; copy of Active Directory on that Domain Controller for all user<br />
&#8216; objects and return the lastLogon attribute. The lastLogon attribute is<br />
&#8216; a 64-bit number representing the number of 100 nanosecond intervals<br />
&#8216; since 12:00 am January 1, 1601. This value is converted to a date. The<br />
&#8216; last logon date is in UTC (Coordinated Univeral Time). It must be<br />
&#8216; adjusted by the Time Zone bias in the machine registry to convert to<br />
&#8216; local time.<br />
&#8216;<br />
&#8216; You have a royalty-free right to use, modify, reproduce, and<br />
&#8216; distribute this script file in any way you find useful, provided that<br />
&#8216; you agree that the copyright owner above has no warranty, obligations,<br />
&#8216; or liability for such use.</p>
<p>Option Explicit</p>
<p>Dim objRootDSE, strConfig, adoConnection, adoCommand, strQuery<br />
Dim adoRecordset, objDC<br />
Dim strDNSDomain, objShell, lngBiasKey, lngBias, k, arrstrDCs()<br />
Dim strDN, dtmDate, objDate, objList, strUser<br />
Dim strBase, strFilter, strAttributes, lngHigh, lngLow</p>
<p>&#8216;added variables to output to a file &#8211; by Edmar Goncalves 09/16/2011<br />
Dim objFSO, objFile, objCompN, strComputerName</p>
<p>Set objFSO = CreateObject(&#8221;Scripting.FileSystemObject&#8221;)<br />
Set objFile = objFSO.CreateTextFile(&#8221;output2.txt&#8221;, True)<br />
&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>&#8216; Use a dictionary object to track latest lastLogon for each user.<br />
Set objList = CreateObject(&#8221;Scripting.Dictionary&#8221;)<br />
objList.CompareMode = vbTextCompare</p>
<p>&#8216; Obtain local Time Zone bias from machine registry.<br />
&#8216; This bias changes with Daylight Savings Time.<br />
Set objShell = CreateObject(&#8221;Wscript.Shell&#8221;)<br />
lngBiasKey = objShell.RegRead(&#8221;HKLM\System\CurrentControlSet\Control\&#8221; _<br />
    &amp; &#8220;TimeZoneInformation\ActiveTimeBias&#8221;)<br />
If (UCase(TypeName(lngBiasKey)) = &#8220;LONG&#8221;) Then<br />
    lngBias = lngBiasKey<br />
ElseIf (UCase(TypeName(lngBiasKey)) = &#8220;VARIANT()&#8221;) Then<br />
    lngBias = 0<br />
    For k = 0 To UBound(lngBiasKey)<br />
        lngBias = lngBias + (lngBiasKey(k) * 256^k)<br />
    Next<br />
End If</p>
<p>&#8216; Determine configuration context and DNS domain from RootDSE object.<br />
Set objRootDSE = GetObject(&#8221;LDAP://RootDSE&#8221;)<br />
strConfig = objRootDSE.Get(&#8221;configurationNamingContext&#8221;)<br />
strDNSDomain = objRootDSE.Get(&#8221;defaultNamingContext&#8221;)</p>
<p>&#8216; Use ADO to search Active Directory for ObjectClass nTDSDSA.<br />
&#8216; This will identify all Domain Controllers.<br />
Set adoCommand = CreateObject(&#8221;ADODB.Command&#8221;)<br />
Set adoConnection = CreateObject(&#8221;ADODB.Connection&#8221;)<br />
adoConnection.Provider = &#8220;ADsDSOObject&#8221;<br />
adoConnection.Open &#8220;Active Directory Provider&#8221;<br />
adoCommand.ActiveConnection = adoConnection</p>
<p>strBase = &#8220;&#8221;<br />
strFilter = &#8220;(objectClass=nTDSDSA)&#8221;<br />
strAttributes = &#8220;AdsPath&#8221;<br />
strQuery = strBase &amp; &#8220;;&#8221; &amp; strFilter &amp; &#8220;;&#8221; &amp; strAttributes &amp; &#8220;;subtree&#8221;</p>
<p>adoCommand.CommandText = strQuery<br />
adoCommand.Properties(&#8221;Page Size&#8221;) = 1000<br />
adoCommand.Properties(&#8221;Timeout&#8221;) = 60<br />
adoCommand.Properties(&#8221;Cache Results&#8221;) = False</p>
<p>Set adoRecordset = adoCommand.Execute</p>
<p>&#8216; Enumerate parent objects of class nTDSDSA. Save Domain Controller<br />
&#8216; AdsPaths in dynamic array arrstrDCs.<br />
k = 0<br />
Do Until adoRecordset.EOF<br />
    Set objDC = _<br />
        GetObject(GetObject(adoRecordset.Fields(&#8221;AdsPath&#8221;).Value).Parent)<br />
    ReDim Preserve arrstrDCs(k)<br />
    arrstrDCs(k) = objDC.DNSHostName<br />
    k = k + 1<br />
    adoRecordset.MoveNext<br />
Loop<br />
adoRecordset.Close</p>
<p>&#8216; Retrieve lastLogon attribute for each user on each Domain Controller.<br />
For k = 0 To Ubound(arrstrDCs)<br />
    strBase = &#8220;&#8221;<br />
    strFilter = &#8220;(&amp;(objectCategory=person)(objectClass=user))&#8221;<br />
    strAttributes = &#8220;distinguishedName, lastLogon&#8221;<br />
    strQuery = strBase &amp; &#8220;;&#8221; &amp; strFilter &amp; &#8220;;&#8221; &amp; strAttributes _<br />
        &amp; &#8220;;subtree&#8221;<br />
    adoCommand.CommandText = strQuery<br />
    On Error Resume Next<br />
    Set adoRecordset = adoCommand.Execute<br />
    If (Err.Number  0) Then<br />
        On Error GoTo 0<br />
		&#8216;Bellow is commented out because it is not required<br />
        &#8216;Wscript.Echo &#8220;Domain Controller not available: &#8221; &amp; arrstrDCs(k)<br />
    Else<br />
        On Error GoTo 0<br />
        Do Until adoRecordset.EOF<br />
            strDN = adoRecordset.Fields(&#8221;distinguishedName&#8221;).Value<br />
            On Error Resume Next<br />
            Set objDate = adoRecordset.Fields(&#8221;lastLogon&#8221;).Value<br />
            If (Err.Number  0) Then<br />
                On Error GoTo 0<br />
                dtmDate = #1/1/1601#<br />
            Else<br />
                On Error GoTo 0<br />
                lngHigh = objDate.HighPart<br />
                lngLow = objDate.LowPart<br />
                If (lngLow  objList(strDN)) Then<br />
                    objList.Item(strDN) = dtmDate<br />
                End If<br />
            Else<br />
                objList.Add strDN, dtmDate<br />
            End If<br />
            adoRecordset.MoveNext<br />
        Loop<br />
        adoRecordset.Close<br />
    End If<br />
Next</p>
<p>&#8216; Output latest lastLogon date for each user.<br />
For Each strUser In objList.Keys<br />
    If (objList.Item(strUser) = #1/1/1601#) Then<br />
        objFile.WriteLine strUser &amp; &#8220;,Never&#8221;<br />
    Else<br />
        objFile.WriteLine strUser &amp; &#8220;,&#8221; &amp; objList.Item(strUser)<br />
    End If<br />
Next</p>
<p>&#8216; Clean up.<br />
adoConnection.Close</p>
<p>Thanks,<br />
-Edmar G.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: harry</title>
		<link>http://www.searchmarked.com/windows/how-to-get-a-computers-active-directory-ou-using-vbscript.php/comment-page-1#comment-1429</link>
		<dc:creator>harry</dc:creator>
		<pubDate>Mon, 29 Aug 2011 16:00:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.searchmarked.com/windows/how-to-get-a-computers-active-directory-ou-using-vbscript.php#comment-1429</guid>
		<description>can anyone gimme the C# version of this script?

It will be helpfull for me if anyone can gimme the query to see whole active directory structure of any server in network.</description>
		<content:encoded><![CDATA[<p>can anyone gimme the C# version of this script?</p>
<p>It will be helpfull for me if anyone can gimme the query to see whole active directory structure of any server in network.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicko</title>
		<link>http://www.searchmarked.com/windows/how-to-get-a-computers-active-directory-ou-using-vbscript.php/comment-page-1#comment-1368</link>
		<dc:creator>Nicko</dc:creator>
		<pubDate>Thu, 17 Mar 2011 08:33:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.searchmarked.com/windows/how-to-get-a-computers-active-directory-ou-using-vbscript.php#comment-1368</guid>
		<description>If you just want the OU, not the whole Distinguished Name, then you just need  to add a few more lines to Joel&#039;s code to weed it out:

Set objSysInfo = CreateObject(&quot;ADSystemInfo&quot;)
DN = objSysInfo.ComputerName

Set ADsPath = GetObject(&quot;LDAP://&quot; &amp; DN)
arrayOUs = Split(ADsPath.Parent, &quot;,&quot;)
arrayMainOU = Split(arrayOUs(0), &quot;=&quot;)
OU=arrayMainOU(1)

Wscript.Echo &quot;This PC is in the OU:  &quot; &amp; OU</description>
		<content:encoded><![CDATA[<p>If you just want the OU, not the whole Distinguished Name, then you just need  to add a few more lines to Joel&#8217;s code to weed it out:</p>
<p>Set objSysInfo = CreateObject(&#8221;ADSystemInfo&#8221;)<br />
DN = objSysInfo.ComputerName</p>
<p>Set ADsPath = GetObject(&#8221;LDAP://&#8221; &amp; DN)<br />
arrayOUs = Split(ADsPath.Parent, &#8220;,&#8221;)<br />
arrayMainOU = Split(arrayOUs(0), &#8220;=&#8221;)<br />
OU=arrayMainOU(1)</p>
<p>Wscript.Echo &#8220;This PC is in the OU:  &#8221; &amp; OU</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://www.searchmarked.com/windows/how-to-get-a-computers-active-directory-ou-using-vbscript.php/comment-page-1#comment-1260</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Mon, 14 Jun 2010 14:23:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.searchmarked.com/windows/how-to-get-a-computers-active-directory-ou-using-vbscript.php#comment-1260</guid>
		<description>This can also be done through ADSystemInfo object in VBS.

Set objSysInfo = CreateObject(&quot;ADSystemInfo&quot;)
DN = objSysInfo.ComputerName

WScript.Echo DN

same work, less code :)</description>
		<content:encoded><![CDATA[<p>This can also be done through ADSystemInfo object in VBS.</p>
<p>Set objSysInfo = CreateObject(&#8221;ADSystemInfo&#8221;)<br />
DN = objSysInfo.ComputerName</p>
<p>WScript.Echo DN</p>
<p>same work, less code <img src='http://www.searchmarked.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hstagner</title>
		<link>http://www.searchmarked.com/windows/how-to-get-a-computers-active-directory-ou-using-vbscript.php/comment-page-1#comment-509</link>
		<dc:creator>hstagner</dc:creator>
		<pubDate>Wed, 24 Jun 2009 20:39:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.searchmarked.com/windows/how-to-get-a-computers-active-directory-ou-using-vbscript.php#comment-509</guid>
		<description>Hello Martin,

I am glad that I could help! Thank you for reading Searchmarked.com!</description>
		<content:encoded><![CDATA[<p>Hello Martin,</p>
<p>I am glad that I could help! Thank you for reading Searchmarked.com!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Pullen</title>
		<link>http://www.searchmarked.com/windows/how-to-get-a-computers-active-directory-ou-using-vbscript.php/comment-page-1#comment-502</link>
		<dc:creator>Martin Pullen</dc:creator>
		<pubDate>Wed, 24 Jun 2009 09:35:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.searchmarked.com/windows/how-to-get-a-computers-active-directory-ou-using-vbscript.php#comment-502</guid>
		<description>Thank you for this example, this solution works perfect.</description>
		<content:encoded><![CDATA[<p>Thank you for this example, this solution works perfect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Umesh</title>
		<link>http://www.searchmarked.com/windows/how-to-get-a-computers-active-directory-ou-using-vbscript.php/comment-page-1#comment-446</link>
		<dc:creator>Umesh</dc:creator>
		<pubDate>Wed, 21 Jan 2009 06:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.searchmarked.com/windows/how-to-get-a-computers-active-directory-ou-using-vbscript.php#comment-446</guid>
		<description>Hi,
I am looking for a script which can export computer names from an AD OU to a text file.

Any help will be appreciated.

Regards,
Umesh</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am looking for a script which can export computer names from an AD OU to a text file.</p>
<p>Any help will be appreciated.</p>
<p>Regards,<br />
Umesh</p>
]]></content:encoded>
	</item>
</channel>
</rss>

