Stop Service named Service1
On computer named ComputerA
In domain named Domain1
Dim ServiceObj As
IADsServiceOperations
Dim AdsObj As IADs
'Path “NTDSloc://Domain1/ComputerA/Service1" identifies service
“Service1”
'"NTDSloc:" is the namespace for local resources
'Descriptor "server=DMSserver01" specifies that DMS server is on
computer "DMSserver01"
Set ServiceObj =
GetObject("NTDSloc://Domain1/ComputerA/Service1/server=DMSserver01")
Set AdsObj = ServiceObj
' IADs interface provides the following four properties
'Note: You will have to put these properties for LRDS in WIN2K
AdsObj.Put
"DA_DRole_Server_Name", "DCdomain1"
'specify name of the DC for WIN2K domain
“Domain1”
AdsObj.Put "DA_User_Name", "Domain1\Charlie"
'Name of the User connected to the AD tree
AdsObj.Put "DA_Password", "pwd"
'Password of the User
AdsObj.Put "DA_Use_Role_Type", 2
'Specifies the AD roles
‘ Next line will give error ERROR: ”Access Denied” as Charlie do
not have permissions to stop a service.
ServiceObj.Stop
'Release the Object
Set ServiceObj = Nothing
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.