Hello, I was told to post over here for some web.config file help in my new active directory account creation/ exchange mailboxes. Here is my issue:
So, we have our faculty and staff on-premise and our students getting setup with office365 accounts. Our students get created in active directory and then Azure Directory Sync syncs that user account to office365. Then a license is applied to that user to get a mailbox on office365. However, the user doesn't show up in both the on-premise mailbox list it only shows in the office365 mailboxes. This means that when you are on the on-premise accounts webmail or outlook you cannot find that office365 user in the GAL. However, if I run the command Enable-RemoteMailbox -Identity "user" -RemoteRoutingAddress "email" on the on-premise server the user then shows up as an office365 mailbox and then works in the GAL. But, I cannot justify running this command on every single student account that gets created on office365 so there must be a better way.... Can anyone point me in the direction of what I may be doing wrong in my hybrid setup?
I'm hoping I can add some something to my web.config file to add what I need for each user creation to automate this so I don't have to manually go in and do it. Here is my web.config file with my domain name, username, and passwords edit out.
<!--Email Settings Start-->
<!--Required Keys: [Username][ResetPassword]-->
<add key="ResetPwdEmailSubject" value="Your domain Account Password."/>
<add key="ResetPwdEmailBody" value="Please return to <a href=http://domain.net>http://domain.net</a>
and log in using the following password:<br /><br />Password: [ResetPassword]<br /><br />"/>
<add key="GeneratePwdLength" value="7"/>
<add key="EmailResetFailError" value="The email address provided does not
match the alternate address listed for your account. Please try password reset option #1."/>
<!--Reset Password Email Settings End-->
<add key="Domain" value="(domain Controller).net"/>
<add key="ADStudentsPath" value="OU=fall10,OU=fall10,OU=Students,DC=,DC=net"/>
<add key="ADEmployeesPath" value="OU=Employees,DC=,DC=net"/>
<add key="ADGroupsPath" value="OU=Groups,DC=domain,DC=net"/>
<!-- GD 20120606 <add key="ADProfilePath" value="\\student\student\profile\"/>-->
<add key="ADProfilePath" value="\\fs-01\student\newprofile\"/>
<!--User to perform functions-->
<!--<add key="ADUser" value="Custom_User@test.net"/>
<add key="ADPassword" value="pwd!"/>-->
<add key="ADUser" value="aduser" />
<add key="ADPassword" value="#pwd" />
<!--<add key="ExchangeURI" value="https://mail01.domain.net/Powershell?serializationLevel=Full"/>
<add key="ExchangeDomain" value="domain.net"/>
<add key="ExchangeOU" value="domain.net/Students/fall10/fall10"/>
<add key="ExchangeDatabase" value="Students"/>
<add key="ExchangeUser" value="Custom_User@domain.net"/>
<add key="ExchangePassword" value="#pwd"/>-->
<!--Office 365 Settings Start-->
<add key="365TargetDomain" value="manhattantech.onmicrosoft.com"/>
<add key="365Domain" value="domain.net"/>
<add key="365pSMTPproxy" value="domain.edu"/>
<add key="365ssmtpproxy" value="domain.net"/>
<add key="s365showInAddressBook1" value="CN=Default Global Address List,CN=All
Global Address Lists,CN=Address Lists Container,CN=domain,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domain,DC=net"/>
<add key="s365showInAddressBook2" value="CN=All Users,CN=All Address Lists,CN=Address
Lists Container,CN=domain,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domain,DC=net"/>
<!--Office 365 Settings End-->