window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-108815698-1');

“Command line error.” when using the STSADM command-line tool

By |2017-12-01T10:06:25+00:00January 20th, 2012|Windows|0 Comments

When using the SharePoint command-line tool STSADM, you may receive “Command line error.” even though the syntax is correct:

image

Solution

Manually type out the command rather than copying/pasting from another application such as Internet Explorer. This is caused by the encoding method, particularly any hyphens in the command. Hyphens and dashes vary between ANSI and UTF-8 encoding.

Leave A Comment

like what you see? 

Sign-up to our newsletter and never miss out on the latest blogs, events and tech news from the world of risual
SUBSCRIBE!
Give it a try, you can unsubscribe anytime.
I consent to this website use of cookies and third party services. Accept