# Enumerating Computers

### PowerView

Get list of all computers in current domain

```
Get-NetComputer
```

Get list of all computers in another domain

```
Get-NetComputer -Domain <DOMAIN NAME>
```

Pinging machines may give FALSE POSITIVE while probing, when ICMP packets are dropped by firewall

Ping all available computers in current domain

```
Get-NetComputer -Ping
```

Ping all available computers in another domain

```
Get-NetComputer -Ping -Domain <DOMAIN NAME>
```

Get list of all properties for all computers in current domain

```
Get-NetComputer -FullData
```

Get list of all properties of all computers in another domain

```
Get-NetComputer -FullData -Domain <DOMAIN NAME>
```

Get list of computers running with a specific OS in current domain

```
Get-NetComputer -OperatingSystem "*Server 2016*"
```

Get list of computers running with a specific OS in another domain

```
Get-NetComputer -Domain <DOMAIN NAME> -OperatingSystem "*Server 2016*"
```

### Active Directory Module

Get list of all computers in current domain

```
Get-ADComputer -Filter * | Select name
```

Pinging machines may give FALSE POSITIVE while probing, when ICMP packets are dropped by firewall

Ping all available computers in current domain

```
Get-ADComputer -Filter * -Properties DNSHostName | %{Test-Connection -Count 1 -ComputerName $_.DNSHostName}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aidenpearce369.gitbook.io/handbook/ad-pentesting/ad-enumeration/enumerating-computers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
