IT tutorials
 
Technology
 

PowerShell for SharePoint 2013 : Work Management Service (part 1) - Get a Specific Work Management Service Application Instance , Configure the Refresh Threshold

1/13/2014 12:27:36 AM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

1. Get the Identity of the Work Management Service Application


Scenario/Problem: You need to find the identity of the Work Management Service application.


Solution: Use the Get-SPServiceApplication cmdlet.

To get a specific instance of a Work Management Service application, you need the identity of the service application. No cmdlet exists for getting a Work Management Service application, so you need to use the Get-SPServiceApplication cmdlet to display all service applications and find the Work Management Service. Listing 1 shows the command line without any parameters.

Listing 1. Displaying the List of Service Applications


Get-SPServiceApplication

2. Get a Specific Work Management Service Application Instance


Scenario/Problem: You need to obtain a metadata service application instance reference.


Solution: Use the Get-SPServiceApplication cmdlet to assign a variable the results using the -Identity parameter.

Providing the identity of the Work Management Service Application instance with the Get-SPServiceApplication cmdlet retrieves a specific Work Management Service instance. Use this to assign the results to an object for use in other cmdlets, as shown in Listing 2.

Listing 2. Assigning a Variable to a Specific Work Management Service Application


$workMgmt = Get-SPServiceApplication
-Identity 61295eb2-c947-4bab-9333-3adee98d9125


Instead of the GUID, you can use the display name. The default display name for the Work Management Service application is Work Management Service. Because this is a long name, when displaying the service applications, the full text is cut off.

3. Configure the Refresh Threshold


Scenario/Problem: You would like to configure the minimum time between provider refreshes within the Work Management Service application.


Solution: Use the Set-SPWorkManagementServiceApplication cmdlet with the -MinimumTimeBetweenProviderRefreshes parameter.

You can use the -MinimumTimeBetweenProviderRefreshes cmdlet to configure the minimum amount of time between cache updates. This is on a per-user basis. The service application waits until the time specified before it processes new refresh requests.

The data type of this parameter is System.TimeSpan; therefore, creating a new time span variable to provide is recommended (see Listing 3).

Listing 3. Configuring the Refresh Setting


$refreshTimeSpan = New-TimeSpan -Minutes 15
Set-SPWorkManagementServiceApplication
-Identity "Work Management Service"
-MinimumTimeBetweenProviderRefreshes $refreshTimeSpan


The Identity parameter also can be a specific Work Management Service application instance using the Get-SPServiceApplication cmdlet, as explained in the previous section.

 
Others
 
- Sharepoint 2013 : Creating List Views - Specify How Items in a View Are Sorted
- Sharepoint 2013 : Creating List Views - Specify Columns for a View to Display, Specify the Order of the Columns in a View
- Sharepoint 2013 : Create a Personal or Public View for a List or Library (part 3) - Create a Gantt View
- Sharepoint 2013 : Create a Personal or Public View for a List or Library (part 2) - Create a Calendar View
- Sharepoint 2013 : Create a Personal or Public View for a List or Library (part 1) - Create a Standard View
- System Center Configuration Manager 2007 : Distributing Packages - Advertised Programs Client Agent, Troubleshooting ConfigMgr Software Distribution Issues
- System Center Configuration Manager 2007 : Using Distribution Points (part 3) - Branch Distribution Points
- System Center Configuration Manager 2007 : Using Distribution Points (part 2) - Protected Distribution Points
- System Center Configuration Manager 2007 : Using Distribution Points (part 1) - Standard Distribution Points
- Windows Server 2012 : Using Event Viewer for Logging and Debugging (part 5) - Conducting Additional Event Viewer Management Tasks - Customizing the Event Log
 
 
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
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us