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

April 28, 2011

SMS Alert

Filed under: powershell, Sharepoint — Peter Kruisman @ 8:06 pm

With the use of a SMS testaccount from Red Oxygen testing the Text Message settings in Sharepoint2010 Central Administration resulted in a long wait


Waiting….

At first configuring this service seemed trivial but this wait without resulting in an error message or directions of possible causes was somewhat frustrating.  
After reading the instructions  in this Technet  article I concluded that the long wait was the result of a missing certificate. I continued the configuration with importing the certificate  of the  Office Mobile Service (OMS)  page from Red Oxygen.


Service page

After this Install of the certificate (Go Daddy ) start the MMC shell. Add/ Open the certificate snapin

Export the imported certificate authority to for example C:\sms.cer

Use this Powershell script to register this trusted root authority
$cert = Get-PfxCertificate c:\sms.cer
New-SPTrustedRootAuthority -Name GoDaddy -Certificate $cert

After this the SMS service is functional

Setting the alert

Result

Blog at WordPress.com.