Windows Sharepoint services - stsadm - How to enable command line options

sharepoint, sharepoint-2010

Solution

Register the path of `'stsadm.exe'` in the path which as I can remember is here:

`C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN`

or type in the following command:

`@set PATH=C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN;%PATH%`

Hope that helped.

Problem

I want to install a feature into a SharePoint site. I am trying to do it with the command prompt. When I open the command prompt and give the command like: ``` stsadm -o installfeature ``` It is saying that ``` 'stsadm' is not recognized as an internal or external command, operable program or batch file. ``` How to do this with the command prompt. Is it necessary to use powershell only? Do I need to change any environment variable?

Original source