Tuesday, January 22, 2013

Custom Path in Environment Variables for running STSADM

1) Browse to My Computer ->Right Click -> Properties

2) Click on Advanced Settings

3) Click on Environment Variables

4) Under System Variables->Path ->Edit



From a Sharepoint perspective, if we want to run the stsadm command, we would have to run the command in the below folder from command prompt:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
So to run stsadm in command prompt without browsing to the BIN folder every time, we will append this path to Environment Variables. I am pasting this to the existing value
For Sharepoint 2007, it would be:
;C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\
For Sharepoint 2010, it is :
;C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\BIN\



5) Click OK.

No comments:

Post a Comment