Today I’m explaining how to add new domain which I have owned to office 365 using powershell.
, if you execute those powershell, I can get Text record value like this.
In this post describes using New-MsolDomain cmdlet, to get txt record value, I am using Get-MsolDomainVerificationDns cmdlet.If you use Get-MsolDomainVerificationDns cmdlet, you can get DNS record that needs to be set to verify a domain.
Then I go to godaddy site to add txt values which I get from using that powershell, I added it.
Even if I go to my office 365 admin center, it added ysahpro.com as status of “Setup in progress”
Next post I’ll confirm my domain using powershell, it may use “Confirm-MsolDomain”cmdlet, it looks like awesome using powershell