I found a nice topic in the SharePoint documentation which explains the properties that can be set on the command line using the stsadmin.exe tool with the getproperty and setproperty operations. This is as follow:
stsadm.exe -o getproperty -pn <property name> [-url <url>]
stsadm.exe -o setproperty -pn <property name> -pv <property value> [-url <url>]
As stated in the "Microsoft Office SharePoint Portal Server 2003 Administrator's Guide" (file SharepointPSAdmin.chm):
"Some properties are available for the entire server, and are called server properties. Some are only available for an individual virtual server. When you get or set a server property, you can omit the url parameter. You must include the url parameter to get or set virtual server properties. For more information about setting properties, see "Introducing the Administration Tools for Windows SharePoint Services" in the Windows SharePoint Services Administrator's Guide."
The properties are divided in several categories:
Server Properties for Windows SharePoint Services
- Antivirus properties
- Data retrieval services properties
- HTML Viewer properties
- Site confirmation and automatic deletion properties
- Usage analysis properties
Virtual Server Properties for Windows SharePoint Services
- Alert properties
- Content database properties
- Data retrieval services properties
- General properties
- Site confirmation and automatic deletion properties
Lookup "Command-Line Properties" in the mentioned file for the complete list and explaination of each property divided over the categories.
But it would be nice if you can access these properties programmatically. This is possible with the following code:
Microsoft.SharePoint.Administration.SPGlobalAdmin globAdmin = new Microsoft.SharePoint.Administration.SPGlobalAdmin();
Microsoft.SharePoint.Administration.SPGlobalConfig globConfig = globAdmin.Config;
SPPropertyBag propBag = globConfig.Properties;
System.Collections.ICollection keys = propBag.Keys;
foreach (object key in keys)
{
output.Write(SPEncode.HtmlEncode(key.ToString()) + " :: " +
SPEncode.HtmlEncode(propBag[key.ToString()]) + "<BR>");
}