Does anyone know of a way (other than psexec) to add a user to the local administrators group of a remote machine?
I'm having trouble figuring out the syntax for wmic.
I need to find some method for disabling a scheduled task on a remote machine and waiting until that task has stopped executing if it happens to be running at the moment. I'd like to do this through WMIC if possible.
Whenever I reboot Windows 7, I find that my domain user, under which I login and work, is not any more part of local Administrators group (or any groups included into Administrators group or domain administrators group) which is the result of domain policies applied during reboot.
So, I have to add my domain user to local machine Administrators group upon each reboot.
I was wondering if there is an easy and lightweight method to viewing what programs are installed on a remote machine? I am tempted to use Spiceworks but I would like something more lightweight like a script. I have been playing around with WMIC a little and can get a list of programs for my computer but I don't know if I can do the same with it for a remote computer. Any ideas?
Running 11.10 patched up to date. When one particular user is logged on to the "target" computer and I try and connect remotely to the desktop from another computer, I get the message that the server has closed the connection.