sandboxie-plus / Sandboxie

Sandboxie Plus & Classic
https://Sandboxie-Plus.com
GNU General Public License v3.0
13.78k stars 1.54k forks source link

Unable to start MS Teams #2619

Open szusik opened 1 year ago

szusik commented 1 year ago

Describe what you noticed and did

I am trying to run MS Teams with Sandboxie Plus 1.6.5 (Windows 11), but it was the same with 1.5.8 It hangs on first screen "Loading Microsoft Teams...".

Teams never worked good for me, it required at least 3 restarts before they launch but now I am not able to reach the screen for restart (it is a feature of MS Teams to do restart when it detects problems)

If I create new sandbox , I am able to start teams (with those at least 3 restarts) but then after a day or two I am back with the same problem.

Deleting all the data from sandbox (including snapshots) does not help at all - only creation of new sandbox works.

How often did you encounter it so far?

I encounter it all the time now

Affected program

MS Teams 1.5.0.33362

Download link

Not available

Where is the program located?

The program is installed only outside the sandbox.

Expected behavior

I would like to be able to launch and use MS Teams

What is your Windows edition and version?

Windows 11 Pro (10.0.22000)

In which Windows account you have this problem?

A local or Microsoft account without special changes.

Please mention any installed security software

Microsoft Defender

What version of Sandboxie are you running?

1.6.5 64bit

Is it a new installation of Sandboxie?

I just updated Sandboxie from a previous version (to be specified).

Is it a regression?

No response

In which sandbox type you have this problem?

In a standard isolation sandbox (yellow sandbox icon).

Can you reproduce this problem on a new empty sandbox?

I can confirm it also on a new empty sandbox.

Did you previously enable some security policy settings outside Sandboxie?

No

Crash dump

No response

Trace log

No response

Sandboxie.ini configuration

[GlobalSettings]

Template=Edge_Fix
Template=7zipShellEx
Template=RpcPortBindings
Template=nVidia_nView
Template=WindowsRasMan
Template=SynapticsTouchPad
Template=WindowsLive
Template=OfficeLicensing
Template=OfficeClickToRun
FileRootPath=\??\%SystemDrive%\Sandbox\%USER%\%SANDBOX%
KeyRootPath=\REGISTRY\USER\Sandbox_%USER%_%SANDBOX%
IpcRootPath=\Sandbox\%USER%\%SANDBOX%\Session_%SESSION%

[UserSettings_66C8065E]

SbieCtrl_UserName=szymon.stryczek
SbieCtrl_BoxExpandedView=DefaultBox
SbieCtrl_NextUpdateCheck=1626076292
SbieCtrl_UpdateCheckNotify=n
SbieCtrl_ShowWelcome=n
SbieCtrl_WindowCoords=64,94,2476,1266
SbieCtrl_ActiveView=40021
SbieCtrl_ProcessViewColumnWidths=250,182,300
SbieCtrl_EnableLogonStart=y
SbieCtrl_EnableAutoStart=y
SbieCtrl_AddDesktopIcon=y
SbieCtrl_AddQuickLaunchIcon=y
SbieCtrl_AddContextMenu=y
SbieCtrl_AddSendToMenu=y
SbieCtrl_AutoStartAgent=SandMan.exe
BoxDisplayOrder=DefaultBox,Second
BoxCollapsedView=DefaultBox,Second

[Second]

Enabled=y
ConfigLevel=9
AutoRecover=y
BlockNetworkFiles=y
Template=AutoRecoverIgnore
Template=Firefox_Phishing_DirectAccess
Template=Chrome_Phishing_DirectAccess
Template=LingerPrograms
Template=BlockPorts
Template=qWave
Template=FileCopy
Template=SkipHook
Template=OpenBluetooth
Template=OpenSmartCard
RecoverFolder=%Desktop%
RecoverFolder=%Favorites%
RecoverFolder=%Personal%
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
BorderColor=#7fff00,on,6
RunCommand=Teams.exe|C:\Users\user\AppData\Local\Microsoft\Teams\current\Teams.exe
CopyLimitKb=81920

[Third]
Enabled=y
BlockNetworkFiles=y
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
RecoverFolder=%Personal%
RecoverFolder=%Desktop%
BorderColor=#02f6f6,ttl,6
Template=OpenBluetooth
Template=SkipHook
Template=FileCopy
Template=qWave
Template=BlockPorts
Template=LingerPrograms
Template=AutoRecoverIgnore
ConfigLevel=9
AutoRecover=y
UsePrivacyMode=n
BoxNameTitle=n
RunCommand=TEAMS|C:\Users\user\AppData\Local\Microsoft\Teams\current\Teams.exe
CopyLimitKb=81920

[DefaultBox]
Enabled=y
BlockNetworkFiles=y
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
RecoverFolder=%Personal%
RecoverFolder=%Desktop%
BorderColor=#00FFFF,ttl
Template=OpenBluetooth
Template=SkipHook
Template=FileCopy
Template=qWave
Template=BlockPorts
Template=LingerPrograms
Template=AutoRecoverIgnore
ConfigLevel=9
kocane commented 1 year ago

How does it work for you if you change Teams.exe to Windows 8 compatibility mode?

isaak654 commented 1 year ago

Deleting all the data from sandbox (including snapshots) does not help at all - only creation of new sandbox works.

  1. Could you provide a list of files / registry leftovers in the sandbox to substantiate this claim?
  2. Also, please apply these settings in a working sandbox and check over time.
szusik commented 1 year ago

@isaak654 - I have uninstalled Sandboxie-Plus altogether, then restarted and installed it again. I ended up without any option to run MS Teams, it was not going anywhere beside initial splashscreen. Before I went with your point 2 I decided to go with @kocane solution. This works beautiful, teams are even now responsive all the time and work each time (so no hangs after successful login, and login itself works all the time). Please let me know if you would like to get trace log from not successful and successful runs or I should just close it as it works now.

isaak654 commented 1 year ago

I think you could attach the trace logs with v1.7.0c because it introduces the following compatibility improvement:

added missing registry hooks to improve compatibility with newer applications

szusik commented 1 year ago

I've upgraded to 1.7.1

Now, in windows 8 compatibility mode it runs more or less fine (some problems with accessing camera but not that important) Without compatibility mode it still does hangs on splash screen. sandboxie-ms-teams.zip I am attaching trace log from OK and NOT OK runs. Password for zip file is: sandboxie