Feb 12 2009

Change MOSS and WSS Passwords


 @echo off
rem for more info please see http://support.microsoft.com/kb/934838

rem central admin
echo *** Updating Central Admin password
"%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o updatefarmcredentials -userlogin %1 -password %2

rem other app pools
echo *** Updating app pool passwords
"%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o updateaccountpassword -userlogin %1 -password %2 -noadmin

rem ssp - new
echo *** Updating ssp password for new installs
"%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o editssp -title "SharedServices1" -ssplogin %1 -ssppassword %2

rem ssp - upgrade
echo *** Updating ssp password for upgraded installs
"%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o editssp -title "Default Web Site" -ssplogin %1 -ssppassword %2

rem osearch
echo *** Updating osearch password
"%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o osearch -farmserviceaccount %1 -farmservicepassword %2
echo *** MANUAL UPDATE NEEDED. To update the password, visit the SSP Web application page, click Search Settings, and then click Default Content Access Account.

rem spsearch
echo *** Updating spsearch password
"%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o spsearch -farmserviceaccount %1 -farmservicepassword %2
echo *** Updating spsearch content access account
"%commonprogramfiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o spsearch -farmcontentaccessaccount %1 -farmcontentaccesspassword %2

rem restarting IIS
echo *** Doing soft restart of IIS
iisreset /noforce
echo on


Jan 30 2009

Sharepoint Out of memory OOM exception

Issue
====
You may receive but no all of the following:

following errors are displayed on a sharepoint page

Failed to render “Title” column because of an error in the “Single line of text” field type control. See details in log. Exception message: Server out of memory there is no memory on the server to run your program. please contact your administrator with this problem ..

Failed to render “Page Content” column because of an error in the “Publishing HTML” field type control. See details in log. Execption message: Server out of memory on the server to run your program. Please contact your administrator with this problem

The event Logs show:

Out of memory (OOM) Exception

The following is always logged in the SPS Logs

While initializing navigation, found Page placeholder but object was not found at: /<SITE>/<PAGE>/<PAGE>.ASPX.

Behaviour
=======

W3WP.exe worker process used by your Sharepoint site increases to 1.2GB of memory rapidy and then errors. Once the process memory has been consumed, the memory is clearned and decreases back to normal utilisation (200 -650Mb)

The site which is trying to load, utilises a Site Navigation bar and contains over 50 pages

The site navigation bar is utilising the SiteMapProvider “SPNavSiteMapProvider”

Resolution
========

Edit your sites master.page using sharepoint designer 2007

Find the following

SiteMapProvider=”SPNavSiteMapProvider”

Change the SiteMapProvider

SiteMapProvider=”GlobalNavSiteMapProvider”

I would also recommend reducing the amount of pages contained in the site (try to keep this as small as possible.

Also consider moving to a 64bit platform and increase the amount of memory on the server (over 4GB recommeneded)

If you are receiving OOM exeption within custom code please see http://code.msdn.microsoft.com/SPDisposeCheck
and
http://msdn.microsoft.com/en-us/library/aa973248.aspx

This applies to MOSS 2007 (RTM and all updates) running on a 32bit windows 2003 environment

Thanks to Nick Lloyd-Jenkins for identifying this one


Jan 30 2009

SPDisposeCheck now released

Microsoft has now released SPDisposeCheck. This tool will assist SharePoint developers in making sure that SharePoint objects are being disposed of correctly.

For more information please see: http://code.msdn.microsoft.com/SPDisposeCheck