# Windows Hosts

### Requirements


:::info
**Tutela Agent for Windows OS** 

[[Download Here](https://csinstallscripts.blob.core.windows.net/cs-vas/tutela.msi)] 

:::


:::tip
Before moving forward, make sure to retrieve your API key.

* Login to Tutela
* Go to **Settings > Agent API Keys and Settings**
* Click on **Add API Key** 

:::

## Windows Platform 

[https://app.arcade.software/share/t9lA4NU9Lusuc2QQLG3N](https://app.arcade.software/share/t9lA4NU9Lusuc2QQLG3N)

> Download and install the [MSI package](https://csinstallscripts.blob.core.windows.net/cs-vas/tutela.msi), 
>
> Once installed, you can immediately kick off your first scan by initiating the below command.

### **Initiate a Host Scan**

```powershell
"C:\Program Files (x86)\Tutela Windows Agent\winAgent.exe" --api_key INSERT_YOUR_API_KEY
```


:::warning
**⚠️ Trial Users**

```powershell
"C:\Program Files (x86)\Tutela Windows Agent\winAgent.exe" --api_key INSERT_YOUR_API_KEY -api_endpoint "https://trial-backend.tutela.cybersift.io"
```

:::


## Create Scheduled Task


:::tip
**Scan Scheduled from Tutela Dashboard**


 ![](https://outline.cybersift.io/api/files.get?sig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ1cGxvYWRzL2MwNWNhZDYzLTA0ZmEtNGFmZC04NjMwLTI3MjNjZDYwZWZkNS8xMjNkZWQwOC0zZTg0LTQwODAtOTgwNC1mMWQ4OGVmZjE5NGYvaW1hZ2UucG5nIiwidHlwZSI6ImF0dGFjaG1lbnQiLCJpYXQiOjE3OTU0NDg3MDAsImV4cCI6MTc5NTUzNTEwMH0.3ztRO3eyFqukO8qd5AbKshrrxXhvhcvrsYXhtJ_1gW8 " =206x52")


You can create an agent schedule directly from Tutela. Alternatively, feel free to schedule it manually using Task Scheduler as explained below 


❗Please check this guide on [Agent Schedules](https://outline.cybersift.io/s/support-wiki/doc/agent-schedules-60RxaJQZUb)

:::


Scheduling the agent to run periodically can be easily accomplished using a windows scheduled task setup manually (for an example see below) or setup via an appropriate Group Policy Object


> **❗Don’t forget to replace** `**KEYHERE**` **with your API key**

```powershell
SCHTASKS /CREATE /RU "NT AUTHORITY\SYSTEM" /RL HIGHEST /NP /SC WEEKLY /D SUN /TN "Tutela\weekly" /TR "'C:\Program Files (x86)\Tutela Windows Agent\winAgent.exe' --api_key KEYHERE" /ST 03:00"
```


:::warning
**⚠️ Trial Users**

```powershell
SCHTASKS /CREATE /RU "NT AUTHORITY\SYSTEM" /RL HIGHEST /NP /SC WEEKLY /D SUN /TN "Tutela\weekly" /TR "'C:\Program Files (x86)\Tutela Windows Agent\winAgent.exe' --api_key KEYHERE -api_endpoint "https://trial-backend.tutela.cybersift.io"" /ST 03:00"
```

:::


To ensure that the scheduled tasks were correctly created:

* Go to **Task Scheduler**  
* Look for the following two tasks:
  * `CyberSiftTutelaAgent` - *This task gets the agent schedules from Tutela.*
  * `CyberSiftTutelaAgentUpdate` - *This task updates the Tutela agent to the latest version.*


 ![](https://outline.cybersift.io/api/files.get?sig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ1cGxvYWRzL2MwNWNhZDYzLTA0ZmEtNGFmZC04NjMwLTI3MjNjZDYwZWZkNS9mZTg0ZmM1ZC05ZTZjLTQ1NDAtOWU2NC1lMjA2Njk5MzhkYmMvaW1hZ2UucG5nIiwidHlwZSI6ImF0dGFjaG1lbnQiLCJpYXQiOjE3OTU0NDg3MDAsImV4cCI6MTc5NTUzNTEwMH0.ZC4kFrU0wwUorpgrTsyS2bs2S7ULg_QN5VqRauZBdd0 " =1357x332")


## Deploy via GPO

Should you wish to deploy the Tutela agent via Group Policy Objects (GPO), the below PowerShell provisioning script downloads the Tutela Agent, installs is, and sets up scheduled scans and updates:

```powershell
# IMPORTANT, change this: define the API key
$apiKey = "KEYHERE"

# change to temporary directory
cd $env:TEMP

# Define URL where to download from
$url = "https://csinstallscripts.blob.core.windows.net/cs-vas/tutela.msi"

# Define the path where the MSI file will be saved
$msiPath = "C:\tutela.msi"

# Download the MSI file
Invoke-WebRequest -Uri $url -OutFile $msiPath

# Install the MSI file
Start-Process -FilePath "msiexec.exe" -ArgumentList "/i $msiPath /qn API_KEY=$apiKey INSTALL_SERVICE=no ENABLE_SCHED_TASK=yes" -Wait

# Output a confirmation message
Write-Host "Install completed successfully."
```


:::warning
**⚠️ Trial Users**

```powershell
# IMPORTANT, change this: define the API key
$apiKey = "KEYHERE"

# change to temporary directory
cd $env:TEMP

# Define URL where to download from
$url = "https://csinstallscripts.blob.core.windows.net/cs-vas/tutela.msi"

# Define the path where the MSI file will be saved
$msiPath = "C:\tutela.msi"

# Download the MSI file
Invoke-WebRequest -Uri $url -OutFile $msiPath

# Install the MSI file
Start-Process -FilePath "msiexec.exe" -ArgumentList "/i $msiPath /qn API_KEY=$apiKey INSTALL_SERVICE=no ENABLE_SCHED_TASK=yes -api_endpoint `"https://trial-backend.tutela.cybersift.io`"" -Wait

# Output a confirmation message
Write-Host "Install completed successfully."
```

:::



---


:::info
tags:

* Host based scans 
* Windows hosts
* Tutela agent

:::

---

**Documents**

- [1. Getting Started](https://outline.cybersift.io/s/tutela-docs/doc/1-getting-started-wi972eTn7N)
- [2. Vulnerability Scanning](https://outline.cybersift.io/s/tutela-docs/doc/2-vulnerability-scanning-giL9tJRfit)
- [3. Asset Management](https://outline.cybersift.io/s/tutela-docs/doc/3-asset-management-TVe3GfeqgX)
- [4. Online Presence Monitoring](https://outline.cybersift.io/s/tutela-docs/doc/4-online-presence-monitoring-7dAIDIi6OT)
- [5. Reporting](https://outline.cybersift.io/s/tutela-docs/doc/5-reporting-xCbDsqRFGR)
- [6. Tutela Integrations](https://outline.cybersift.io/s/tutela-docs/doc/6-tutela-integrations-GJJVFdWlTI)
- [7. Porta](https://outline.cybersift.io/s/tutela-docs/doc/7-porta-0KQ0fvqN3u)
- [FAQ](https://outline.cybersift.io/s/tutela-docs/doc/faq-IkXHcKeIFy)