SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I mean, for example, something like a deployment. Is it possible to force something like this from within a webpart using the "standard" sharepoint functionality?

Using the central-administration is not possible, that's why i need another way.

Thank you very much! :-)

share|improve this question
up vote 3 down vote accepted

Yes, it is possible - however I would recommend not doing it.
Exposing command-line and administrative functions via web parts has the potential to expose security issues for your SharePoint farm, and allow users to potentially do tasks which they should not be able to do.

To remotely execute commands, you can use PowerShell and connect to a remote computer to do so (this Technet article explains PowerShell executing remote commands : ).

If you need to execute tasks in the absence of a user, you can use scheduled tasks using Windows Task Scheduler.

Of course if you do need to, you can create a web part, and either use C# code in an event handler (e.g. a feature receiver, event handler) and either execute a command or use the SharePoint API to complete a task. Depending on what you are trying to achieve.

share|improve this answer
The last part of your answer describes exactly what I need. Do you have any further information/link to that theme? My googling was not very successfull yet :( Thank you very much! – CodingSheep Feb 3 '12 at 10:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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