14 Agustus 2008 16:54Hi. I apologize if I am posting this in the wrong area, but I have been puzzling over this issue and don't quite know where to go from here. If this is the wrong arena, please direct me to the correct one.
I am using Scriptomatic to query the WMI Class - Win32_NetworkLoginProfile. I am able to query my local computer and other computers on the network. Reviewing the results from the other computers on the network, I am able to garner all sorts of information about all the accounts that have logged onto each computer. However, when I query my local computer, I only get the NT AUTHORITY\SYSTEM, the NT AUTHORITY\LOCAL SERVICE, the NT AUTHORITY\NETWORK SERVICE and the current logged on user information. I do not get the complete information I would if querying it remotely.
I have gone to another computer and verified I can pull all users' info from my original computer. So I know the info is there ... I am just having an issue pulling it from the local computer.
I would like to write a VBS that will run in the local system account and pull info about all users who have logged in and write to a local log file and a network log file. I have the script written, but just can't get all the info I know is there.
Here's the script:
14 Agustus 2008 17:09
I found the following KB article which led me to add the Restore permission (moniker) to my code in line 18 above.
Hope this helps anyone else.
Here's the NEW line 18:
- Ditandai sebagai Jawaban oleh SachinW 08 Oktober 2008 11:57
14 April 2013 4:09Pemilik
For those landing here for other WMI questions... Places to ask...
- Disarankan sebagai Jawaban oleh Ed Price - MSFTMicrosoft Employee, Owner 14 April 2013 4:10