Where does netplwiz store/read it's username list? RRS feed

  • Question

  • Hi,

    I would like to know where netplwiz gets it list of usernames from to implement it into C# code for retrieving usernames. This would be a great help and a better method than getting it from ProfileList in the registry if the user hasn't created it's profile yet. 

    Many Thanks,


    • Edited by Aramus101 Sunday, June 23, 2019 10:42 PM
    Sunday, June 23, 2019 10:39 PM


  • Hi,

    Are you developing a UWP app? If it is, in UWP app, you could use User.FindAllAsync Method from the User Class to get current logged in the device.

    But I'm sorry to say that it is not possible to get all the usernames using UWP apis. You might take a look at win32 APIs. As a note, not all APIs are allowed to use in UWP apps. To solve it, you could use it in a desktop app and then convert the app to UWP apps using desktop bridge.

    Best regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Monday, June 24, 2019 4:18 AM