This has to be obtained from a remote machine. The following query works not for SIDs, but for group and account names.
I need to make a query like this: SELECT PNPDeviceID FROM Win32_NetworkAdapter WHERE AdapterTypeId = 0
I\'m using a System.Management.ManagementEventWatcher to get the process ID and executable path for a started process:
WQL (basically SQL for WMI) does not support a TOP or LIMIT keyword. Sql Server used TOP and many other 开发者_开发问答RDBMSs supprt LIMIT etc.