Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

SharePoint 2010 PerformancePoint Services : Using Windows PowerShell and Cmdlets (part 2) - Cmdlet Samples

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
5/20/2011 11:26:11 AM

Cmdlet Samples

This section includes some useful scenarios that can be automated through cmdlets.

Note

Some of these samples use pipelining to send their output into other cmdlets. This is useful especially for properties such as GUIDs or SPCmdletObjectId parameters that are not easy to discover or type.

Pipelining is a concept from PowerShell. With pipelining, the output of one command can be directly sent to another command. Typically, this is seen when there is a Get command that retrieves a particular object and pipes the object to a Set command that sets a property on the object.


Creating a New Service Application

This cmdlet creates a new PPS service application with the specified name and using an already registered SharePoint managed account, such as the following:

New-SPPerformancePointServiceApplication -Name "MyServiceApplication"
-ApplicationPool (New-SPIisWebServiceApplicationPool "SharePoint Hosted Services"
-account "domain\SharePointManagedAccount")


Starting the Shared Service

This cmdlet starts the PPS shared service. You can run this cmdlet on any application server in the farm on which you would like to have this service started:

Get-SPServiceInstance | Where{$_.TypeName -eq "PerformancePoint Service"} |
Start-SPServiceInstance Creating a New Web Application

This cmdlet creates a new web application at port 81 with the specified name, such as the following:

New-SPWebApplication -Name "MyWebApplication" -Port 81

Create a New Site Collection

This cmdlet creates a new site collection at the root of the web application at port 81, such as the following:

New-SPSite http://localhost:81 -owneralias domain\user

Changing PPS Service Settings

The cmdlets in this section change the Unattended Service Account. This proves especially useful for updating the unattended service account password after it has been changed.

This cmdlet displays a prompt for credentials and change the Unattended Service Account on the specified service application:

Set-SPPerformancePointSecureDataValues -ServiceApplication "MyServiceApplication"
-DataSourceUnattendedServiceAccount (Get-credential)


This cmdlet has the credentials for the Unattended Service Account stored in plain text in the command. By omitting the –name parameter from the Get-SPPerformancePointServiceApplication command, it executes on the default service application:

Get-SPPerformancePointServiceApplication |  Set-SPPerformancePointSecureDataValues
-DataSourceUnattendedServiceAccount (new-object
System.Management.Automation.PSCredential -argumentlist ("domain\serviceaccount"),
(ConvertTo-SecureString "password" -asPlainText -force))


Adding a Trusted Data Source Location

This cmdlet switches the trusted data source locations from trusting all locations to trusting specific locations:

Get-SPerformancePointMonitoringServiceApplication |
Set-SPPerformancePointServiceApplication -TrustedDataSourceLocationsRestricted 1


Next, this cmdlet adds a single document library trusted location for data sources for the default service application:

Get-SPPerformancePointServiceApplication | New-
SPPerformancePointServiceApplicationTrustedLocation -url
http://SharePointServer/Data%20Source -Type DocumentLibrary -TrustedLocation Data
Source


Retrieving All Configured Trusted Locations

This cmdlet retrieves a collection of all configured trusted locations for the default service application:

Get-SPerformancePointMonitoringServiceApplication |
Get-SPPerformancePointServiceApplicationTrustedLocation
Other -----------------
- BizTalk 2010 Recipes : Administration and Operations - Restarting the BizTalk Host Instance(s)
- BizTalk 2010 Recipes : Administration and Operations - Tracking Messages
- BizTalk 2010 Recipes : Administration and Operations - Debugging Orchestrations
- Monitoring Exchange Server 2010 : Debugging Network Connectivity (part 4) - Using Exchange Server ActiveSync
- Monitoring Exchange Server 2010 : Debugging Network Connectivity (part 3)
- Monitoring Exchange Server 2010 : Debugging Network Connectivity (part 2)
- Monitoring Exchange Server 2010 : Debugging Network Connectivity (part 1) - Using Telnet to Test SMTP Communication
- Backing Up Windows Server 2008 R2 Role Services (part 3)
- Backing Up Windows Server 2008 R2 Role Services (part 2) - Backing Up Active Directory & Active Directory Recycle Bin
- Backing Up Windows Server 2008 R2 Role Services (part 1) - Backing Up the System State & Excluding Items from Backup
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server