# Advanced Setup

## Recommended Setup

The setup command displayed by the RealmJoin Portal will provide permissions for:

* Core features
* Intune LAPS
* Sign-in data
* Remediation scripts
* Autopilot
* Intune device actions

To add all features or individual features, see [Other Commands](#other-commands).

{% stepper %}
{% step %}

#### Open PowerShell on Windows/Mac

We recommend installing and running the RealmJoin PowerShell module on your device's PowerShell rather than Azure CloudShell.
{% endstep %}

{% step %}

#### Copy and Run the RealmJoin Onboarding Script

The script will prompt you to authenticate with Microsoft Graph. Sign in with your Global Administrator.

```
Install-Module -Force -Name RealmJoin
Complete-RJTenantOnboarding -Token 1234ABCD 6>&1
```

<figure><img src="/files/5CufG7jT37trS9oD9o5X" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/rhVnd5wO24K1JPAAdIWD" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Begin using RealmJoin

Once finished, the script will launch the RealmJoin Portal

<figure><img src="/files/mkUc5Jl6XMxylZfPWXxb" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## Other Commands

### Interactive Setup

For a guide, menu-driven experience:

```
Show-RJInteractiveSetup 6>&1
```

### Custom Configuration

#### Minimal Features (only mandatory features)

```
New-RJTenant -Features @() 6>&1
```

#### Full Feature Set

```
New-RJTenant -All 6>&1
```

#### Read-Only Permissions

```
New-RJTenant -ReadOnly 6>&1
```

#### Custom Feature Selection

```
New-RJTenant -Features @('RealmJoinPortal', 'IntuneLAPS', 'Autopilot') 6>&1
```

### Updating Existing Configuration

#### Add New Features

```
Update-RJTenant -AddFeatures @('SecurityFeatures') 6>&1
```

#### Remove Features

```
Update-RJTenant -RemoveFeatures @('ShowSignin') 6>&1
```

#### Switch to Read-Only Permissions

```
Update-RJTenant -ReadOnly 6>&1
```

#### Preview Changes

```
Update-RJTenant -AddFeatures @('SecurityFeatures') -WhatIf 6>&1
```

### Getting Help

```
Get-Help New-RJTenant -Full
Get-Help Update-RJTenant -Examples
Get-Help Show-RJInteractiveSetup -Detailed
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.realmjoin.com/realmjoin-deployment/onboarding-realmjoin-portal/advanced-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
