Posts belonging to Category stsadm



Windows PowerShell Command Builder For SharePoint 2010

 Windows PowerShell Command Builder For SharePoint 2010

The Windows PowerShell Command Builder for SharePoint 2010 Products and Office 365 is a Silverlight application that enables IT pros and power users to visually assemble commands in the browser and then take those commands to their respective products.

Click to open the Windows PowerShell Command Builder in a new browser window.

For additional information, see the Getting Started Guide.

linkedin Windows PowerShell Command Builder For SharePoint 2010digg Windows PowerShell Command Builder For SharePoint 2010share save 120 16 Windows PowerShell Command Builder For SharePoint 2010

How To Delete Content Deployment Timer Job Records

In order to delete the many Content Deployment Timer Job records that are created during the automated content deployment process follow the steps below:

  1. Run the following SQL statement on your SharePoint Config Database to retrieve the unique IDs (GUIDs) of all the Content Deployment Timer Jobs:
     select * from Sharepoint_Config.dbo.[Objects] REM where [Name] like 'ContentDeploymentJobDefinition%'
  2. Then, use those unique IDs (GUIDs) to build a batch file to run the following STSADM command:
    STSADM -o deleteconfigurationobject -id "<object id>"
linkedin How To Delete Content Deployment Timer Job Recordsdigg How To Delete Content Deployment Timer Job Recordsshare save 120 16 How To Delete Content Deployment Timer Job Records

SharePoint MOSS 2007 Content Deployment Timed Out Errors

After applying the latest Windows updates for Windows Server 2003, we received many “Timed Out” errors when trying to run content deployment jobs.  The main culprit of there errors seemed to be the OWSTIMER.EXE process and it taking 100% of the CPU… yeah, I know “it’s a pain!”

Anyway, one of the things I did to try and get the issue resolved was to clear out the years of Content Deployment objects that had built up on the target server.

This was a 2 step process:

  1. Find all the Content Deployment Job objects in the config database and get their IDs

    select * from Sharepoint_Config.dbo.[Objects]  where [Name] like 'ContentDeploymentJobDefinition%'

  2. Run an stsadm command to delete the object based on its ID
    STSADM -o deleteconfigurationobject -id "<object id>"
  3. I was able to do some text manipulating and get a really long .bat file that ran for a really long time. When it was done, all the Content Deployment Job objects were gone.

    However, it did not seem to fix my issue with OWSTIMER.EXE taking 100% of the CPU.

    The solution for that seemed to be narrowing down which Content Deployment Job was causing the issue by disabling them all and then re-enabling them one at a time and deleting the target site collection and doing a full deployment.

linkedin SharePoint MOSS 2007 Content Deployment Timed Out Errorsdigg SharePoint MOSS 2007 Content Deployment Timed Out Errorsshare save 120 16 SharePoint MOSS 2007 Content Deployment Timed Out Errors

How To Delete An SSP (Shared Services Provider) In Sharepoint

Sharepoint Shared Services Providers (SSPs) can be forced to delete using the following stsadm command:

[code lang="dos"]stsadm -o deletessp -title "SSPNAME" -force[/code]

 

If you also want to delete the SSP database also use the following stsadm command:

[code lang="dos"]stsadm -o deletessp -title "SSPNAME" -deletedatabases –force[/code]

linkedin How To Delete An SSP (Shared Services Provider) In Sharepointdigg How To Delete An SSP (Shared Services Provider) In Sharepointshare save 120 16 How To Delete An SSP (Shared Services Provider) In Sharepoint

Enabling Workflow With Email Enabled Lists

To enable workflow on lists with incoming email enabled you will need to run the following stsadm command:

stsadm -o setproperty <br />-pn declarativeworkflowautostartonemailenabled -pv true

via http://support.microsoft.com/kb/953289/

***if you are not fully up to date you will need the infrastructure updates

linkedin Enabling Workflow With Email Enabled Listsdigg Enabling Workflow With Email Enabled Listsshare save 120 16 Enabling Workflow With Email Enabled Lists

Change Central Admin Port

Change the Central Administration Web site port number

Use this procedure to change the port number of the Central Administration Web site.

