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

I want to install a feature on a SharePoint site. I am trying to do this using the command line. When I open the command line and issue the command:

stsadm -o installfeature

They say that

'stsadm' is not recognized as an internal or external command,
operable program or batch file.

How to do this using the command line. Do I need to use only PowerShell? Do I need to change any environment variable?

+3
source share
1 answer

Register the path 'stsadm.exe'in the path, which, as I recall, is here:

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

or enter the following command:

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

Hope this helped.

+7
source

All Articles