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