![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List Indexing Service Scopes
|
||
' Description: Returns information about all the Indexing Service scopes found on the local computer.
On Error Resume Next Set objAdminIS = CreateObject("Microsoft.ISAdm") objCatalog = objAdminIS.FindFirstCatalog() If (objCatalog) Then Set objCatAdm = objAdminIS.GetCatalog() Set objScopeAdm = objCatAdm.GetScope() Wscript.Echo "Alias: " & objScopeAdm.Alias Wscript.Echo "Exclude scope: " & objScopeAdm.ExcludeScope Wscript.Echo "Logon: " & objScopeAdm.Logon Wscript.Echo "Path: " & objScopeAdm.Path Wscript.Echo "Virtual scope: " & objScopeAdm.VirtualScope End If Do objCatalog = objAdminIS.FindNextCatalog() If (objCatalog) Then Set objCatAdm = objAdminIS.GetCatalog() Set objScopeAdm = objCatAdm.GetScope() Wscript.Echo "Alias: " & objScopeAdm.Alias Wscript.Echo "Exclude scope: " & objScopeAdm.ExcludeScope Wscript.Echo "Logon: " & objScopeAdm.Logon Wscript.Echo "Path: " & objScopeAdm.Path Wscript.Echo "Virtual scope: " & objScopeAdm.VirtualScope Else Exit Do End If Loop | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |