> 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/local-admin-access-discovery.md).

# 搜索本地管理员访问权限

### 查找用户为本地管理员的机器

{% code overflow="wrap" %}

```powershell
Find-LocalAdminAccess -Verbose
```

{% endcode %}

此命令测试当前用户在哪些机器上拥有本地管理员权限。

这是实验室中在被入侵后枚举阶段非常有用的命令。

<figure><img src="/files/2cd1a25cf796daf855c621a9cdb62ef3dc03e156" alt=""><figcaption></figcaption></figure>

### 列出多台机器上的本地管理员

{% code overflow="wrap" %}

```powershell
Invoke-EnumerateLocalAdmin -Verbose
```

{% endcode %}

此命令可帮助你识别域中多台主机上的本地管理员。

<figure><img src="/files/65f120721c3ab1137ba8f2620bc1252e47d6bbbd" alt=""><figcaption></figcaption></figure>

### 查找组中的用户会话

{% code overflow="wrap" %}

```powershell
Invoke-UserHunter -GroupName "RDPUsers"
```

{% endcode %}

此命令会搜索由属于以下组的用户建立的会话： `RDPUsers` 组。

此命令会搜索由属于以下组的用户建立的会话： `RDPUsers` 组。

这有助于识别：

* 某个组在哪些机器上处于活动状态；
* 哪些有趣的用户已连接；
* 哪些机器值得进一步分析。


---

# 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/local-admin-access-discovery.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.
