The following are examples of PowerShell scripts that utilize various StoragePoint cmdlets. These scripts should serve as templates for many common scenarios and can be customized as needed.
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"
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"
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"
© ALL RIGHTS RESERVED. 이용 약관 개인정보 보호정책 Cookie Preference Center