Is there any PowerShell script for logging out office account(not license account)?

New Contributor

Hi all! Since I have no experience on coding, can PowerShell log out office apps account (Word, Excel, PowerPoint, Outlook) but does not affect the license account?



We have a windows 10 in meeting room, and Office app associated by an IT account with E3 license. But many users always log in office account (word, outlook, etc.) and forgot to log out. Thus, we want to have a script that the windows can run automatically to log out all office account when every time it start. (The script should only log out users account without affect the E3 license account)


Thanks for the help!!!

3 Replies

did you manage to find a fix for this?


Unfortunately, I didn't find any method.
OK it took me 3 minutes to get an answer myself using PROCESS EXPLORER (sysinternals)
The REGISTRY-Tree holds information to the account
Inside is a hex-key called "SignedOut"
Set it to "1" and you have it ;)

ProcessExplorer = best Windows debugging tool EVER