There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Add support for impersonation
petebran enquired about allowing credentials to be specified when querying the status of remote windows services on other domains.
This is a great feature idea and I believe impersonation should be supported across all operations.
I propose implementing impersonation using a keyword and making it part of the script language. Initially, I suggested using the keyword using-credentials to delimit the credentials from the request component, but on further thought, since specifying credentials
could be a frequent activity, it makes sense to use the shorter keyword, as
This would be used like this:
windows-service-status "MyService", "remotemachineA" as "domainA\userA", "passwordA" must-equal "Running"
windows-service-status "MyService", "remotemachineB" as "domainB\userB", "passwordB" must-equal "Running"
windows-service-status "MyLocalService" must-equal "Running"
The inclusion of credentials would have to be optional so we don't inconvenience ServiceMon users that only monitor resources on the same domain; also for backwards compatibility.