Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am using the command:

stsadm -o setproperty -propertyname "myprop" -propertyvalue "-mayvaluewithhypenatbeginning"

but this doesn't work as I get "Command line error. Invalid parameter."

How do I set this property from the command line?

share|improve this question
does it work if you use an un-hypenated value? – GavinB Mar 30 '12 at 4:28
Yes. It works without the hyphen. It also works if I use PowerShell to set the property values. – TheTodd Mar 30 '12 at 18:06

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.