How I can get SID of domain on workstation

Qasim Ali 0 Reputation points
2023-02-06T12:37:33.87+00:00

I want to get SID of domain from client workstation though cmd, PowerShell by giving ip address of particular workstation. In my environment I have multiple computers joined different domains (but same forest). How I can get domain information of workstation over the network? Waiting for reply please

I have get user Sid, machine Sid by removing last four characters from user Sid using the wmic.

Still wondering to get domain SID for that workstation

Windows for business | Windows Server | User experience | Other
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Thameur-BOURBITA 36,261 Reputation points Moderator
    2023-02-07T23:19:33.5733333+00:00

    Hi @Qasim Ali

    You can use the following command to get the name and the domain of target computer:

    Get-WmiObject -Namespace root\cimv2 -Class Win32_ComputerSystem -ComputerName desktop01 | Select Name, Domain

    Please don't forget to mark helpful answer as accepted


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.