When you use Kerberos authentication with Shared Session or Session per User, adding the PowerShell host might fail.

Problem

When you attempt to add a PowerShell host to the plug-in inventory using Shared Session or Session per User, the workflow fails with the following error.

Null realm name (601) - default realm not specified (Dynamic Script Module name : addPowerShellHost#16)

Cause

The default realm is not specified in the Kerberos configuration file krb5.conf, neither is provided as a part of the user name.

Solution

Provide a default realm in your Kerberos configuration file or include the realm in your user name when authenticating with Kerberos.