当前位置: 代码迷 >> SharePoint >> SharePoint 获取所有包含“sp”字符串的powershell命令的帮助信息,并开展分组显示
  详细解决方案

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

热度:284   发布时间:2016-05-02 06:54:17.0
SharePoint 获取所有包含“sp”字符串的powershell命令的帮助信息,并进行分组显示
 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 cmdlet10 11 #Get all the cmdlets grouped by verb12 #Get-Command “*sp*” –CommandType cmdlet | Group-Object –Property Verb 13 14 #Get all the cmdlets grouped by verb in tables with name and definition15 Get-Command “*sp*” –CommandType cmdlet | Format-Table –Property Name,Definition –GroupBy Verb

结果:

 

  相关解决方案