Thanks Smokin
I did get the result I was looking for through an alternate method as below.
Public Function GetOUName(strComputerName As String) As String
Dim adoConn As ADODB.Connection
Dim adoRs As ADODB.Recordset
Dim strSql As String
Dim iOUPos As Integer
Dim strOUName As String
Set adoConn = New ADODB.Connection
adoConn.Provider = "ADsDSOObject"
adoConn.Properties("User ID") = "Usr"
adoConn.Properties("Password") = "Pwd"
adoConn.Properties("Encrypt Password") = True
adoConn.Open "Active Directory Provider", "Usr", "Pwd"
Set adoRs = New ADODB.Recordset
'The following will return a string such as
'CN=MACHINE137,OU=Main Building,OU=Shop,DC=DOMAIN,DC=com
strSql = "SELECT distinguishedName FROM " & _
"'LDAP://DOMAIN' where objectCategory='computer' AND CN='" & _
strComputerName & "'"
On Error GoTo ErrorRoutine
adoRs.Open strSql, adoConn, 1, 1
iOUPos = InStr(1, adoRs!distinguishedName, "OU=")
strOUName = Mid$(adoRs!distinguishedName, iOUPos + 3)
GetOUName = Mid$(strOUName, 1, InStr(1, strOUName, ",") - 1)
adoRs.Close
Set adoRs = Nothing
adoConn.Close
Set adoConn = Nothing
Exit Function
ErrorRoutine:
GetOUName = strComputerName
End Function