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

Copper 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?

 

Case:


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
Hello

did you manage to find a fix for this?

thx
Hello

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
Computer\HKEY_USERS\S-1-5-21-1.....(edited)........-1280\SOFTWARE\Microsoft\Office\16.0\Common\Identity\Identities\JohnDoe@contoso.com_AD
Inside is a hex-key called "SignedOut"
Set it to "1" and you have it ;)

ProcessExplorer = best Windows debugging tool EVER