从C#管理Exchange的问题 [英] Problems managing Exchange from C#

查看:68
本文介绍了从C#管理Exchange的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道在没有使用PowerShell的情况下是否有任何方法可以做到这一点?我的问题基本上是这样的:1)需要一些时间让shell运行然后执行命令
2)如果我这样做1)它问我是否真的确定(不,我只是告诉你要删除它们以获得乐趣:p)这会破坏我的程序...

如果不能直接从C#完成,有没有办法格式化PowerShell查询以自动同意提示? (是的,我知道......这不是一个PowerShell论坛)

干杯!

解决方案

你想用什么命令? ?你的代码是什么样的?

一般来说你需要在例如

Parameters.Add("确认" false );

干杯
Glen

Anyone know if there are any ways of doing this without using powershell? My problems are basically that
1) it takes some time to get the shell running and then execute the command
2) if I do 1) it asks me if I'm really sure (no, I just told you to remove them for fun :p ) which breaks my program...

If this cannot be done directly from C#, is there a way to format PowerShell queries to automatically agree to prompts? (Yes, I know...this isn't a powershell forum)

Cheers!

解决方案

What commands are you trying to use ? what does your code look like ?

Generally you would need to add a confirm in eg

Parameters.Add("Confirm", false);

Cheers
Glen


这篇关于从C#管理Exchange的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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