> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/zh/active-directory/enumeration/domain-computer-enumeration.md).

# 域计算机枚举

### 使用 Active Directory 模块

列出所有计算机：

{% code overflow="wrap" %}

```powershell
Get-ADComputer -Filter *
```

{% endcode %}

筛选信息：

{% code overflow="wrap" %}

```powershell
Get-ADComputer -Filter *  | select DNSHostName, Name, SID
```

{% endcode %}

<figure><img src="/files/d8166708a63a0637c54214e3e4c2f7b26a11400d" alt=""><figcaption></figcaption></figure>

### 使用 PowerView

{% code overflow="wrap" %}

```powershell
Get-NetComputer
```

{% endcode %}

此命令可让你检索以下信息，例如：

* 机器名称；
* 操作系统；
* Windows 版本；
* SAM 账户类型；
* 最近一次机器密码更改日期。

<figure><img src="/files/aa7f1e98c79c9593f737d8de9a55351b8bee3ca8" alt=""><figcaption></figcaption></figure>

### 检查这些机器是否已开机

{% code overflow="wrap" %}

```powershell
Get-NetComputer -Ping | select name,operatingsystem
```

{% endcode %}

此命令可让你识别网络中可访问的机器。

<figure><img src="/files/7edeb3715131c166813558508af2a04a3eb0caeb" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/zh/active-directory/enumeration/domain-computer-enumeration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
