I have a Azure AD joined machine (via Win10 OOBE). Is there a way to reference the email address that is used in a script or to show this via cmd?

I have a piece of software which I need to install (on mass silently) and need to pass in the email address to the installer.

Any suggestions are welcome!

  • What does whoami show? – G-Man Nov 1 '17 at 19:59
  • The whoami command shows: azuread\paulsmith - The Connected to Azure AD (in Access work or school) shows paul.smith@company.com. – caked Nov 1 '17 at 22:45

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.