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! :-)


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 : http://technet.microsoft.com/en-us/magazine/ff700227.aspx ).

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.

  • 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! – LMW-HH Feb 3 '12 at 10:54

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.