AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 598610
Accepted
the-wabbit
the-wabbit
Asked: 2014-05-27 05:37:05 +0800 CST2014-05-27 05:37:05 +0800 CST 2014-05-27 05:37:05 +0800 CST

用于非域客户端的 RemoteApps

  • 772

我想将远程桌面场的 RemoteApps 静默添加到 Windows 7 机器的RemoteApp 和桌面连接控制面板中。

订阅由 RD Web 访问服务器提供的 RSS 提要rundll32 tsworkspace的一般过程似乎是可行的方法,但有问题的客户端与 RD 农场位于一个单独的、不信任的域中。并且https://rdbroker/RDWeb/FeedLogin/WebFeedlogin.aspxURI 需要身份验证,所以它根本不起作用。

我尝试为 IIS 站点树中的文件夹启用匿名身份验证(使用IUSR、应用程序池身份甚至特权域用户作为身份)RDWeb/FeedLogin,但尝试检索提要返回Server Error in '/RDWeb/FeedLogin' Application.IIS 记录未处理的 NullReference 异常:

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 26.05.2014 14:50:08 
Event time (UTC): 26.05.2014 12:50:08 
Event ID: 66cc347cf8884a4fa0567b5e7c378d61 
Event sequence: 4 
Event occurrence: 1 
Event detail code: 0 

Application information: 
    Application domain: /LM/W3SVC/1/ROOT/RDWeb/FeedLogin-6-130455822088289842 
    Trust level: Full 
    Application Virtual Path: /RDWeb/FeedLogin 
    Application Path: C:\Windows\Web\RDWeb\FeedLogin\ 
    Machine name: rdbroker 

Process information: 
    Process ID: 1016 
    Process name: w3wp.exe 
    Account name: IIS APPPOOL\RDWebAccess 

Exception information: 
    Exception type: NullReferenceException 
    Exception message: Object reference not set to an instance of an object. 

Request information: 
    Request URL: https://rdbroker:443/RDWeb/FeedLogin/WebFeedlogin.aspx?ReturnUrl=An unhandled exception has occurred.fRDWebAn unhandled exception has occurred.fFeedAn unhandled exception has occurred.fwebfeed.aspx 
    Request path: /RDWeb/FeedLogin/WebFeedlogin.aspx 
    User host address: 192.168.8.70 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: IIS APPPOOL\RDWebAccess 

Thread information: 
    Thread ID: 6 
    Thread account name: IIS APPPOOL\RDWebAccess 
    Is impersonating: False 
    Stack trace:    at ASP.webfeedlogin_aspx.Page_Load(Object sender, EventArgs e)
   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Custom event details: 

想法?

windows-server-2008-r2
  • 1 1 个回答
  • 1710 Views

1 个回答

  • Voted
  1. Best Answer
    the-wabbit
    2015-01-29T03:37:47+08:002015-01-29T03:37:47+08:00

    我终于通过使用AutoITv3脚本自动化 tsworkspace 对话框来“解决”这个问题。我使用用户的 RemoteApp 用户名填充了employeeID属性,并让脚本查询此属性,使用它来预填充 RemoteApp Web 提要的安全对话框以及 RD 客户端本身的UsernameHint注册表值。因此,在最好的情况下,用户只需要运行可执行文件并将她的密码输入到预先填充了她的用户名的身份验证对话框中。

    脚本如下。请注意,WinWait调用正在等待带有特定标题或消息文本的窗口出现,您需要根据客户的本地化和 Windows 版本进行更改。

    #include <AD.au3>
    
    Dim $WCXPath = "\\fserver2\RemoteAppFeed$\rdcb.wcx"
    Dim $FeedAddress = "rdcb.ad.contoso.com"
    Dim $WizardWinHandle
    Dim $SecurityWinHandle
    Dim $CallResult
    Dim $aProperties[1][2]
    Dim $UserName
    
    $UserName="AD\<YourADLogin>"
    
    ; Open Connection to the Active Directory
    _AD_Open()
    
    ; Write UsernameHint values with the user's RD server authentication name
    $aProperties = _AD_GetObjectProperties(@UserName, "employeeID")
    ;_ArrayDisplay($aProperties, "Active Directory Functions - Example 2 - Properties for user '" & @UserName & "'")
    If IsArray($aProperties) Then
       If UBound($aProperties,2)=2 and UBound($aProperties,1)=2 Then
          If $aProperties[1][0]="employeeID" and StringLen($aProperties[1][1])>1 Then
             $UserName = "CIT-AD\" & $aProperties[1][1]
             RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers\rdfarm.ad.contoso.com", "UsernameHint", "REG_SZ", $UserName)
             RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers\ts13.ad.contoso.com", "UsernameHint", "REG_SZ", $UserName)
          EndIf
       EndIf
    EndIf
    
    Run ("C:\Windows\System32\xwizard.exe RunWizard /u {7940acf8-60ba-4213-a7c3-f3b400ee266d} /z" & $WCXPath)
    $WizardWinHandle = WinWait("Neue Verbindung mit RemoteApp", $FeedAddress)
    ;MsgBox(0, "Debug", "RemoteApp Window appeared with handle " & $WizardWinHandle)
    WinActivate($WizardWinHandle)
    $CallResult = ControlClick($WizardWinHandle, "", "Button1")
    ;MsgBox(0, "Debug", "Clicked "Next" with result" & $CallResult)
    $SecurityWinHandle = WinWait("Windows-Sicherheit")
    ;MsgBox(0, "Debug", "Windows Security Window appeared with handle " & $SecurityWinHandle)
    WinActivate($SecurityWinHandle)
    $CallResult = ControlSend($SecurityWinHandle, "", "Edit1", $UserName)
    ;MsgBox(0, "Debug", "Sent username data with result" & $CallResult)
    $CallResult = ControlClick($SecurityWinHandle, "", "Button1")
    ;MsgBox(0, "Debug", "Clicked to remember credentials with result" & $CallResult)
    $CallResult = ControlFocus($SecurityWinHandle, "", "Edit2")
    ;MsgBox(0, "Debug", "Focused password field with result" & $CallResult)
    
    • 3

相关问题

  • Server 2008 R2 架构更改 - 自 RC 以来是否有任何更改?

  • 是否可以在 Server 2008 R2 Core Install 中安装 servermanagercmd?

  • 视窗 2008 R2 WDS

  • 从命令行备份 Windows 2008 R2 到网络共享 - 隐藏分区问题

  • 在 Windows Server 2008 上移动和更改 Pagefile.sys 大小

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve