Tuesday, July 7, 2009

stsadm command line error

By Hristo Yankov

There is a common problem with stsadm being executed from the command line. For example, you run:
stsadm -o installfeature -name [featurename]

And you get "Command line error." in the console. It is because you have copy/pasted the command from your browser or somewhere else. There is a problem with the encoding.

Solution: Type the command in the console window, don't paste it.

Hope this helps.
Bookmark and Share

1 comment:

Nagesh said...

If you are very lazy or unsure of your typing you can copy paste. but ho ahead and Delete the space between the command and the - including the - (the encoding error is almost always on the - and just add the space and the -. it will work file.