Sign-in & Login Problems

How to Automatically Sign Out Office Users Without Affecting the License

Aamir Naveed AkramAamir Naveed Akram Nov 3, 2026 870 views

Question details

Administrators need a way to automatically sign out individual meeting room users from Microsoft Office applications on shared computers while preserving the primary device license.

How to Automatically Sign Out Office Users Without Affecting the License Account
Product
Microsoft Office
Device & OS
Windows
Scenario
Managing shared Windows workstations in meeting rooms or public spaces where multiple users log into Office applications with their own credentials.
Observed behavior
User sessions remain active after users leave the shared computer, posing security or privacy risks. Removing the primary licensed account breaks the Office installation for the entire device.
Before you start

Ensure you have administrative access to the shared Windows computers and familiarity with running PowerShell scripts or configuring Group Policies before modifying user session settings.

Solution 1Recommended

Use a PowerShell Logoff Script to Clear User Identities

Deploy a PowerShell script to safely remove individual user sign-ins from the registry upon logoff without touching the machine-level Office license.

Microsoft Office stores user session tokens in the Windows Registry. By clearing the Identity registry keys when a user logs off, the next user will not have access to the previous user's session. Since this targets the Current User (HKCU) hive, the machine-level license remains unaffected.

1
Open PowerShell or a Script Editor

Log in to the shared computer with an administrator account, open the Start menu, type 'PowerShell ISE' or 'Notepad', and run it as an administrator.

2
Create the Identity Cleanup Script

Write a script designed to silently remove the registry keys located at HKCU\Software\Microsoft\Office\16.0\Common\Identity\Identities. This clears cached user accounts for the current Windows profile.

3
Test the Script Locally

Save the script as a .ps1 file and execute it manually to verify that opening Word or Excel prompts for a new sign-in without breaking the base software activation.

4
Deploy via Group Policy (GPO)

Open the Group Policy Editor (gpedit.msc), navigate to User Configuration > Windows Settings > Scripts (Logon/Logoff), and add your PowerShell script to the Logoff trigger for all shared meeting room computers.

Use a PowerShell Logoff Script to Clear User Identities
Consult the Admin Community: Because registry structures and token caching mechanisms vary by Office version, it is highly recommended to post your specific setup in the Microsoft PowerShell Community for guidance on safely formatting the script for your environment.
Free Microsoft Office alternative

Simplify Shared Computer Management with WPS Office

Avoid complex PowerShell scripts, registry edits, and user session management entirely. WPS Office provides a lightweight, highly compatible alternative for shared workstations, allowing seamless document viewing and editing without forcing individual user sign-ins for basic features.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installation package for Windows.
  2. 2. Install on the Shared PC: Run the installer as an administrator on the meeting room computer to make it available to all local users.
  3. 3. Set as Default Application: Configure Windows to open all standard document formats (.docx, .xlsx, .pptx) with WPS Office to ensure a smooth, sign-in-free experience for users.
Free and lightweight office suite ideal for shared Windows computers in meeting roomsNo mandatory cloud sign-ins required for basic local document editing and presentationsFully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx)Familiar user interface reduces the learning curve for visiting users or meeting participants
microsoft office alternative - wps office

Frequently Asked Questions

What is Shared Computer Activation in Microsoft 365?

Shared Computer Activation is a specific licensing mode for Microsoft 365 Apps that allows multiple users to access the software on a single machine without counting against their individual device installation limits.

Where does Office store user sign-in sessions in Windows?

Microsoft Office typically stores user session identities and authentication tokens in the Windows Registry under the HKCU\Software\Microsoft\Office\16.0\Common\Identity path, as well as securely inside the Windows Credential Manager.

Can I use Group Policy to prevent Office from remembering accounts?

Yes, administrators can use Group Policy Administrative Templates for Microsoft Office to configure privacy and sign-in settings, such as forcing sign-in prompts or disabling the Roaming Profile features, though script-based cleanup is often needed for complete removal.