Windows 10 Azure AD – Something went wrong

“Your organization has deleted this device. To fix this, contact your system administrator and provide error code 700003”

Something went wrong -  Your organization has deleted this device. To fix this, contact your system administrator and provide error code 700003
Something went wrong – Your organization has deleted this device. To fix this, contact your system administrator and provide error code 700003

If you have encountered this error try following method:

1 Remove Work account from Windows 10

2 Sign out from Intune (If signed in)

3 Open command line or PowerShell window with Admin rights

4 Enter command: “dsregcmd /leave”

Command line windows with command -  dsregcmd /leave
Command line window with command – dsregcmd /leave

5 Enter command: “dsregcmd /status” to check if the system is now left the Azure AD

Command line windows with command -  dsregcmd /status
Command line window with command – dsregcmd /status

6 Try to sign in with Work account from Settings

Keywords: Windows 10, Azure AD, Azure Active Directory

How to: Use PowerShell to list and delete files under same folder but different path

e.g. List or delete all text (.txt) files from

C:\Users\a\Documents\Folder\1.txt

C:\Users\b\Documents\Folder\a.txt

To list all .txt files:
Get-ChildItem "C:\Users\*\Documents\Folder\*.txt"
*To test the delete procedure (run the command and show outputs without deleting any thing), confirm that the command is deleting correct files:
Get-ChildItem "C:\Users\*\Documents\Folder\*.txt" | Remove-Item -WhatIf
Finally, to run the command and delete files:
Remove-Item -path "C:\Users\*\Documents\Folder\*.txt"