For the complete documentation index, see llms.txt. This page is also available as Markdown.

Advanced Setup

The Advanced Setup allows you to assign permissions in a more granular and customized way. This approach is more flexible but more complex and requires running the RealmJoin PowerShell module.

The RealmJoin PowerShell module automates the setup of your RealmJoin tenant. It:

  • Creates the required Microsoft Entra ID service principals for the RealmJoin applications

  • Assigns the appropriate Microsoft Graph permissions based on the features you select

  • Configures RealmJoin features (Portal, Intune LAPS, Autopilot, device actions, remediation scripts, security features)

  • Cleans up legacy applications from previous configurations

The module is published on the PowerShell Gallery.

Prerequisites

The required Microsoft Graph PowerShell modules are installed automatically the first time you run a command.

  • PowerShell 5.1 or later

  • Sign in as a Global Administrator of your Entra ID tenant when prompted

  • The following Microsoft Graph permissions are needed to create the service principals and assign permissions:

    • Organization.Read.All

    • Application.ReadWrite.All

    • AppRoleAssignment.ReadWrite.All

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.

1

Open PowerShell on Windows/Mac

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

2

Copy and Run the RealmJoin Onboarding Script

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

About 6>&1: These commands write their progress updates to PowerShell's Information stream. The 6>&1 redirection displays that output in the console — without it you won't see the detailed progress messages during execution.

3

Begin using RealmJoin

Once finished, the script will launch the RealmJoin Portal

Other Commands

Interactive Setup

For a guided, menu-driven experience:

To review the available features before configuring anything:

Custom Configuration

Default Features

Enables the mandatory core portal functionality plus the default optional features (everything except the RealmJoin Client):

Minimal Features (only mandatory features)

Full Feature Set

Read-Only Permissions

Assigns read-only permissions where available (for example, Group.ReadWrite.All becomes Group.Read.All):

Custom Feature Selection

Updating Existing Configuration

Update-RJTenant adjusts an already-configured tenant. The alias Complete-RJTenantOnboarding can be used interchangeably with Update-RJTenant.

Add New Features

Remove Features

Switch to Read-Only Permissions

Preview Changes

Available Features

Use these feature names with the -Features, -AddFeatures, and -RemoveFeatures parameters. Mandatory features are always enabled. The default configuration (New-RJTenant without parameters) enables every feature except Client.

Feature
Description
Default

RealmJoinPortal

Core portal functionality for user self-service and admin interaction (mandatory)

☑️

IntuneLAPS

Retrieve and manage local admin passwords via Intune LAPS

☑️

ShowSignin

Display user sign-in history and audit logs

☑️

Autopilot

View Windows Autopilot deployment profiles and status

☑️

DeviceIntuneActions

Execute privileged device actions (sync, restart, wipe, etc.)

☑️

DeviceHealthScript

Manage and deploy PowerShell remediation scripts to devices

☑️

SecurityFeatures

Advanced threat protection and security analytics (requires MDE licenses)

Client

RealmJoin Agent — client application for device management

Troubleshooting

If the module cannot be found, confirm the PowerShell Gallery is available and reinstall:

Getting Help

Last updated

Was this helpful?