I need to develop a report to search all windows machines for the local user profile "CDW". This profile was logged into before the PC was joined to our domain and hasnt been logged into since. It is a local account.  Anyone developed a report to search for a certain user profile on the k1000?? C:\Users\CDW

Answer Summary:
1 Comment   [ + ] Show Comment


  • Hi,

    The information has to be found first so what you could do is if you are looking for a profile folder, use Custom Inventory rules to look for the directory path and if a machine has it, it will report back and then you can create a report if needed based off of that information.

Please log in to comment


Another approach would be very similar to what nshah suggests in comments but using a WMI return to get who has logged on. http://www.itninja.com/question/wmic-custom-inventory-number-of-logons-question explains the approach.

Modifying that concept a bit with a 'where' statement this would return CDW in the results if it had logged on:
wmic netlogin where "Name like '%CDW%'" get Name

Answered 07/17/2014 by: cblake
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity