# Common cmd commands for IT Support

<details>

<summary>(Ipconfig) How to check if a computer has an IP address</summary>

1. Open cmd&#x20;

```sh
ipconfig 
```

</details>

<details>

<summary>Release and Renew </summary>

It is used to refresh the IP address or let go of the current IP address of the machine to try and get a new one from DHCP

```
ipconfig /release
ipconfig /renew
```

</details>

<details>

<summary>(Ping) Test connectivity of an IP address or Domain </summary>

It will basically tell you it that IP address or Domain name is available or online&#x20;

```
ping -t ip_address_or_domain
```

</details>

<details>

<summary>net user /domain username</summary>

Check information about a particular user&#x20;

1. You can check when their password is going to expire, etc

```
net user username /domain 
```

</details>

<details>

<summary>net user /domain username Password_to_change</summary>

You can use this command to change the password of a domain admin user remotely&#x20;

```
net user /domain username New_Password
```

</details>

<details>

<summary>Check Password Expiry</summary>

1. Use the following

```
net accounts
```

![](https://3367244783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK3YP1U2Fck03eUZ2XijJ%2Fuploads%2FuTHiy3St53d6FgQDelyg%2Fimage.png?alt=media\&token=0d3b542a-c3f9-4e15-9eed-f9cc25b6c2b3)

</details>
