Skip to content

Instantly share code, notes, and snippets.

@petergs
Created January 22, 2025 16:58
Show Gist options
  • Select an option

  • Save petergs/44f4d17791e0363ac804df9939d05ca7 to your computer and use it in GitHub Desktop.

Select an option

Save petergs/44f4d17791e0363ac804df9939d05ca7 to your computer and use it in GitHub Desktop.
check-m365-domain.sh
#!/bin/bash
curl "https://login.microsoftonline.com/getuserrealm.srf?login=$1&json=1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment