This example creates a profile that will select endpoints asynchronously. This allows the profile to support enhanced filters including file extension/type and multiple additional scope options including web, list and content type. This sample sets up a filter to externalize only Microsoft Word and Excel documents.
$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 SelectEndpointAsync eid "NAS Endpoint 1" EndpointFileTypeOp 1 EndpointFileTypes "DOCX,DOC,XLS,XLSX"
This example displays all endpoints in the system whose name contains the word Test. This illustrates the use of WHERE filters in PowerShell as well as use of StoragePoint API object properties (EndpointAPI.Name and .Connection in this case).
$Endpoints = Get-AllEndpoints | Where-Object {$_.Name -Like "*Test*"}
ForEach ($ep in $Endpoints) {$ep.Name + " : " + $ep.Connection}
This example displays all BLOB files associated with a given document in SharePoint. This includes versions and drafts/checked out versions, etc.
$blobs = Get-BLOB doc "http://spsite/documents/123.tif"
ForEach ($b in $blobs) {$b.Endpoint.Name + " : " + $b.FilePath}
The following scripts can be used to provision the service and app catalog required for enabling the StoragePoint SPFX Site Collection feature. This feature is required for full StoragePoint functionality in the SharePoint 2019 Modern User Interface.
- Provide and configure App Management service application:
$accountName = "<domain\ID>"
$svcAppPoolName = "AppManagementServiceApplicationPool"
$svcAppName = "App Management Service Application"
$dbServer = "<server>"
$dbName = "AppManagement_" + [System.Guid]::NewGuid()
$svcAppProxyName = "App Management Server Application Proxy"
$account = Get-SPManagedAccount $accountName
$appPool = New-SPServiceApplicationPool -Name $svcAppPoolName -Account $account
$svcApp = New-SPAppManagementServiceApplication -Name $svcAppName -DatabaseServer $dbServer -DatabaseName $dbName -ApplicationPool $appPool
New-SPAppManagementServiceApplicationProxy -Name $svcAppProxyName -UseDefaultProxyGroup -ServiceApplication $svcApp
- Provide and configure AppCatalog site collection (for specific web application):
$appCatalogUrl = '<URL>'
New-SPSite -Url $appCatalogUrl -OwnerAlias "<domain\ID>" -Name "App Catalog" -Template "APPCATALOG#0"
Update-SPAppCatalogConfiguration -Site $appCatalogUrl -Force:$true -SkipWebTemplateChecking:$true
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Conditions d’utilisation Confidentialité Cookie Preference Center