

I already know that Office365 saves the credentials in these registry-keysĬomputer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\Identityīut if I start some office-program again the auto-login just needs some more seconds. Get-ChildItem "$AADBrokerFolder\AC\TokenBroker\Accounts" | Remove-Item -Recurse -Force
Sign out of microsoft office pro#
Using a Microsoft Surface Pro 3 i5, Microsoft Windfully patched, Microsoft Surface Dock, Microsoft Office 365 Click-to-Run 1708 (been happening for many updates now). $AADBrokerFolder = Get-ChildItem -Path $LocalPackagesFolder -Recurse -Include "_*" Latest today have to restart outlook to stop it for a while. $LocalPackagesFolder ="$env:LOCALAPPDATA\Packages" It can be created if the first time you sign in, the user all #Try to remove the Link School/Work account if there was one. Get-ChildItem "$TeamsFolders\storage.json" | Remove-Item #Lastly delete the storage.json, this corrects some error that MSTeams otherwise would have when logging in again. Get-ChildItem "$TeamsFolders\Cookies" | Remove-Item This is a fix for when the joining as anonymous, and prevents the last used guest name from being reused. Write-Host "Modify desktop-Config.Json - Finished" $credential = cmdkey /list | ForEach-Object #Remove Credential from Credential manager Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\tmp" | Remove-Item -Recurse -ErrorAction Silentl圜ontinue Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\Local Storage" | Remove-Item -Recurse -ErrorAction Silentl圜ontinue Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\Indexeddb" | Remove-Item -Recurse -ErrorAction Silentl圜ontinue Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\gpucache" | Remove-Item -Recurse -ErrorAction Silentl圜ontinue Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\cache" | Remove-Item -Recurse -ErrorAction Silentl圜ontinue Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\databases" | Remove-Item -Recurse -ErrorAction Silentl圜ontinue Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\blob_storage" | Remove-Item -Recurse -ErrorAction Silentl圜ontinue Office 365 - Cant sign in to Microsoft Office, access Microsoft Outlook, or interact with Microsoft data files If you are unable to sign into Microsoft Office (or Outlook repeatedly prompts you for login, does not show any data, edit a Word/Excel/PowerPoint data file, or receive encrypted connection error) it may be due to a NetID password. Write-Host "Teams Process Sucessfully Stopped" Get-Process -ProcessName Teams -ErrorAction Silentl圜ontinue | Stop-Process -Force To prevent this, I'm trying to write an powershell script which deleted the cached credentials.įor Microsoft-Teams if found a script which works like a charm. If a next user now starts one of the office programs, the last user will be logged in. Some of them don't logout when they leave. On this computer people shall login into their company-accounts, so the office-software is licensed.
Sign out of microsoft office windows 10#
We got a public computer with windows 10 and the office365-suite in one of our meetings room at my company.
