从ASP.NET应用程序生成自动帐户/邮箱 - 复制延迟问题 [英] Automatic account/mailbox generation from an ASP.NET app - Replication Delay problem

查看:75
本文介绍了从ASP.NET应用程序生成自动帐户/邮箱 - 复制延迟问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们开发了一个内部ASP.NET应用程序,可以让我们的服务台员工在一次操作中创建新的用户帐户和Exchange邮箱。在填写Web表单上的信息后,应用程序通过Powershell运行Exchange New-Mailbox 命令,传递函数所需的参数。

运行命令后,应用程序执行 Get-Mailbox 命令,传递用户的身份。它还会在Active Directory中查看新用户是否存在。如果不是,则应用程序返回错误。如果是,它将执行下一步,我们的问题会间歇性地浮出水面。

链中的下一步是运行 Set-Mailbox 命令并传递参数。在Powershell中执行此命令时,我们有时会收到以下错误:

收件人"{domain} / User Accounts / Accounts-New / {User's full name} "无法从域控制器"{域控制器地址"中读取。这可能是由于复制延迟造成的。切换出林模式应允许此操作成功完成。

这是什么意思,我们如何让它停止?我想如果我做了检查,看看帐户是否存在于Exchange和AD我会没事的。我试图研究这个错误,并且在我们正在做的事情的背景下没有什么可以解释这个。

感谢您的帮助!


Tuck

Hi,

We've developed an in-house ASP.NET application  that lets our helpdesk staff create new user accounts and Exchange mailboxes in one operation. After filling out the information on the web form, the application runs the Exchange New-Mailbox command through Powershell, passing the parameters that the function needs.

After running the command, the application executes the Get-Mailbox command, passing the Identity of the user. It also looks in Active Directory to see if the new user exists. If it doesn't the application returns an error. If yes, it executes the next step and our problem intermittently surfaces.

The next step in the chain is to run the Set-Mailbox command and passing it parameters. When this command is executed in Powershell, we sometimes get the following error:

The recipient "{domain}/User Accounts/Accounts-New/{User's full name}" could not be read from domain controller "{domain controller address". This may be due to replication delays. Switching out of Forest mode should allow this operation to complete successfully.

What does this mean and how do we get this to stop? I figured if I did the check to see if the accounts were present on Exchange and AD I'd be fine. I tried to research this error and there is really nothing out there to explain this in the context of what we're doing.

Thanks for the help!


Tuck

推荐答案

你好,


这篇关于从ASP.NET应用程序生成自动帐户/邮箱 - 复制延迟问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