在运行Citrix XenDesktop 4.0 Setup Wizard 的过程,你有可能会遇到以下错误情况:

 
以及你可以看到事件日志有以下错误提示:
 ----------------------------------
Event ID : 5000
Source : .NET 2.0 runtime error
EventType clr20r3, P1 setuptoolapplication.exe, P2 4.0.48348.0, P3 4c2a1856, P4 system.directoryservices, P5 2.0.0.0, P6 4889dec1, P7 9f, P8 6d, P9 system.unauthorizedaccess, P10 NIL.
-------------------------------------

或以下错误提示:
------------------------------
ERR:(7/14/2010 4:12:23 PM):Error setting properties on AD computer account
 Message = System.UnauthorizedAccessException
 Access is denied.

    at System.DirectoryServices.Interop.UnsafeNativeMethods.IAds.SetInfo()
   at System.DirectoryServices.DirectoryEntry.CommitChanges()
   at Citrix.Library.DirectoryServices.Win32DirectoryEntry.CommitChanges()
   at Citrix.ManagementAPI.Infrastructure.AD.ADManager.SetPropertiesOnDirEntry(String compAccName, String compOuPath, String compLocation, Boolean provisioned)
INF:(7/14/2010 4:12:23 PM):   ADManager.SetPropertiesOnDirEntry - Exit
INF:(7/14/2010 4:12:23 PM):   PVSmanager.ProvisionDisk - Exit
ERR:(7/14/2010 4:12:23 PM):Internal Error
 Message = System.UnauthorizedAccessException 
 Access is denied.
--------------------------------------------
解决问题:
1、确保你的DDC已是最新版本http://support.citrix.com/article/CTX125759最好把此补丁更新上
2、AD权限一定要给足
运行XenDesktop Setup Wizard所要求的权限有以下3种:
1、PVS服务器本地管理员权限
2、具备完全访问、控制权限所创建的计算机所在OU及子OU的权限。
3、DDC所在Farm的完全访问、控制权限
4、属于每个DDC本地分布式COM用户组