私は VB6 を使用しており、ADSI を使用して Windows サービスの状態 (実行中かどうか) を照会しています。この MS 記事を参照してください: http://msdn.microsoft.com/en-us/library/aa746322(v=vs.85).aspx .
USERS グループのメンバーであるユーザーの場合、例外がスローされます。GetObject メソッドにあると思います:
Set comp = GetObject("WinNT://.,Computer")
The exception is: 80070005 "General access denied error"
Running the same code as a member of POWER USERS, however, works just fine.
Elevating all users to Power users isn't an option. What exact rights do I need to have granted in order for this function to run successfully?
I've tried running procmon.exe, and wasn't able to determine from the output as to what or where a denial is occurring.
Thanks!
Edit: This is running on XP sp2.