1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-28 22:23:17 +00:00

1. Added getDomain() to user-sessions for windows

2. Fixed service.restart() error condition, to reject the promise
3. Fixed ServiceMain start/stop/restart/state for Windows
This commit is contained in:
Bryan Roe
2021-04-20 15:02:54 -07:00
parent 05b492caed
commit 9fa19bf1be
4 changed files with 35 additions and 110 deletions

View File

@@ -271,6 +271,10 @@ function UserSessions()
{
return (this.getSessionAttribute(uid, this.InfoClass.WTSUserName));
}
this.getDomain = function getDomain(uid)
{
return (this.getSessionAttribute(uid, this.InfoClass.WTSDomainName));
}
this.Current = function Current(cb)
{
var retVal = {};