Managing Services Using ADSI and Windows Script Host
This article was previously published under Q234001 SUMMARY
This article describes how to manage services using Active Directory Services Interface (ADSI) and Windows Script Host.
MORE INFORMATION
You can use ADSI and Windows Script Host to write scripts that allow you to manage local and remote services. This article describes the different methods and properties ADSI provides for services, as well as script examples.
The ADSI Service Object supports two COM interfaces, IADsService and IADsServiceOperations. The properties of the IADsService interface are list in the following table.
The following Visual Basic script starts the Computer Browser service on MYCOMPUTER: The following Visual Basic script sets the user account and password for the Directory Replicator service on MYCOMPUTER: For information about ADSI, please visit the following Microsoft Web site: http://www.microsoft.com/technet/prodtechnol/windows2000serv/technologies/activedirectory/default.mspx (http://www.microsoft.com/technet/prodtechnol/windows2000serv/technologies/activedirectory/default.mspx)
For information about Windows Script Host, VBScript, and JScript, please visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/ms950396.aspx (http://msdn2.microsoft.com/en-us/library/ms950396.aspx) APPLIES TO
| Article Translations
|

Back to the top
