Office 365 activation fails when launching published Office apps from the RAS User Portal

0 users found this article helpful

Symptoms

Something went wrong. [4nsvw]

Cause

Modern Office activation (Shared Computer Activation / Modern Authentication sign-in) relies on a helper process, ShellAppRuntime.exe, being available in the user's session. This process hosts the Web Account Manager (WAM) broker plugin (Microsoft.AAD.BrokerPlugin) that Office uses to complete sign-in.

When a published application is launched from the Parallels Client, as a published desktop, or as a direct RemoteApp connection, Windows starts the desktop shell components for the session, which in turn starts ShellAppRuntime.exe. When the same application is launched from the RAS User Portal (a browser-based RemoteApp session), the session can be initialized without these shell components, so ShellAppRuntime.exe is not running when Office attempts to activate. As a result, the WAM broker plugin cannot start, the DCOM launch warning above is logged, and Office activation fails with the generic error [4nsvw].

Note: Modifying DCOM Launch and Activation permissions for the COM server referenced in the event log warning does not resolve this issue. The underlying cause is that the helper process is missing from the session, not a permissions problem.

Resolution

Configure ShellAppRuntime.exe to start for the user session, regardless of how the session is launched:

  1. Open the Group Policy Management Console and edit (or create) a GPO that applies to the affected users.
  2. Go to User Configuration > Policies > Windows Settings > Scripts (Logon/Logoff).
  3. Open Logon properties, go to the Scripts tab, and click Add.
  4. In Script Name, enter:
    C:\Windows\System32\ShellAppRuntime.exe
  5. Click OK to save, then link the GPO to the organizational unit containing the affected users and apply the policy.
  6. Have the user sign out completely and start a new session, then launch the published Office application from the User Portal and attempt activation again.

This ensures the WAM broker helper process is available when Office attempts Modern Authentication-based activation, whether the session was started from the User Portal, the Parallels Client, or a published desktop.

Note: If your environment uses FSLogix Profile Containers or Office Containers, the -runexplorer parameter on the published application is still recommended in addition to this workaround.

Was this article helpful?

Tell us how we can improve it.