Discussion:
How to restrict WMI query to local computer?
(too old to reply)
aj
2009-04-28 07:05:01 UTC
Permalink
Hi,

I write a small program to do local account auditing by WMI event
notification. The prog runs as a Win32 service with local system privilege in
a workstation connected to a domain controller. The workstation sends many
SMB/RPC packets to the DC due to this WMI async query and cause very high cpu
usage of DC. I just want to audit local users, not domain users. How to
prevent this? Thanks.

The WQL statement is "SELECT * FROM __InstanceOperationEvent WITHIN 10 WHERE
TargetInstance ISA 'Win32_UserAccount'".
boris
2009-05-01 05:02:19 UTC
Permalink
Did you try this:

"SELECT * FROM __InstanceOperationEvent WITHIN 10 WHERE
TargetInstance ISA 'Win32_UserAccount' and TargetInstance.LocalAccount =
true"

Boris
Post by aj
Hi,
I write a small program to do local account auditing by WMI event
notification. The prog runs as a Win32 service with local system privilege in
a workstation connected to a domain controller. The workstation sends many
SMB/RPC packets to the DC due to this WMI async query and cause very high cpu
usage of DC. I just want to audit local users, not domain users. How to
prevent this? Thanks.
The WQL statement is "SELECT * FROM __InstanceOperationEvent WITHIN 10 WHERE
TargetInstance ISA 'Win32_UserAccount'".
aj
2009-05-04 08:26:01 UTC
Permalink
I will try it. Thank you.
Post by aj
"SELECT * FROM __InstanceOperationEvent WITHIN 10 WHERE
TargetInstance ISA 'Win32_UserAccount' and TargetInstance.LocalAccount =
true"
Boris
Loading...