如何在交换开发中使用powershell [英] how to use powershell in exchange development

查看:74
本文介绍了如何在交换开发中使用powershell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


这几天,我看到了一些powershell文章。然后我知道powershell可以在.net中使用并且非常容易管理开发。但我有一些问题如下。我希望有人可以帮助我。


1。如果网络应用程序和交换服务器不在同一台计算机上。如何在Web应用程序中使用powershell来管理交换。


2。 powershell有一些不同的功能。例如。它在Exchange命令控制台中具有Exchange管理命令。它在powershell等中有AD管理,但我不知道如何翻译或包含powershell应用程序中的不同功能。


3。 powershell拥有强大的指挥资源。但我不知道如何通过系统任务自动运行powershell命令和Exchange powershell。



解决方案

您好,


答案:


  1. 您可以使用远程PowerShell从任何服务器运行任何交换命令
  2. 您只需要导入模块,如果您有一个具有AD和Exchange权限的用户,那么您可以运行您想要的任何命令
  3. 您可以创建ps1文件包含命令登录到exchange / AD

连接到Exchange:


https://docs.microsoft.com/ EN-US /的powershell /交换/交换服务器/连接到交换服务器 - 使用 - 远程的powershell?视图=交换-PS


 

these days, i had see some powershell articles. then i know powershell can use in .net and very easy to manage development. but i have some question as below. i hope someone can help me.

1. if web application and exchange server are not in the same computer. how to use the powershell in the web application  to manage exchange.

2. powershell had some defferent function. eg. it have Exchange manage command in the Exchange command console. it have the AD management in the powershell etc. but i don't know how the translate or include the different functions in the powershell application.

3. powershell had the strong command resourse. but i don't know how to auto run the powershell command and Exchange powershell though the system task. 

 

 

解决方案

Hello,

Answers:

  1. Ye you can use remote powershell to run any exchange command from any server
  2. You need just to import the module, if u have a user with a permission on AD and Exchange together, then you can run whatever command you want
  3. u can create ps1 file contains the command to login to exchange/AD

Connect to Exchange :

https://docs.microsoft.com/en-us/powershell/exchange/exchange-server/connect-to-exchange-servers-using-remote-powershell?view=exchange-ps


这篇关于如何在交换开发中使用powershell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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