Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer

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 : 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.

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
add comment

Your Answer

 
discard

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.