I've just started reading various books on SharePoint development and have come across a wonderful tool called PowerShell. From the looks of it, it could replace the old DOS tool cmd.exe. There are a few blogs discussing PowerShell vs. cmd.exe, but I have found none really useful one discussing PowerShell vs. cmd.exe in the eyes of a SharePoint developer.

Simply put, is it possible to only use PowerShell as the only command line tool as a SharePoint developer, or do you still rely on cmd.exe?


There's no task you couldn't do with PS because it allows to work with any .NET objects. The stsadm tool is considered obsolete now - the most commands have the equivalents in SharePoint PS commandlets. And for the unsupported stsadm options you can still use stsadm even through PS as it's able to execute standard command line tools. So you definitely can work with PS alone.

  • Thanx, just what I needed, and wanted to hear!
    – Benny Skogberg
    Mar 6 '12 at 20:32

you cannot do much using cmd.exe in terms of working with sharepoint. the key difference between cmd.exe and powershell when it comes to sharepoint is the fact that yuo can use C# assemblies within powershell. this allows you to access sharepoint core libraries from within powershell. This functionality is not available in cmd.exe. So you will only use powershell as your cmd line tool.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.