Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retriving the Site Name for the Local Computer

Status
Not open for further replies.

avaz

IS-IT--Management
Jan 22, 2002
11
0
0
In url=/technet/scriptcenter/network/scrnet18.asp
microsoft says that the script will run in a NT4 with
Active Directory Clients Extensions installed.
I already installed the client in several NT4 with sp6a
and I.E. is greater then 4.01 and I still have the same
error after the instalation:
"ActiveX component can't create object 'ADSystemInfo'
Code: 800A01AD"
 
Hello avaz,

The DSClient download doc said:
<quote>
These client extensions were developed for customers who want to deploy Windows 2000 Server in environments running Windows 95, Windows 98 or Windows NT 4.0 workstations and member servers.
</quote>

regards - tsuji
 
Hello tsuji,

In fact I have some clients with NT4. The rest of them are windows2000 and XP. I have Active Directory also.
I just want to run the script in the NT4 like it says in the url above.
thank you for your answer.
 
After this message I realized that some scripts didn't run in NT4 even with the latest AD client ext. installed. So, I used another script based on the operating system:

If WindowsID = &quot;4.0&quot; then
Set objRootDSE = GetObject(&quot;LDAP://RootDSE&quot;)
strServer = objRootDSE.Get(&quot;ServerName&quot;)
SITE = Mid(strServer, InStr(strServer, &quot;CN=Servers,&quot;) + 14)
SITE = Mid(SITE, 1, InStr(SITE, &quot;CN=Sites,&quot;) - 2)
end if

If the OS is &quot;4.0&quot; I use this script. If not I use ADSI.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top