Install-SASWebParts Function

Installs the SAS Content Viewer Web Part and the SAS Central Web Part on the specified site collection and initiates the profile list with the default site profile.

Syntax

Install-SASWebParts -SiteURL http://mysite.com <-WebApp application-name>
-ServiceURL “https://myinternalsite.com/SASWebParts/Service.svc
-ServerName server-name<-Port port-number> -SASTrust “SASTrust@saspw
<-Password password> <-ProfileName profile-name>
<-PackageFile ‘path-to-SASWebParts.wsp’><-ImpersonationID user-ID><-Upgrade>

Details

Required Arguments

SiteURL
the URL for the site collection that hosts the list of profiles.
ServiceURL
the URL for the SAS Web Parts Service.
ServerName
the network name of the SAS Metadata Server.
SASTrust
the ID of the SAS Trusted User for the SAS Metadata Server.

Optional Arguments

WebApp
the SharePoint Web application that is used to uninstall the SAS Web Parts solution. The default is -AllWebApplications.
Port
the port number of the SAS Metadata Server. By default, the port number is 8561.
Password
the password for the SAS Trusted User. If you do not specify this value, you are prompted for it at run time. You can specify the password in the sas002 format. The password is encrypted in the list of profiles.
ProfileName
the name for the initial default profile. By default, this name is Default Site Profile.
PackageFile
the path to the SASWebParts.wsp file. By default, this path is .\SASWebParts.wsp.
ImpersonationID
the ID for all users when connecting to the metadata. If you do not specify the ImpersonationID, each user connects with their user ID for Microsoft SharePoint.
Upgrade
specifies whether to uninstall the current release of the SAS Web Parts on that machine before installing the latest release. If you specify the -Upgrade parameter, any previous release of the SAS Web Parts is uninstalled.

Example

Install-SASWebParts -SiteUrl 'http://spsitecol.com'
-ServiceUrl 'https://serviceaddress.com/SASWebPartsService/Service.svc'
-ServerName 'sasmdserver' -Port 8561 -ImpersonationId 'sastrust@saspw'
-Password 'sas002[stpw]'