Atlas-OS / Atlas

🚀 An open and lightweight modification to Windows, designed to optimize performance, privacy and usability.
https://atlasos.net
GNU General Public License v3.0
12.95k stars 505 forks source link

[BUG] - Account page disappearing on updates (Included Solutions) #1140

Open wuyilingwei opened 1 month ago

wuyilingwei commented 1 month ago

Before continuing...

Description

I found that in some cases, my account settings disappeared in settings, and the entire account tab disappeared.

Steps to reproduce

Edit gpedit Computer Configuration - Windows Settings - Security Settings - Local Policies - Security Options - Accounts: Block Microsoft Accounts (disable)

Login My MS account, my develop E5 MS account and my school MS account.

Expected behavior

It should be normal. At least you shouldn't be unable to access account settings.

Actual behavior

I noticed that after a while, the entire Account tab in Settings disappeared. Sometimes I could get there using certain Settings links (such as Change Password or Account Settings), and sometimes I couldn't.

Maybe it was a system update and Atlas that finally caused it (?)

Atlas Edition

Atlas for Windows 11 23H2

Desktop information

Version Windows 11 Professional Edition Build number 23H2 Installation date ‎2024/‎5/‎3 OS version 22631.3737 Experience Windows Feature Experience Pack 1000.22700.1009.0

Additional content

This bug does not seem to appear on Win10. One of my computers did not have this bug after the above operations, but since it is unstable to reproduce, I am not sure if it is due to luck.

What's strange is that this behavior doesn't seem to happen on the first reboot. But it happens after multiple reboots.

he3als commented 1 month ago

Hi, it seems like a Windows update cleared Atlas's method to disable ads on the accounts page.

To fix this, open PowerShell as an Administrator, and copy and paste the below:

cd "$env:windir\AtlasModules"; $ver = 'v0.3.3'; $name = "ViVeTool-$ver"
if ((gcim Win32_ComputerSystem).SystemType -match 'ARM64') { $name = "$name-ARM64CLR.zip" } else { $name = "$name.zip" }
curl.exe -LSs "https://github.com/thebookisclosed/ViVe/releases/download/$ver/$name" -o "$name"
iex(irm https://raw.githubusercontent.com/Atlas-OS/Atlas/cef5ab81b9ef5d477f3a8aeb7b1e30cd54e4bb09/src/playbook/Executables/CLIENTCBS.ps1)

Then, restart.

wuyilingwei commented 1 month ago

嗨,似乎 Windows 更新清除了 Atlas 在帐户页面上禁用广告的方法。

若要解决此问题,请按 Win+R 打开“运行”对话框,粘贴,然后按 Enter:

RunAsTI.cmd powershell iex(irm https://cdn.jsdelivr.net/gh/Atlas-OS/Atlas@main/src/playbook/Executables/CLIENTCBS.ps1); pause

Thank you, that work. (need reboot)

he3als commented 1 month ago

Still going to keep this open as it's an issue some users have and I want to properly fix it

wuyilingwei commented 1 month ago

Still going to keep this open as it's an issue some users have and I want to properly fix it

Then it seems that it may have nothing to do with my restarting the MS account. I will modify the context.

Thanks your help.

he3als commented 1 month ago

It's due to the FeatureManagement overrides being cleared. See the script that disables the Settings ads for more info: https://github.com/Atlas-OS/Atlas/blob/main/src/playbook/Executables/CLIENTCBS.ps1