Solved

Run Powershell Script from a SharePoint Page

Posted on 2013-06-15
2
1,799 Views
Last Modified: 2013-06-23
This is probably an easy one I should know, but I don't. I have several PowerShell used for system checks and management that produce results that I display through SharePoint. I would like to add a button to the display pages that would run the PowerShell script (stored on a file share) so the report would be updated with a browser refresh. Any ides about how to do this?

Thanks
0
Comment
Question by:everythingbutthemoo
2 Comments
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
ID: 39250895
Hi,
who will use this?
I would suggest to create a Sharepoint application page.
Perhaps you can find some inspirations her:
http://www.experts-exchange.com/Programming/Languages/Scripting/Powershell/Q_27956605.html
Or
http://geekswithblogs.net/Norgean/archive/2012/09/19/running-powershell-from-within-sharepoint.aspx
HTH
Rainer
0
 
LVL 8

Expert Comment

by:vaderj
ID: 39252169
If you have already written the script, there is a set of advanced workflow activities here: http://ilovesharepoint.codeplex.com
One of them is a workflow action that can run a powershell script.  Do you have the script already written out?
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SharePoint 2013 Document Library Newsletter View Count 3 66
sharepoint online 3 44
SP2010 Parent Child Relationship 3 41
Sharepoint Online 5 45
A question that is asked often, is how to generate sequential numbers in InfoPath Forms. The best way to achieve this is to use a SQL database, along with a stored procedure and a web service to connect Forms Services to the DB. The first thing t…
When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question