You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by "Oliver.Zhan" <zh...@hikvision.com> on 2018/08/08 07:02:18 UTC

How to configure the “initial-program”

initial-program

The full path to the program to run immediately upon connecting. This parameter is optional.



How to configure the “initial-program” when the connected I want to run a .bat script automatically.

简单     实用     优雅
---------------------
技术开发组 张建平(zhangjianping)
TEL:0571-88075998-69364
-----------------------------------------------------------------------------------------------
本邮件及其附件含有海康威视公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
This e-mail and its attachments contain confidential information from HIKVISION, which is intended only for  the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other  than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!


________________________________
CONFIDENTIALITY NOTICE:

This electronic message is intended to be viewed only by the individual or entity to whom it is addressed. It may contain information that is privileged, confidential and exempt from disclosure under applicable law. Any dissemination, distribution or copying of this communication is strictly prohibited without our prior permission. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, or if you have received this communication in error, please notify us immediately by return e-mail and delete the original message and any copies of it from your computer system. For further information about Hikvision company. please see our website at www.hikvision.com<http://www.hikvision.com>


答复: How to configure the “initial-program”

Posted by "Oliver.Zhang" <zh...@hikvision.com>.
It works.

发件人: Nick Couchman [mailto:vnick@apache.org]
发送时间: 2018年8月9日 17:52
收件人: user@guacamole.apache.org
主题: Re: How to configure the “initial-program”

On Wed, Aug 8, 2018 at 10:10 PM Oliver.Zhang <zh...@hikvision.com>> wrote:
Hi, Nick,
I  have  specify the full path to the program to run.
for example, the script is at c:\test.bat.

but when i have connected the win remotely, the script not work.


If you specify this same script using a different RDP client - xfreerdp on Linux, or the Microsoft RDP Client on Windows or Mac, for example - does it work?

-Nick

________________________________
CONFIDENTIALITY NOTICE:

This electronic message is intended to be viewed only by the individual or entity to whom it is addressed. It may contain information that is privileged, confidential and exempt from disclosure under applicable law. Any dissemination, distribution or copying of this communication is strictly prohibited without our prior permission. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, or if you have received this communication in error, please notify us immediately by return e-mail and delete the original message and any copies of it from your computer system. For further information about Hikvision company. please see our website at www.hikvision.com<http://www.hikvision.com>


Re: How to configure the “initial-program”

Posted by Nick Couchman <vn...@apache.org>.
On Wed, Aug 8, 2018 at 10:10 PM Oliver.Zhang <zh...@hikvision.com>
wrote:

> Hi, Nick,
>
> I  have  specify the full path to the program to run.
>
> for example, the script is at c:\test.bat.
>
>
>
> but when i have connected the win remotely, the script not work.
>
>
>

If you specify this same script using a different RDP client - xfreerdp on
Linux, or the Microsoft RDP Client on Windows or Mac, for example - does it
work?

-Nick

答复: How to configure the “initial-program”

Posted by "Oliver.Zhang" <zh...@hikvision.com>.
Hi, Nick,
I  have  specify the full path to the program to run.
for example, the script is at c:\test.bat.

but when i have connected the win remotely, the script not work.

发件人: Nick Couchman [mailto:vnick@apache.org]
发送时间: 2018年8月8日 20:48
收件人: user@guacamole.apache.org
主题: Re: How to configure the “initial-program”

On Wed, Aug 8, 2018 at 3:02 AM Oliver.Zhan <zh...@hikvision.com>> wrote:
initial-program

The full path to the program to run immediately upon connecting. This parameter is optional.



How to configure the “initial-program” when the connected I want to run a .bat script automatically.


As the documentation says, you specify the full path to the program to run.  So, if you have a .bat or .cmd script, specify the full path to the script - for example, c:\windows\rdp-connection-script.bat.

However, this may not be the best way to do this, depending on what you're trying to do.  If your Windows system is on a domain, you could use GPO and Logon Scripts to execute a script every time a user logs on.  If it isn't on a domain, you can still use the Local Policy logon scripts to specify a script that will execute when a user logs on.

What is the script doing when the user logs on?

-Nick

________________________________
CONFIDENTIALITY NOTICE:

This electronic message is intended to be viewed only by the individual or entity to whom it is addressed. It may contain information that is privileged, confidential and exempt from disclosure under applicable law. Any dissemination, distribution or copying of this communication is strictly prohibited without our prior permission. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, or if you have received this communication in error, please notify us immediately by return e-mail and delete the original message and any copies of it from your computer system. For further information about Hikvision company. please see our website at www.hikvision.com<http://www.hikvision.com>


Re: How to configure the “initial-program”

Posted by Nick Couchman <vn...@apache.org>.
On Wed, Aug 8, 2018 at 3:02 AM Oliver.Zhan <zh...@hikvision.com>
wrote:

> *initial-program*
>
> The full path to the program to run immediately upon connecting. This
> parameter is optional.
>
>
>
>
>
> How to configure the “*initial-program*” when the connected I want to run
> a .bat script automatically.
>
>
>

As the documentation says, you specify the full path to the program to
run.  So, if you have a .bat or .cmd script, specify the full path to the
script - for example, c:\windows\rdp-connection-script.bat.

However, this may not be the best way to do this, depending on what you're
trying to do.  If your Windows system is on a domain, you could use GPO and
Logon Scripts to execute a script every time a user logs on.  If it isn't
on a domain, you can still use the Local Policy logon scripts to specify a
script that will execute when a user logs on.

What is the script doing when the user logs on?

-Nick