Sep 24, 2013 · I am trying to make this into a script that will uninstall various software. For example, this: Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object {$._DisplayName -match "java" | Select-Object -Property DisplayName .... You can try the following procedures in the links below explain how to remove a Microsoft account from your Windows 10 PC: Click the Start button, and then click Settings. Click Accounts, scroll down, and then click the Microsoft account you would like to delete. Click Remove, and then click Yes. Please let me know if this helped and works.