# CMD Commands

Here I will compile some CMD commands to enumerate local and domain accounts.

Ok, we have a low-level user and we want to enumerate our machine and AD, first, we need to understand who we are inside the machine and what type of privileges we have.

### Local Users & Groups

#### Who We Are?

```
C:\Users\student459>whoami
```

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

#### What groups we are associated with?

```batch
C:\Users\student459>net localgroup
```

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

#### Enumerate Local Users

```batch
C:\Users\student459> net user
```

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

#### Enumerate Local Administrator Account

```batch
C:\Users\student459>net user Administrator
```

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

### Local Services Running

#### Enumerate Local Services Running as System

```batch
TASKLIST /FI "USERNAME eq NT AUTHORITY\SYSTEM"
```

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

### Local Machine Information

```
C:\Users\student459>
```

### Local Network Shares

```
C:\Users\student459> net view \\dcorp-std459 /all
```

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


---

# 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/prepare-your-vm/cmd-commands.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.
