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!

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"
 
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 = "4.0" then
Set objRootDSE = GetObject("LDAP://RootDSE")
strServer = objRootDSE.Get("ServerName")
SITE = Mid(strServer, InStr(strServer, "CN=Servers,") + 14)
SITE = Mid(SITE, 1, InStr(SITE, "CN=Sites,") - 2)
end if

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

Part and Inventory Search

Sponsor

Back
Top