Quantcast
Channel: Windows 7 Miscellaneous forum
Viewing all articles
Browse latest Browse all 11372

Remote log off using WMI and non Administrator

$
0
0

Hi,

I am trying to get WMI to log off a user using VBS.

I have a working script but I am trying to find the minimum security requirements for this so that the user doesn't have to be in the Admin group of the machine.

I have added the user full rights to WMI root (and subs) and also full rights to DCOM COM security (access limits etc).

I have also tried the local policy for "force remote shutdown", but this didn't work either.

The script I have connects to WMI on the remote computer, checks who is logged in, and asks if you want to log the user off. I have the query working OK in user context, but on using the WMI shutdown command (0) it does not log off the user. I have also tried (4) (force log off).

The script works fine when using a user who is in local admin group, but I really want to find the settings so I can create a log off group for this purpose.

Many thanks

James


Viewing all articles
Browse latest Browse all 11372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>