Enable-SASWebParts Function
Activates the SAS Web Part features in a site collection.
The SAS Web Parts must already be installed on the server.
Syntax
Enable-SASWebParts -SiteUrl http://mysite.com
-ServiceUrl
“https://myinternalsite.com/SASWebParts/Service.svc”
-ServerName server-name <-Port port-number> -SASTrust
“SASTrust@saspw”
<-Password password> <-ProfileName
“default-profile”>
<-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
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
modify the current default profile. If you specify the -Upgrade
parameter
and the current default profile exists, the profile is not modified.
If you do not specify the -Upgrade
parameter
and the current default profile exists, the profile could be modified
during the upgrade process.
Example
Enable-SASWebParts -SiteUrl 'http://spsitecol.com'
-ServiceUrl 'https://serviceaddress.com/SASWebPartsService/Service.svc'
-ServerName 'sasmdserver' -Port 8561 -ImpersonationId 'sastrust@saspw'