Tomasz Wida
Tomasz Wida

Reputation: 359

list all Computer names that are under domain

The machine I'm trying to RDP does not respond so I'm trying to find another one to connect to but I dont know the names of machines. I was trying to guess the name but I only found 1 and that does not have rdp enabled. Is there a way to list all Computer names that are under domain? Is that even possible If I'm just VPN into the domain and I'm not AD admin?

Edit: while digging around a year later, I stumble upon fun command that will list all machines names connected to a domain. I post it here if anybody need this. type in cmd

net view 

Upvotes: 0

Views: 8759

Answers (2)

TessellatingHeckler
TessellatingHeckler

Reputation: 28963

Try:

$AD = [adsisearcher]"objectcategory=computer"
$Computers = $AD.FindAll()
$Computers.Properties.Name

Upvotes: 4

Itchydon
Itchydon

Reputation: 2596

Try this as you only need read only permissions to active directory to get this info:

get-adcomputer -filter *

Upvotes: 3

Related Questions