Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, June 21, 2019 5:01 PM
Good day!
Looking for a powershell alternative to the manual / UI method of removing an account from Settings -> Accounts -> Access Work or School on windows 10 workstations.
All replies (10)
Tuesday, June 25, 2019 4:39 PM
Hi,
As far as I know, there is no such powershell.
Best Regards,
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Thursday, July 25, 2019 5:11 PM
Bump, we need to remove Access Work or School accounts from on over 300 Windows 10 systems using SCCM, is there any other automated way since powershell is not an option??
Friday, July 26, 2019 10:55 AM
Not that i have found to date. You would think that at some point they would put it in there for mass migration projects from one tenant to another or something...
Wednesday, July 31, 2019 9:56 PM | 5 votes
Not sure if this is a full solution yet.
The folder we are looking for is under %USERPROFILE% > AppData > Local > Packages
After logging in as a local admin, delete or rename the user's folder that starts with "Microsoft.AAD.BrokerPlugin_"
Once you log back in as the user, the connected account should be gone.
Wednesday, July 31, 2019 10:23 PM
I will sure try testing that out on a few systems.
Thursday, September 26, 2019 1:17 PM
Did that worked ?
We actually are in the same situation as you.
Thursday, October 31, 2019 5:35 PM
I just tryed this on Windows 1809 and it worked great. Thanks
Now to do the same thing for local installs of Office Pro Plus 365 build 1902
Friday, November 15, 2019 8:39 PM
Not sure if this is a full solution yet.
The folder we are looking for is under %USERPROFILE% > AppData > Local > Packages
After logging in as a local admin, delete or rename the user's folder that starts with "Microsoft.AAD.BrokerPlugin_"
Once you log back in as the user, the connected account should be gone.
This needs to be up voted 1000% more.
IT WORKS.
Thank you so much!
Monday, November 18, 2019 1:41 PM
This worked great. Thanks for all the help.
As for if it is a full solution, i changed it up a little so that I could cover all profiles.
Get-ItemProperty -Path "C:\Users\\AppData\Local\Packages" | ForEach-Object {
Remove-Item -Path "$_\Microsoft.AAD.BrokerPlugin*" -Recurse -Force | Out-Null
}
But if you know of the one you want then I feel like you are all set with what you posted.
Thursday, January 9, 2020 8:28 PM
Not sure if this is a full solution yet.
The folder we are looking for is under %USERPROFILE% > AppData > Local > Packages
After logging in as a local admin, delete or rename the user's folder that starts with "Microsoft.AAD.BrokerPlugin_"
Once you log back in as the user, the connected account should be gone.
Been testing how to deal with a Hybrid AD Join when machines are already Azure AD Registered. This removes the account and the PCthen does the Hybrid AD Join when the AD Connect syncs back to Azure. However if there is an exisiting object, looks like it adds a $ to the Object in Azure. Also, the PC requires a reboot after you do this otherwise in my case the PC kept asking for a password in Outlook. After reboot it no longer occured.When clicking "Disconnect" in the Work or School, another request is set out which removes it from Azure. Without an official process, not sure how one could automate that.