Change the Central Administration Web site port number by using the Stsadm command-line tool
  1. On the drive where SharePoint Products and Technologies is installed, open a command-line window and type the following command:

    cd %CommonProgramFiles%Microsoft SharedWeb Server Extensions12bin

  2. To determine the current port number for the Central Administration Web site, at the command prompt, type the following command, and then press ENTER:

    stsadm -o getadminport

    For more information, see Getadminport.

  3. To change the port number for the Central Administration Web site, use the following command, including any options that apply to your environment:

    stsadm -o setadminport -port  [-ssl] [-admapcreatenew] [-admapidname] 

    For more information, see Setadminport.

Note: You can only change the port number for the Central Administration Web site by using the Stsadm command-line tool.

via Microsoft Technet

linkedin Change Central Admin Portdigg Change Central Admin Portshare save 120 16 Change Central Admin Port

Unable To Enable Office SharePoint Server Publishing

Whenever I create a new MOSS site this is going to use the Office SharePoint Server Publishing feature I get an “Access Denied” error when I try enable it.

So, I am finally posting the solution:
[code lang="dos"]stsadm -o activatefeature -name PublishingResources -url [/code]
*Be sure to include the “http://” in the <site>

Hope this helps!

linkedin Unable To Enable Office SharePoint Server Publishingdigg Unable To Enable Office SharePoint Server Publishingshare save 120 16 Unable To Enable Office SharePoint Server Publishing

SharePoint Alerts Not Working

One of our developers reported to me that the SharePoint Alerts were not sending emails.  The initial notification that the alert was setup was sent but not the alerts themselves.

I was able to find a great article by a MS MVP named Susan Bradley called How to Troubleshoot Alerts in WSS 3.0 / MOSS.

In going through all the steps, I was able to determine that my issue was caused by the permissions setup on the list.

Thanks, Susan!

Below is the contents of the article:

Question:  How to Troubleshoot Alerts in WSS 3.0 / MOSS
Answer:

The most common issue in alert is the user will get the initial email, but will not get when changes are made to the list where he configured the alert.  Check the following settings in order and ensure that it is correct.

1. Is it an upgrade from V2 to V3?  If yes, check the upgrade section at the bottom of this page.

2. If this is a new install of V3 (WSS or MOSS), then do the following

a. Create a new web app and see if the alerts work there.  If yes, you can move the content db of the non-working site to this one. If customer is not ready to do that, then try the following.

b. Open the command prompt and go to the 12Bin folder. Run this command and see whether alerts are enabled for the web application.  

Stsadm.exe-o getproperty -url http://problemsite  -pn alerts-enabled

The expected output is <Property Exist="Yes" Value="yes" />.  If you don’t get this, run the following command to change the value.

stsadm.exe -o setproperty -pn alerts-enabled -pv "true" -url http://problemsite

If the property is Yes and still the alerts are not sent, toggle the property from Yes to NO

and then from No to Yes.  This may delete all the existing alerts and warn the customer

about this.

c. Check the property job-immediate-alerts schedule through command prompt.  Run this command from the 12bin folder.  If we have issues with Scheduled alerts like daily or weekly, then check the property job-daily-alerts and job-weekly-alerts.

stsadm.exe -o getproperty -url http://ProblemSite  -pn job-immediate-alerts

The expected output is

<Property Exist="Yes" Value="every 5 minutes between 0 and 59"/>.  If you don’t get this, run the following command to change the value.

stsadm.exe -o setproperty -pn job-immediate-alerts -pv "every 5 minutes

between 0 and 59" -url http://ProblemSite

d. Confirm the above step through the UI. Central adminàOperationsàTimer Job Definitions and ensure that a job named Immediate Alerts is present for the web application.

e. Configure the alert for a user in a list.  Instead of typing the domain name user name, type the email address of the user and see if he gets initial email.  Then make a change to the list and see whether he gets the mail related to the change.

f. If he gets the alert as expected, then create a new alert and this time select the user from the people picker or type the domain nameuser name. 

g. If the alert is not working after doing the above step, then check the ImmedSubscriptions / SchedSubscriptions table of the content db of the web application depending on the type of alert and see a new record is added and ensure that the email field for the user is populated correctly.  If not, check whether the email address is present in the user’s profile through the SSP admin page.

h. The initial alert is not security trimmed. So irrespective of whether the user has privileges on the list or not, the initial alert will be sent.  If the user is not getting alert for any changes, then check whether the user has Read permission on the list.

