> ## Documentation Index
> Fetch the complete documentation index at: https://docs.askui.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AskUI-AddAgentOSService

### SYNOPSIS

Adds the AskUI AgentOS Service.
This service is used to automatically recover the AskUI AgentOS if it crashes.
It handles switching the RDP session to console mode.

### PARAMETERS

* `-Subnet` | *\<String>* - The subnet to listen to. e.g., 192.168.1.0 or 0.0.0.0
  Default is 127.0.0.1.
  More about subnets: [https://en.wikipedia.org/wiki/Subnet](https://en.wikipedia.org/wiki/Subnet)
* `-enableSas` | *\<SwitchParameter>* - Enable Windows Secure Attention Sequence. Default is false.

### NOTES

This Commandlet is only available on Windows.

### EXAMPLES

#### EXAMPLE 1

Adds the AskUI AgentOS Core Service.

```powershell theme={null}
AskUI-AddAgentOSService
```
