在远程Windows计算机中执行命令 [英] Execute command in remote windows computer

查看:121
本文介绍了在远程Windows计算机中执行命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想在远程计算机上执行命令说ipconfig所以请你知道我们是否需要在远程计算机中配置任何东西.y



此外,远程计算机还必须安装PowerShell。

Hi

I want to execute a command say ipconfig in remote computer so could you please let me know whether we need to configure anything in remote computer .y

Also is it necessary for the remote computer to have powershell installed in it.

推荐答案

我是从这里开始尝试,首先,定义在通过C#在远程计算机上执行PowerShell脚本时需要解决的问题:



CodeProject文章:启用C#中的远程PowerShell执行2014年6月3日:[ ^ ]...介绍如何在本地或远程使用C#代码执行PowerShell脚本。



而且,我建议你也研究这些:



C#中的PowerShell模块,第1部分:基础知识2014年3月18日:[ ^ ]在本系列中,我们将介绍建筑的基础知识使用C#的Windows PowerShell二进制模块。



CodeProject文章:如何从C#运行PowerShell脚本:2007年3月31日[ ^ ]关于嵌入和/或文章的文章从C#程序启动PowerShell脚本。
I'd start here to try and, first, define the issues you will need to address in executing a PowerShell script on a "remote" computer via C#:

CodeProject article: Enable Remote PowerShell Execution in C# Jun 3, 2014: [^] "... describes how to execute PowerShell scripts locally or remotely in C# code."

And, I suggest you also study these:

PowerShell module in C#, Part 1: The basics Mar 18, 2014: [^] "In this series we will cover the basics of building a Windows PowerShell binary module using C#."

CodeProject article: How to run PowerShell scripts from C#: Mar 31, 2007 [^] "An article on embedding and/or launching PowerShell scripts from a C# program."


这篇关于在远程Windows计算机中执行命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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