# 7.1 Initial Setup

# Requirements 


:::info
Please make sure to retrieve a valid API key from Tutela before getting started.

* Login to Tutela
* Go to Settings
* Generate a new API key
* :star:[Windows Hosts](/doc/8569837b-6b17-4e57-8423-4b75ff7b2bd4) **must be installed** 

:::


:::info
Download Porta Agent:

**Windows**: [Download Now](https://csinstallscripts.blob.core.windows.net/cs-vas/portasetup.exe)

**Linux / MacOS:** *Not yet supported* 

:::


:::tip
Screencast (Video Showcase)

* [Porta Walkthrough](https://www.youtube.com/watch?v=4i8Jfsvjko0&source_ve_path=MTc4NDI0)

:::

## Initial Setup

* Login to the Tutela dashboard and setup your Porta Profiles. 

  
* Download and install the accompanying windows agent. During setup, you will be asked to input your API key and endpoint.

  
  :::info
  Use one of the below endpoints:
  * Production: `cs-vas-backend.cybersift.io`
  * Trial (POC) users: `trial-backend.tutela.cybersift.io`

  :::
  * **What does this agent do?**

    It helps Porta determine which user is signed in (for logging purposes) and which hostname the computer it’s installed on is configured with. The following information is sent to Porta by the agent:
    * Hostname
    * Signed in username

    The agent has **no** write or modification permissions on the host.

  
* Install the appropriate extension/add-on for your browser:
  * Chrome

    <https://chromewebstore.google.com/detail/porta/dndcnkcefoifhdhdmiocmakenmjlaphc?hl=en>

    
  * Firefox

    <https://addons.mozilla.org/en-GB/firefox/addon/cybersift-porta/>


# Optional: Installing the windows agent via GPO (Powershell Script)

The below script will setup a scheduled task to:


1. Download the Porta Windows Agent
2. Create the necessary registry entries to ensure that the Porta Browser extension is downloaded and installed automatically

```powershell
#### Start PORTA Section
# URL where to download from
$portaExeUrl = "https://csinstallscripts.blob.core.windows.net/cs-vas/portasetup.exe"

# Define the path where the MSI file will be saved
$exePath = "C:\portasetup.exe"

# Download the EXE file
Invoke-WebRequest -Uri $portaExeUrl -OutFile $exePath

# Define the time to run the task (one minute from now)
$TimeToRun = (Get-Date).AddMinutes(1).ToString("HH:mm")

# Define the task name and description
$TaskName = "InstallPortaExtension"
$TaskDescription = "This task installs the porta browser extension."

# Create the action
$Action = New-ScheduledTaskAction -Execute "C:\portasetup.exe" -Argument "/VERYSILENT /endpoint=xxxxxxx.cybersift.io /api=xxxxxxxxx /forceReg=true"

# Create the trigger
$Trigger = New-ScheduledTaskTrigger -Once -At $TimeToRun

# Create the principal to run the task as the Local System account
$Principal = New-ScheduledTaskPrincipal -UserId "SYSTEM" -LogonType ServiceAccount -RunLevel Highest

# Register the scheduled task with the Local System account and no need for a user to be logged in
Register-ScheduledTask -Action $Action -Trigger $Trigger -Principal $Principal -TaskName $TaskName -Description $TaskDescription -Force

Write-Output "Scheduled task '$TaskName' has been created with admin privileges and will run at $TimeToRun."
```



---


:::info
tags:

* Porta Deployment
* Deploying Porta via GPO

:::

---

**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)