码迷,mamicode.com
首页 > 系统相关 > 详细

SharePoint 获取所有包含“sp”字符串的powershell命令的帮助信息,并进行分组显示

时间:2015-05-29 13:55:06      阅读:279      评论:0      收藏:0      [点我收藏+]

标签:

 1 $snapin = Get-PSSnapin | where-object { $_.Name -eq ‘Microsoft.SharePoint.PowerShell‘ }
 2 if ($snapin -eq $null){
 3  write-host "Loading SharePoint PowerShell Snapin..." -foregroundcolor Blue
 4  add-pssnapin "Microsoft.SharePoint.PowerShell"
 5  write-host "SharePoint PowerShell Snapin loaded." -foregroundcolor Green
 6 }
 7 
 8 #Get all SharePoint cmdlets
 9 #Get-Command “*sp*” –CommandType cmdlet
10 
11 #Get all the cmdlets grouped by verb
12 #Get-Command “*sp*” –CommandType cmdlet | Group-Object –Property Verb 
13 
14 #Get all the cmdlets grouped by verb in tables with name and definition
15 Get-Command “*sp*” –CommandType cmdlet | Format-Table –Property Name,Definition –GroupBy Verb

结果:

技术分享

 

SharePoint 获取所有包含“sp”字符串的powershell命令的帮助信息,并进行分组显示

标签:

原文地址:http://www.cnblogs.com/huangjianwu/p/4538250.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!