许可优化
许可优化
产品
产品
解决方案
解决方案
服务支持
服务支持
关于
关于
软件库
当前位置:服务支持 >  软件文章 >  使用PowerShell将用户从Citrix交付组中移除的方法

使用PowerShell将用户从Citrix交付组中移除的方法

阅读数 21
点赞 0
article_banner

citrix交付组的名称为win10,使用powershell 命令 将交租组中指定的用户删除

步骤如下:

步骤一:要使用的Citrix的powershell模块,要加载asnp citirx*

PS C:\Windows\system32> asnp citrix*

步骤二:

使用以下命令查看交付组的访问 策略
PS C:\Windows\system32> Get-BrokerAccessPolicyRule -DesktopGroupName win10



   AllowRestart                     : True

   AllowedConnections               : ViaAG

   AllowedProtocols                 : {HDX, RDP}

   AllowedUsers                     : Filtered

   Description                      :

   DesktopGroupName                 : win10

   DesktopGroupUid                  : 2

   Enabled                          : True

   ExcludedClientIPFilterEnabled    : False

   ExcludedClientIPs                : {}

   ExcludedClientNameFilterEnabled  : False

   ExcludedClientNames              : {}

   ExcludedSmartAccessFilterEnabled : False

   ExcludedSmartAccessTags          : {}

   ExcludedUserFilterEnabled        : False

   ExcludedUsers                    : {}

   HdxSslEnabled                    : False

   IncludedClientIPFilterEnabled    : False

   IncludedClientIPs                : {}

   IncludedClientNameFilterEnabled  : False

   IncludedClientNames              : {}

   IncludedSmartAccessFilterEnabled : True

   IncludedSmartAccessTags          : {}

   IncludedUserFilterEnabled        : True
IncludedUsers                    : {KYDX\ctxadmin, KYDX\chem07}

   MetadataMap                      : {}

   Name                             : win10_AG

   Uid                              : 4

AllowRestart                     : True

   AllowedConnections               : NotViaAG

   AllowedProtocols                 : {HDX, RDP}

   AllowedUsers                     : Filtered

   Description                      :

   DesktopGroupName                 : win10

   DesktopGroupUid                  : 2

   Enabled                          : True

   ExcludedClientIPFilterEnabled    : False

   ExcludedClientIPs                : {}

   ExcludedClientNameFilterEnabled  : False

   ExcludedClientNames              : {}

   ExcludedSmartAccessFilterEnabled : False

   ExcludedSmartAccessTags          : {}

   ExcludedUserFilterEnabled        : False

   ExcludedUsers                    : {}

   HdxSslEnabled                    : False

   IncludedClientIPFilterEnabled    : False

   IncludedClientIPs                : {}

   IncludedClientNameFilterEnabled  : False

   IncludedClientNames              : {}

   IncludedSmartAccessFilterEnabled : True

   IncludedSmartAccessTags          : {}

   IncludedUserFilterEnabled        : True
IncludedUsers                    : {KYDX\ctxadmin, KYDX\chem07}

   MetadataMap                      : {}

   Name                             : win10_Direct

   Uid                              : 3

步骤三:

使用Set-BrokerAccessPolicyRule  -RemoveIncludeUsers  "KYDX\chem07"   移除交付组中的用户chem07

PS C:\Windows\system32> Get-BrokerAccessPolicyRule -DesktopGroupName win10 | Set-BrokerAccessPolicyRule -RemoveIncludedUsers "KYDX\chem07"

步骤四:

再次查看win10交付组中的现有用户,结果IncludedUsers  : {KYDX\ctxadmin},以此验证使用命令从交付组中移除用户成功了。

PS C:\Windows\system32> Get-BrokerAccessPolicyRule -DesktopGroupName win10



   AllowRestart                     : True

   AllowedConnections               : ViaAG

   AllowedProtocols                 : {HDX, RDP}

   AllowedUsers                     : Filtered

   Description                      :

   DesktopGroupName                 : win10

   DesktopGroupUid                  : 2

   Enabled                          : True

   ExcludedClientIPFilterEnabled    : False

   ExcludedClientIPs                : {}

   ExcludedClientNameFilterEnabled  : False

   ExcludedClientNames              : {}

   ExcludedSmartAccessFilterEnabled : False

   ExcludedSmartAccessTags          : {}

   ExcludedUserFilterEnabled        : False

   ExcludedUsers                    : {}

   HdxSslEnabled                    : False

   IncludedClientIPFilterEnabled    : False

   IncludedClientIPs                : {}

   IncludedClientNameFilterEnabled  : False

   IncludedClientNames              : {}

   IncludedSmartAccessFilterEnabled : True

   IncludedSmartAccessTags          : {}

   IncludedUserFilterEnabled        : True
IncludedUsers                    : {KYDX\ctxadmin}

   MetadataMap                      : {}

   Name                             : win10_AG

   Uid                              : 4

AllowRestart                     : True

   AllowedConnections               : NotViaAG

   AllowedProtocols                 : {HDX, RDP}

   AllowedUsers                     : Filtered

   Description                      :

   DesktopGroupName                 : win10

   DesktopGroupUid                  : 2

   Enabled                          : True

   ExcludedClientIPFilterEnabled    : False

   ExcludedClientIPs                : {}

   ExcludedClientNameFilterEnabled  : False

   ExcludedClientNames              : {}

   ExcludedSmartAccessFilterEnabled : False

   ExcludedSmartAccessTags          : {}

   ExcludedUserFilterEnabled        : False

   ExcludedUsers                    : {}

   HdxSslEnabled                    : False

   IncludedClientIPFilterEnabled    : False

   IncludedClientIPs                : {}

   IncludedClientNameFilterEnabled  : False

   IncludedClientNames              : {}

   IncludedSmartAccessFilterEnabled : True

   IncludedSmartAccessTags          : {}



免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删

相关文章
技术文档
QR Code
微信扫一扫,欢迎咨询~
customer

online

联系我们
武汉格发信息技术有限公司
湖北省武汉市经开区科技园西路6号103孵化器
电话:155-2731-8020 座机:027-59821821
邮件:tanzw@gofarlic.com
Copyright © 2023 Gofarsoft Co.,Ltd. 保留所有权利
遇到许可问题?该如何解决!?
评估许可证实际采购量? 
不清楚软件许可证使用数据? 
收到软件厂商律师函!?  
想要少购买点许可证,节省费用? 
收到软件厂商侵权通告!?  
有正版license,但许可证不够用,需要新购? 
联系方式 board-phone 155-2731-8020
close1
预留信息,一起解决您的问题
* 姓名:
* 手机:

* 公司名称:

姓名不为空

姓名不为空

姓名不为空
手机不正确

手机不正确

手机不正确
公司不为空

公司不为空

公司不为空