Get-SPSiteMethods


posted by Richard Giles
10-06-2008

Downloads: 374
File size: 938 B
Views: 852

Embed
Get-SPSiteMethods
  1. ## ===================================================================== 
  2. ## Title       : Get-SPSiteMembers 
  3. ## Description : Retrieve site methods from Sharepoint 
  4. ## Author      : Idera 
  5. ## Date        : 8/5/2008 
  6. ## Input       : -siteURL -verbose -debug     
  7. ## Output      :  
  8. ## Usage            : PS> . Get-SPSiteMembers -siteURL http://localhost -v -d 
  9. ## Notes            : 
  10. ## Tag            : 
  11. ## ===================================================================== 
  12.  
  13. param 
  14.       [string]$siteURL = "http://localhost"
  15.     [switch]$verbose
  16.     [switch]$debug 
  17.  
  18. function main() 
  19.     if ($verbose) {$VerbosePreference = "Continue"
  20.     if ($debug) {$DebugPreference = "Continue"
  21.     Get-SPSiteMembers -siteURL $siteURL 
  22.  
  23. function Get-SPSiteMembers($siteURL
  24.     [System.Reflection.Assembly]::LoadWithPartialName(�Microsoft.SharePoint�) 
  25.     $mysite = New-Object Microsoft.Sharepoint.SPSite($siteURL
  26.     $mysite | Get-Member -memberType method 
  27.  
  28. main 
Filed under: ,

Retrieve site methods from Sharepoint.

Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.