Add an email address in an Outlook profile

Viewed 37

I am looking for a solution to add an email address in a newly created Outlook profile using PowerShell

Here is my code to create a brand new profile :

$reg="HKCU:\Software\Microsoft\Office\16.0\Outlook\Profiles"
$GetDate = Get-Date -Format dd-MM-yyyy
New-Item -Name "outlook_$GetDate" -Path $reg -Force -Verbose

What command line should I use after my code to add the email address to the "outlook_$GetDate" profile ?

Thank you in advance for your help.

0 Answers
Related