Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

Executing PowerShell command in web method of a web service hosted on SharePoint 2013 farm

$
0
0
This post is a contribution from Pavan Kumar, an engineer with the SharePoint Developer Support team I worked on a very interesting case where I had to execute powershell commands in web method of a web service. But while executing powershell command I get following error "The type initializer for 'System.Management.Automation.SessionStateScope' threw an exception." When I try the same on Sharepoint 2010 it works fine but this fails only on Sharepoint 2013 environments After a lot...(read more)

Viewing all articles
Browse latest Browse all 34890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>