i. This also happen if there is some issue in their mail provider (third party email providers.  In this case, capture the ULS log with all information events in the verbose mode and check for lines which says Alert has been sent.

j. Email enabled security groups can also be used for configuring alerts.  If the changes are not notified to the members of the group, check whether the group is added to the list with minimum Read permission.  Also some email providers block email groups if the number of members are more than certain number.

k. Open SQL Query Analyzer; connect to the content database of problematic site. Run the following query.

Select * from timerlock

This server is responsible for processing the timer service.  You can follow this KB –

http://support.microsoft.com/kb/934838 to sync the accounts and password across the

Farm

The internal working mechanism of how an alert should work in v3:

The EventCache table records the SQL level events as they occur and the EventData and ACL columns are not NULL for an alert event.  There is an alerts timer job that runs periodically to process the records in the EventCache. After the alerts timer job runs, it nulls out the EventData and ACL columns. Then, it will log an event into the EventLog table.  So check the following in SQL.

select * from eventcache where EventData is not null

This will output all of the subscriptions which have not been processed yet. We can see if there are some alerts which are not processed.

select * from eventlog where ListID = ‘xxx’

You can get the ListID from the EventCache table by running

Select * from EventCache and check the documents which correspond to the problematic list.

If you cannot find any record, perform the following tests:

Run filemon on the MOSS server which is responsible for the timer service and check if the Timer

service picks up the alert template during the whole process.

             Upload a new document to the document library which is supposed to have the alerts. Begin running 

             the filemon and analyze the logs.

p. select * from eventcache order by EventTime DESC

Check if the latest log is the one corresponds to your uploaded document. Make sure the EventData and ACL columns are not NULL.

After 5 minutes or more minutes, check the EventCache table again to see if the EventData and ACL columns are NULLed.

If so, stop filemon after the EventData and ACL columns are NULLed . Review log.

Upgrade from V2 to V3

1. Check this KB – http://support.microsoft.com/kb/936759/en-us

2. If no alerts are getting triggered even for a new web app, then run the Psconfig Wizard without changing any options. 

The timer job displayed an older date because the upgrade job was hung

3. If the alert works on new web apps, then you can move the site collections from the upgraded web app to the newly created web app through stsadm –o backup / restore or stsadm –o export / import.  This action will be useful only if you have fewer site collections and this is only a workaround.

Case Study

ERROR MESSAGE:
================
Running the psconfig wizard fails immediately with "Unable to upgrade SharePoint
Products and technologies because an upgrade is already in progress"
No psconfig process in task manager

CAUSE:
=======
The timer job displayed an older date because the upgrade job was hung
RESOLUTION:
============
Sharepoint central administration page->Operations->Timer job definitions
Asked client to delete the "Upgrade job"
Now the psconfig wizard ran fine
Timer job definition showed all the jobs with the latest date. Especially the
Immediate alerts job

linkedin SharePoint Alerts Not Workingdigg SharePoint Alerts Not Workingshare save 120 16 SharePoint Alerts Not Working

Faulty Feature Tool

image thumb Faulty Feature Tool I used a tool by Steven Van de Craen called FaultyFeatureTool to compare the features that were enabled on two different sites.

It’s not the original purpose of this tool but it came in very handy.

You can also remove the feature using the application or STSADM.

[code lang="dos"]
STSADM -o deactivatefeature -id -url http://localhost -force
[/code]

linkedin Faulty Feature Tooldigg Faulty Feature Toolshare save 120 16 Faulty Feature Tool

Unable To Activate Office SharePoint Server Publishing Infrastructure

When trying to enable the Office SharePoint Server Publishing Infrastructure feature we were getting an “Access Denied” error.  The error in the application event log was:

Event Type:    Error
Event Source:    Office SharePoint Server
Event Category:    Publishing Provisioning
Event ID:    4965
Date:        5/13/2009
Time:        10:16:31 AM
User:        N/A
Computer:    SERVERNAME
Description:
Event log message was: ‘Failed to provision the scheduling job definitions.  Page scheduling will not succeed.’. Exception was: ‘System.Security.SecurityException: Access denied.

To resolve the issue, we took the following steps:

  1. Used stsadm to activate the feature:
    1. [code lang="dos"]stsadm -o activatefeature -name PublishingResources -url http://www.example.com[/code]
  2. Clicked the [Activate] button on the Site Collection Features page.
linkedin Unable To Activate Office SharePoint Server Publishing Infrastructuredigg Unable To Activate Office SharePoint Server Publishing Infrastructureshare save 120 16 Unable To Activate Office SharePoint Server Publishing Infrastructure