Tuesday, September 25, 2012

STSADM ShortCut for SharePoint 2010

Short Command
Here’s a quick tip – so that you only need to type STSADM :
STSADM.EXE –o enumsolutions

Add the path to ENV variables
What you need to do is add the big looong path to the server ‘environment variables’ – these are the steps for Windows Server 2008 (much the same for 2003) :
  • Click Start – and then just type “SYS VAR”    (without quotes)
  • The Windows start menu will show the items that match – from Control Panel
  • Click the item shown – which is “Edit the system environment variables”
image
  • Click on the button for ‘Environment Variables’
image
  • Scroll down the SECOND list box – with the System Variables
  • Click on the variable called Path – and click Edit
image
  • Then paste in the PATH to the SharePoint Root folder (BIN)
  • IMPORTANT : Don’t REPLACE the current PATH value – just append to the tail
  • Make sure you include a semi-colon between the previous value
  • AND – make sure you wrap it with quotes – as there are spaces in the value
image
  • For SharePoint 2007 :
            • ;"C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\"
  • For SharePoint 2010 :
            • ;"C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\BIN\"
  • Click OK – and then OK again – and once more – basically just need OK your way outta there…
And – that’s it – you can now just type STSADM instead of needing the entire PATH to the BIN folder.

No comments:

Post a Comment