Get-SPSiteProperties


posted by Richard Giles
10-06-2008

Downloads: 387
File size: 978 B
Views: 1,141

Embed
Get-SPSiteProperties
  1. ## ===================================================================== 
  2. ## Title       : Get-SPSiteProperties 
  3. ## Description : Retrieve site properties from Sharepoint 
  4. ## Author      : Idera 
  5. ## Date        : 8/5/2008 
  6. ## Input       : -siteURL -verbose -debug     
  7. ## Output      :  
  8. ## Usage            : PS> . Get-SPSiteProperties -siteURL http://localhost -v -d 
  9. ## Notes            : 
  10. ## Tag            : PowerShell, Sharepoint 
  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-SPSiteProperties -siteURL $siteURL 
  22.  
  23. function Get-SPSiteProperties($siteURL
  24.     [System.Reflection.Assembly]::LoadWithPartialName(�Microsoft.SharePoint�) 
  25.     $mysite = New-Object Microsoft.Sharepoint.SPSite($siteURL
  26.     $mysite | Get-Member -memberType property 
  27.  
  28. main 

Retrieve site properties 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.