Out Of The Box Sharepoint (?)

April 29, 2011

Powershell, parameter suggestions

Filed under: powershell, Sharepoint — Peter Kruisman @ 8:47 am

Configuring Sharepoint 2010 can be done using the Central Administration and / OR using powershell.

 For example we can use the  Central Administration for configuring the data collection of events. This is done in “Configuring web analytics and health data collection” by selecting an event.


1. Central administration, events that can be logged

Using Central Administration you cannot change the default retentionperiod, which is 30 days. It can be done using one of the many sharepoint powershell cmdlet’s (.Net framework instances) and accompanying parameters. For configuring the retention period the SPUsageDefinition instance can be used. Powershell can provide the accompanying parameters and examples using the Get-Help and -Full switches like:

2. Get-Help and -Full switches

From the provided information I conclude you can use the event names in Central Administration(see the printscreen 1. ) for the -Id parameter

Powershell script to alter the retention period:
Set-

3. Setting the retention period for an event

Get-

4. Getting the retention period for an event

Examining cmdlet parameters

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: