Logout Office 365 user from a PC

%3CLINGO-SUB%20id%3D%22lingo-sub-2049913%22%20slang%3D%22en-US%22%3ELogout%20Office%20365%20user%20from%20a%20PC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2049913%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Guys%2C%3C%2FP%3E%3CP%3EI'm%20looking%20for%20a%20remote%20way%20to%20logout%20a%20user%20from%20Excel%2C%20automated%20way%20preferably.%20I%20have%20a%20lot%20of%20computers%20where%20I%20have%20excel%20running%20I%20need%20to%20switch%20the%20user%20in%20all%20of%20them%2C%20so%20I'm%20looking%20for%20a%20powershell%20cmdlet%2C%20vbs%20or%20cmd%20command%20to%20do%20that.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20know%20the%20manual%20process%20is%20to%20go%20to%20excel%20and%20at%20the%20top%20account%20listed%20and%20click%20%22Sign%20out%22%3B%20but%20I%20can't%20go%20PC%20by%20PC%20doing%20that.%20So%20I'm%20looking%20for%20a%20way%20to%20automate%20this.%26nbsp%3B%3C%2FP%3E%3CP%3EThings%20to%20take%20into%20consideration%3A%3C%2FP%3E%3CP%3E1.%20Logoff%20device%20from%20Office%20Portal%20option%20has%20been%20disabled%20in%20my%20organization.%3C%2FP%3E%3CP%3E2.%20I'm%20not%20a%20tenant%20administrator%20to%20do%20a%20mass%20logoff.%3C%2FP%3E%3CP%3EI'm%20actually%20looking%20for%20a%20way%20to%20create%20a%20script%20and%20do%20this%20remotely.%3C%2FP%3E%3CP%3EThanks%20in%20advance!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2049913%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESecurity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Hello Guys,

I'm looking for a remote way to logout a user from Excel, automated way preferably. I have a lot of computers where I have excel running I need to switch the user in all of them, so I'm looking for a powershell cmdlet, vbs or cmd command to do that. 

I know the manual process is to go to excel and at the top account listed and click "Sign out"; but I can't go PC by PC doing that. So I'm looking for a way to automate this. 

Things to take into consideration:

1. Logoff device from Office Portal option has been disabled in my organization.

2. I'm not a tenant administrator to do a mass logoff.

I'm actually looking for a way to create a script and do this remotely.

Thanks in advance!

1 Reply
Without being an Admin in the organization I don't think you will be able to do this