I’m trying to have a Console XOJO app as a service for windows to do some management to some pcs.
Now ,while I managed to start the app and register it as a service no matter what I put in the shell.Execute does not work , I keep on getting
woami ‘???’ is not recognised as an internal or external command
Is there a specific way to call those on windows ? so far on Mac you call shell , put the command and works straight , apparently Windows is different.
I need to be able to
- Get Logged in Users
- Restart / ShutDown PC
- Logout / Lock User
Ideally would be to be able to use net command as well.
The idea is to have an IT management service that could do some automations on the desktops in the office from a central location via tcpip.
From what I see the service runs as SYSTEM so I guess that is one of the issues but I have pcs that could have multiple users so I cannot create a user service .
There are any libraries that could help on this case ? no plugins please .