简体   繁体   English

在Powershell脚本中调用Powershell cmdlet

[英]Calling powershell cmdlets in powershell script

How do i use powershell cmdlets in a ps script?? 如何在PS脚本中使用Powershell cmdlet? I need to use Get-MailboxStatistics cmdlet to retrieve mailbox statistics from Exchange server 2013 using a ps script 我需要使用Get-MailboxStatistics cmdlet使用ps脚本从Exchange Server 2013中检索邮箱统计信息

how can i invoke the cmdlet? 我如何调用该cmdlet?

I suggest using PowerShell's own help with: 我建议使用PowerShell自身的帮助:

Get-Help Get-MailboxStatistics -Full

Then you can investigate parameters such as -Server -Identity. 然后,您可以研究参数-Server -Identity。

The -Full parameter will give you examples. -Full参数将为您提供示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM