?
Solved

how can I find the SID of a server with PSTOOLS for every server on the domian?

Posted on 2014-11-06
2
Medium Priority
?
233 Views
Last Modified: 2014-12-02
is this possible??????

thanks
0
Comment
Question by:NAMEWITHELD12
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 37

Assisted Solution

by:Neil Russell
Neil Russell earned 1000 total points
ID: 40427071
use this in PowerShell

clear
$Servers = Import-Csv "c:\temp\servers.csv"
$Servers | % {Get-ADComputer -Filter "name -eq '$($_.server)'" } | Select-Object dnshostname , sid | Export-Csv c:\temp\serverSids.csv

Open in new window

All you need is a csv file with one field called Server

e.g.

Server
nameofserver1
nameofserver2
nameofserver999
0
 
LVL 16

Accepted Solution

by:
Joshua Grantom earned 1000 total points
ID: 40427107
Or you can lookup by querying the entire domain, no need for a list

Get-ADComputer -Filter 'OperatingSystem -like "*Server*"' | Select-Object Name,dnshostname,sid | Export-Csv C:\ServerSIDs.csv -nti

Open in new window


or if all of your servers are in one OU

Get-ADComputer -Filter * -SearchBase "OU=Servers,DC=DOMAIN,DC=COM" | Select-Object Name,dnshostname,sid | Export-Csv C:\ServerSIDs.csv -nti

Open in new window

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question