Sam Wells
2006-01-10 22:12:00 UTC
There appears to be a problem using the adminindexserver object to create a
catalogue remotely.
steps to reproduce problem
1. You need a windows 2000 server with 2 physical drives e.g. C: & E: (subst
drives are no good)
2. Run the following vb script on a workstation with 1 physical drive (C:)
This should create a catalog called test in the servers c:\test folder
dim adm
dim cat
set adm = createobject("Microsoft.ISAdm")
adm.MachineName = "172.30.0.10" 'ip address of server running indexing
service
adm.stop 'stop the service so a new catalog can be created
set cat = adm.addcatalog("test","c:\test") ' create a new remote catalogue
on the server's C: drive
msgbox cat.catalogname 'confirmation message displays the catalog name as
created above
3. Now try the following script that should create a catalog called test2 on
the servers e:\test2 folder but it FAILS
dim adm
dim cat
set adm = createobject("Microsoft.ISAdm")
adm.MachineName = "172.30.0.10" 'ip address of server running indexing
service
adm.stop 'stop the service so a new catalog can be created
set cat = adm.addcatalog("test2","e:\test") ' AHHHH it fails here
msgbox cat.catalogname
The problem appears to be that the addcatalog is checking the local
machine(workstation) for a drive e: and it obviously fails.
Now add a local drive e: to the workstation
run the script and it works fine,
why?
catalogue remotely.
steps to reproduce problem
1. You need a windows 2000 server with 2 physical drives e.g. C: & E: (subst
drives are no good)
2. Run the following vb script on a workstation with 1 physical drive (C:)
This should create a catalog called test in the servers c:\test folder
dim adm
dim cat
set adm = createobject("Microsoft.ISAdm")
adm.MachineName = "172.30.0.10" 'ip address of server running indexing
service
adm.stop 'stop the service so a new catalog can be created
set cat = adm.addcatalog("test","c:\test") ' create a new remote catalogue
on the server's C: drive
msgbox cat.catalogname 'confirmation message displays the catalog name as
created above
3. Now try the following script that should create a catalog called test2 on
the servers e:\test2 folder but it FAILS
dim adm
dim cat
set adm = createobject("Microsoft.ISAdm")
adm.MachineName = "172.30.0.10" 'ip address of server running indexing
service
adm.stop 'stop the service so a new catalog can be created
set cat = adm.addcatalog("test2","e:\test") ' AHHHH it fails here
msgbox cat.catalogname
The problem appears to be that the addcatalog is checking the local
machine(workstation) for a drive e: and it obviously fails.
Now add a local drive e: to the workstation
run the script and it works fine,
why?