在另一台NON-IIS服务器上运行脚本 [英] Run script on another NON-IIS server

查看:76
本文介绍了在另一台NON-IIS服务器上运行脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试执行以下任务。我相信它可以从我之前见过的其他asp页面获得。


我有一台服务器(ServerA)Win2003 IIS 6运行一个网页

我有一台服务器(ServerB)Win2003 Active Directory域控制器

我不想放IIS.


我需要一个用户进入ServerA网页并输入数据,一旦执行

提交按钮,我希望脚本获取数据并执行它在ServerB上执行
服务器(AD DC)。


这个脚本只能在本地运行DC,而不能远程运行。

我在映射之前听说过一次asp页面驱动DC,

将global.asa文件放在映射的驱动器上。还有一些关于

编辑asa文件。


任何帮助都将不胜感激。

I am trying to perform the following task. I believe it is possible from
other asp pages I have seen before.

I have a server (ServerA) Win2003 IIS 6 running a web page
I have a server (ServerB) Win2003 Active Directory Domain Controller
which I do not want to put IIS.

I need a user to go to the ServerA web page and enter data, and once the
submit button is executed, I want the script to take the data and execute it
on the ServerB server (AD DC).

This script can only run on the DC locally, not remotely.
I have hear of an asp page once before that mapped a drive to the DC, and
put the global.asa file on the mapped drive. There was also something about
editing the asa file.

Any help would be greatly appreciated.

推荐答案

>我有一个服务器(ServerA)Win2003 IIS 6运行一个网页
> I have a server (ServerA) Win2003 IIS 6 running a web page
我有一个服务器(ServerB)Win2003 Active Directory域控制器
我不想把IIS。
我需要用户访问ServerA网页并输入数据,一旦执行
提交按钮,我希望脚本获取数据并在ServerB服务器上执行它(AD DC )。
I have a server (ServerB) Win2003 Active Directory Domain Controller
which I do not want to put IIS.
I need a user to go to the ServerA web page and enter data, and once the
submit button is executed, I want the script to take the data and
execute it on the ServerB server (AD DC).




您是否能够在ServerA上的IIS中创建一个虚拟目录,将

指向ServerB上的文件夹?如果你能做到这一点,你应该能够在表格中指定

表格。


Jenny



Are you able to create a virtual directory in IIS on ServerA that points
to a folder on ServerB? If you can do that, you should be able to point
the form to submit to a page there.

Jenny


我已经尝试过以下内容,scritp仍然可以从web上运行
服务器(ServerA)而不是非IIS服务器(ServerB)

>
要进行故障排除我会给出以下代码:

设置WShShell = Server.CreateObject(" WScript.Shell")

strSvr = WshShell.ExpandEnvironmentStrings(" ;%ComputerName%")


(在html部分中)

ServerName =<%= strSvr%>


代码返回ServerA(IIS服务器)而不是ServerB,因为我试图完成



我需要编码才能在ServerB上实际执行就像我坐在
ServerB并执行vbs代码一样。

" jenny mabe" <是ne ** @ rabidduck.com>写在消息中

新闻:opr3ym9906qafk40 @ localhost ...
I have tried the below and the scritp still appears to run from the web
server (ServerA) and not the non IIS server (ServerB)

To troubleshoot I ass the following code:
Set WShShell = Server.CreateObject("WScript.Shell")
strSvr = WshShell.ExpandEnvironmentStrings("%ComputerName%" )

(in html section)
ServerName = <%=strSvr%>

The code returns ServerA (IIS Server) not ServerB as am trying to
accomplish.

I need to code to actually execute on ServerB just as if I were sitting on
ServerB and executing the vbs code.
"jenny mabe" <ne**@rabidduck.com> wrote in message
news:opr3ym9906qafk40@localhost...
我有一台服务器(ServerA)Win2003 IIS 6运行网页
我有一台服务器( ServerB)Win2003 Active Directory域控制器
我不想放IIS.
我需要用户进入ServerA网页并输入数据,并且一旦执行
提交按钮,我希望脚本获取数据并在ServerB服务器(AD DC)上执行它。
I have a server (ServerA) Win2003 IIS 6 running a web page
I have a server (ServerB) Win2003 Active Directory Domain Controller
which I do not want to put IIS.
I need a user to go to the ServerA web page and enter data, and once the
submit button is executed, I want the script to take the data and
execute it on the ServerB server (AD DC).




您是否能够创建一个虚拟目录ServerA上的IIS将

指向ServerB上的文件夹?如果你能做到这一点,你应该能够在表格中指定

表格。


Jenny



Are you able to create a virtual directory in IIS on ServerA that points
to a folder on ServerB? If you can do that, you should be able to point
the form to submit to a page there.

Jenny


请记住,脚本将在serverA的上下文中运行,而不是
serverB。


-

Mark Schupp

开发负责人

诚信电子学习
www.ielearning.com

" jenny mabe" <是ne ** @ rabidduck.com>写在消息中

新闻:opr3ym9906qafk40 @ localhost ...
Just keep in mind that the script will run in the context of serverA, not
serverB.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"jenny mabe" <ne**@rabidduck.com> wrote in message
news:opr3ym9906qafk40@localhost...
我有一台服务器(ServerA)Win2003 IIS 6运行网页
我有一台服务器( ServerB)Win2003 Active Directory域控制器
我不想放IIS.
我需要用户进入ServerA网页并输入数据,并且一旦执行
提交按钮,我希望脚本获取数据并在ServerB服务器(AD DC)上执行它。
I have a server (ServerA) Win2003 IIS 6 running a web page
I have a server (ServerB) Win2003 Active Directory Domain Controller
which I do not want to put IIS.
I need a user to go to the ServerA web page and enter data, and once the
submit button is executed, I want the script to take the data and
execute it on the ServerB server (AD DC).




您是否能够创建一个虚拟目录ServerA上的IIS将

指向ServerB上的文件夹?如果你能做到这一点,你应该能够在表格中指定

表格。


Jenny



Are you able to create a virtual directory in IIS on ServerA that points
to a folder on ServerB? If you can do that, you should be able to point
the form to submit to a page there.

Jenny


这篇关于在另一台NON-IIS服务器上运行脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