<script language="javascript">
<%
string strId = User.Identity.Name;
if (strId.IndexOf("\\") != -1) {
string[] arry = strId.Split("\\".ToCharArray());
if (arry.Length > 1)
strId = arry[1];
}
Response.Write("var UserId = '"+ strId +"';");
%>
</script>
将以上代码加在C:\Program Files\Microsoft\Exchange Server\ClientAccess\owa\forms\premium目录下的
editcalendaritem.aspx以及editmessage.aspx的body标签后面即可