Accessing user accounts for system information without searching for all SID of the AD RRS feed

  • Question

  • Hi,

    We have a program which during uninstall needs to determine all the user accounts so that Appx can be removed. 

    We are using the below command  

    Get-WmiObject -Class Win32_UserAccount 

    and then filter the information from the list to get the SID. The problem is it is fetching all of SID in the AD server which is perceived as a security threat.

    We are trying to find out an alternative solution which will help us in fetching the user accounts of the local PC without hitting the AD server. 

    The command needs to work in Windows 7 system as well . Anybody has any idea regarding that?

    Tuesday, May 28, 2019 6:01 AM

All replies