Windows 10: Disconnect Accounts Via Script/Registry/Directory Clearing

Discus and support Disconnect Accounts Via Script/Registry/Directory Clearing in Windows 10 Customization to solve the problem; Hello, I am running into an issue where users on kiosk devices are connecting their work/school accounts under emails and accounts. We have a GPO set... Discussion in 'Windows 10 Customization' started by Nathaniel Alves, Mar 8, 2021.

  1. Disconnect Accounts Via Script/Registry/Directory Clearing


    Hello,

    I am running into an issue where users on kiosk devices are connecting their work/school accounts under emails and accounts. We have a GPO set to block the accounts and that works when they try to login under "Access work or school" but if they go to "Email & Accounts" and select "Add a work or school account" it allows them to connect it. We have a SSO badge tap software that I am using to invoke a script on badge out. I found that clearing all files and sub-folders from c:\Users\%USERNAME%\AppData\Local\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy and then rebooting clears and disconnects the account at the next time the device auto-logs in.


    However, I am looking for a way to disconnect the accounts in the moments via script whether it be registry changes or other directories I am missing.


    Thoughts?

    Nate

    :)
     
    Nathaniel Alves, Mar 8, 2021
    #1

  2. Clear Pagefile on Shutdown


    I've been looking into clearing the pagefile, and I found the following steps at a somewhat dated webpage:
    1. In the registry editor, navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
    2. Set ClearPageFileAtShutdown to the REG_DWORD value of 1.
    3. Restart Windows.
    I'm just wondering whether those steps are still valid, and, if so, does clearing the pagefile work as advertised?
     
    gregyurkon, Mar 8, 2021
    #2
  3. Edge Search Does Not Permit Change of Region


    I got these suggestions from the Microsoft Community forum.No. 1 worked for me:

    Thank you for posting the query on Microsoft Community. I am glad to assist you on this.
    We have reproduce the issue here and we are able to access non-regional search for google using Microsoft Edge.
    I would suggest you to try the below steps and check if it helps.
    Step 1:
    Clear browsing data option of Microsoft Edge and check if you face the issue. To do so perform the steps below.

    1. Click on the More actions icon next to the feedback icon present on top right corner of the Project Spartan homepage.
    2. Select Settings and click on Choose what to clear.
    3. Check the boxes Browsing history, Cookies and saved website data and Cached data and files and click on Clear.
    Step 2:
    I suggest you to create a new user account and check if the issue occurs.

    1. Go to Settings.
    2. Choose Accounts and then select Family and other users.
    3. Select add someone else on this PC.
    4. Enter a user name and hit next.
    5. Click on Finish.
    6. Sign out from the current Account and Log into the new account.
    Step 3:
    It could also happen because of network issue. I suggest you to try with different network connection and check if it helps.
     
    hurricane51, Mar 8, 2021
    #3
  4. Disconnect Accounts Via Script/Registry/Directory Clearing

    long running script in email account

    Hi,

    The long-running script error usually occurs when there are issues with Internet Explorer.

    To resolve your concern, we suggest turning off the scripting debugger in Internet Explorer 11. Please follow these steps:

    • Open Internet Explorer.
    • Click the Settings icon at the top-right corner, then select Internet Options.
    • On the Advanced tab, uncheck Disable script debugging (Internet Explorer) and
      Disable script debugging (Other).
    • Click Apply, then OK.

    Once done, check if the issue will still persist.

    Update us with the outcome so we can provide further assistance.
     
    Ronalene Mat, Mar 8, 2021
    #4
Thema:

Disconnect Accounts Via Script/Registry/Directory Clearing

Loading...
  1. Disconnect Accounts Via Script/Registry/Directory Clearing - Similar Threads - Disconnect Accounts Via

  2. How to disconnect work or school account via Powershell

    in Windows 10 Gaming
    How to disconnect work or school account via Powershell: Hello,I wonder if there is the the equivalent of the Disconnect button see picture with a powershell or other script ?I saw that people are telling to delete the content of "C:\Users\*\AppData\Local\Packages\Microsoft.AAD.BrokerPlugin*". In fact after executing it I don't see...
  3. How to disconnect work or school account via Powershell

    in Windows 10 Software and Apps
    How to disconnect work or school account via Powershell: Hello,I wonder if there is the the equivalent of the Disconnect button see picture with a powershell or other script ?I saw that people are telling to delete the content of "C:\Users\*\AppData\Local\Packages\Microsoft.AAD.BrokerPlugin*". In fact after executing it I don't see...
  4. How to disconnect work or school account via Powershell

    in Windows 10 Customization
    How to disconnect work or school account via Powershell: Hello,I wonder if there is the the equivalent of the Disconnect button see picture with a powershell or other script ?I saw that people are telling to delete the content of "C:\Users\*\AppData\Local\Packages\Microsoft.AAD.BrokerPlugin*". In fact after executing it I don't see...
  5. Robocopy automatically taking source directory as the script file directory

    in Windows 10 Network and Sharing
    Robocopy automatically taking source directory as the script file directory: Synopsis:- Script file directory name -> PowerShellScripts in Desktop in local C:\...- Script file name -> Dbackup.ps1- Intended source for mirroring -> D:\ a partition on local hard disk- Intended destination for mirroring -> F:\D_LAPTOP_BACKUP_ ... F: is external SSD...
  6. Robocopy automatically taking source directory as the script file directory

    in Windows 10 Gaming
    Robocopy automatically taking source directory as the script file directory: Synopsis:- Script file directory name -> PowerShellScripts in Desktop in local C:\...- Script file name -> Dbackup.ps1- Intended source for mirroring -> D:\ a partition on local hard disk- Intended destination for mirroring -> F:\D_LAPTOP_BACKUP_ ... F: is external SSD...
  7. Robocopy automatically taking source directory as the script file directory

    in Windows 10 Software and Apps
    Robocopy automatically taking source directory as the script file directory: Synopsis:- Script file directory name -> PowerShellScripts in Desktop in local C:\...- Script file name -> Dbackup.ps1- Intended source for mirroring -> D:\ a partition on local hard disk- Intended destination for mirroring -> F:\D_LAPTOP_BACKUP_ ... F: is external SSD...
  8. Can someone please make these group policy and registry edits done via script

    in Windows 10 Ask Insider
    Can someone please make these group policy and registry edits done via script: https://ibb.co/q7SXW6p https://ibb.co/MDHzFGG https://ibb.co/MMd0FvX https://ibb.co/02ZMq4G https://ibb.co/gdSVQyK https://ibb.co/vvy1dK7 submitted by /u/TheFleshIsDead [link] [comments]...
  9. Can someone please make these registry edits and group policies done via script

    in Windows 10 Ask Insider
    Can someone please make these registry edits and group policies done via script: https://ibb.co/q7SXW6p https://ibb.co/MDHzFGG https://ibb.co/MMd0FvX https://ibb.co/02ZMq4G https://ibb.co/gdSVQyK https://ibb.co/vvy1dK7 submitted by /u/TheFleshIsDead [link] [comments]...
  10. Making IE the default browser via the registry or script

    in Browsers and Email
    Making IE the default browser via the registry or script: Hi, Is there a way to automate changing the default browser from Edge to IE. We are still dependent on IE and can not deploy W10 with Edge as the default. Thanks for any help you can provide. 28822