Monday, September 27, 2010

Is STSADM not in your path? Here's how to get it there...

Not trying to be all fancy about this, but if you found this blog item because of searching, it's because you don't know where it's at, or you do and just want to use it in Command Line without having to browse to the 12 or 14 hive.

Type the following into command line on your SharePoint server and STSADM will be in your path.

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

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

2 comments:

  1. If you are on SP2010, time to learn powershell :)
    psst! stsadm.exe is going away

    http://technet.microsoft.com/en-us/library/ee806878.aspx

    ReplyDelete
  2. I know Powershell, not as well as I should, but I can get by with it.

    I really put this post up here as a reminder to me for when running the legacy install scripts for WSPs

    ReplyDelete