question

90971522 avatar image
0 Votes"
90971522 asked 90971522 answered

I want to get Microsoft 365 activation account information with a PowerShell command

Immediately after installing Microsoft 365, specify the email address on the activation screen,
I want to use the PowerShell command to get the email address information that I entered when setting up this authentication.

You can check it by launching Excel etc. on the target computer and displaying the account screen.
Please let me know if there is a way to investigate with the PowerShell command.
Thank you.


<Postscript>
When I tried ospp.vbs with / dstatus specified,
I was able to get the Product ID and SKU ID information,
I couldn't get the above email address information.
(ERROR CODE: 0x4004FC04 was displayed on the way)

windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

IanXue-MSFT avatar image
0 Votes"
IanXue-MSFT answered

Hi,

How about querying the registry value?

 Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Office\16.0\Common\Identity\Identities\*" -Name "EmailAddress"

Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

90971522 avatar image
0 Votes"
90971522 answered

Mr. Ian Xue
The problem has been solved.
Thank you very much.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.