Tchater maintenant avec le support
Tchattez avec un ingénieur du support

StoragePoint 6.0 - PowerShell and API Reference Guide

PowerShell Guide
StoragePoint PowerShell Overview Getting Started Profile and Endpoint Management Cmdlets Timer Job Scheduling Cmdlets BLOB Information and Migration Cmdlets Miscellaneous SharePoint Utility Cmdlets PowerShell Script Examples StoragePoint API Reference
About Us

Creating a Site Collection Profile with No Encryption or Compression

This example creates a basic profile for a site collection. It uses the included FileSystem adapter and does not enable compression and encryption support. It creates a new endpoint which is then added to the profile.  

 

 $siteid = Get-SiteCollectionId –s "http://sharepoint/site"

 

Add-Endpoint –epn "NAS Endpoint 1" –adn "FileSystem" –conn "path=\\NAS\FILESTORE"        

 

Add-Profile –pn "Site Collection 1 Profile" –ptype SiteCollection –sid $siteid –eid "NAS Endpoint 1"

Creating a Content Database Profile with Encryption and Compression

This example creates a basic profile with a content database scope. Also note that the endpoint is set to enable compression and encryption.

$cid = Get-ContentDbId –s "http://sharepoint/site"

Add-Endpoint –epn "NAS Endpoint 1" –adn "FileSystem" –conn "path=\\NAS\FILESTORE" –UseCompression –UseEncryption –EncryptionPassphrase "anypassword"

Add-Profile –pn "Content Database Profile" –ptype ContentDb –sid $cid –eid "NAS Endpoint 1"

Creating a Content Database Profile Using RBS

This example creates a basic content database profile using the RBS interface. RBS requires SQL Server 2008 Enterprise Edition and the profile creation will error out if trying to activate an RBS profile on any previous edition of SQL Server.

$cid = Get-ContentDbId –s "http://sharepoint/site"

Add-Endpoint –epn "NAS Endpoint 1" –adn "FileSystem" –conn "path=\\NAS\FILESTORE" –UseCompression –UseEncryption –EncryptionPassphrase "anypassword"

Add-Profile –pn "Content Db Profile" –ptype ContentDb –sid $cid –UseRBS –eid "NAS Endpoint 1"

Creating Multiple Profiles Using the Same Endpoint

This example iterates all of the site collections in a web application and creates a profile for each one. Each profile uses the same endpoint but specifies a different Start Folder. Using different Start Folder values will keep the content separated by profile even though the same endpoint is being used.

# Add the common endpoint

Add-Endpoint –epn "Common Endpoint 1" –adn "FileSystem" –conn "path=\\NAS\COMMON"

 

# Get web app - there are many other ways to do this.

$site = New-Object Microsoft.SharePoint.SPSite("http://spsite")

$webapp = $site.WebApplication

 

# Iterate through all site collections in web app

foreach($sc in $webapp.Sites)

{

 $startfolder = $sc.RootWeb.Title

 $profilename = $startfolder + " Profile"

 Write-Output "Creating profile for: $startfolder"

 

 # Create profile

Add-Profile –pn $profilename –ptype SiteCollection –sid $sc.ID.ToString() –eid "Common Endpoint 1" -EndpointStartFolder $startfolder

 

 # Cleanup

 $sc.Dispose()

}

 

# Cleanup

$site.Dispose()

Documents connexes

The document was helpful.

Sélectionner une évaluation

I easily found the information I needed.

Sélectionner une évaluation