sharepoint-2007stsadm

stsadm supports just a few parameters


I try to use the "editssp" command of stsadm, but for some strange reason the stsadm command supports less parameters on our live Sharepoint server than my local Sharepoint installation. Compare the first screenshot with the second:

#1

#2

Both have the same file version: 12.0.6421.0

I really need the "indexlocation" parameter. Does someone have an idea why there is only a small amount of parameters supported?


Solution

  • Are you sure that both servers have the same search configuration? I believe, not.

    This command is implemented by Microsoft.Office.Server.CommandLine.EditSsp class in Microsoft.Office.Server.dll.

    If you look at the implementation of this class in IlSpy, you can see that it checks if "search service is installed" and adjusts both the help messages and also - what the command actually does.

    Excerpt from code:

    // Microsoft.Office.Server.CommandLine.EditSsp
    public override string HelpMessage
    {
        get
        {
            string str = "-title <SSP name>\r\n        [-newtitle <new SSP name>]\r\n        [-sspadminsite <administration site url>]\r\n        [-ssplogin <username>]\r\n        [-ssppassword <password>]";
            if (base.IsSearchInstalled)
            {
                str += "\r\n        [-indexserver <index server>]\r\n        [-indexlocation <index file path>]";
            }
            return str + "\r\n        [-setaccounts <process accounts (domain\\username)>]\r\n        [-ssl <yes|no>]";
        }
    }