/* Adds a scope named Script Scope (with the path C:\Scripts) to an Indexing Service catalog named Script Catalog on the local computer. */
objadminis = createcomobject("Microsoft.ISAdm")
objcatalog = objadminis~getcatalogbyname("Script Catalog")
objscope = objcatalog~addscope("c:\scripts\Indexing Server", "False")
objscope~alias = "Script scope"
objscope~path = "c:\scripts"