Share-n-dipity

SharePoint serendipity is the effect by which one accidentally discovers something fortunate, especially while looking for something else entirely. In this case, it is the occassional musings, observations, and Ouija board readings about the phabulously

Creating Service Applications and Service Application Proxies for SharePoint 2010 in PowerShell

Creating Service Applications and Service Application Proxies for SharePoint 2010 in PowerShell

  • Comments 1
  • Likes

This is kind of a silly little thing really, but I just stumbled upon it because it's one of those things that when you are trying to do it, you end up pulling your hair out trying to remember how.  Just wanted to show a rather inventive and simple method for creating a service application and proxy in basically one fell swoop.  Here you go, maybe bookmark this page for those times when you're trying to recall how to do it so simply:

$appPool = Get-SPServiceApplicationPool -Name "SharePoint Web Services Default"
New-SPWordViewingServiceApplication -Name "WdView" -ApplicationPool $appPool | New-SPWordViewingServiceApplicationProxy -Name "WdProxy"
New-SPPowerPointServiceApplication -Name "PPT" -ApplicationPool $appPool | New-SPPowerPointServiceApplicationProxy -Name "PPTProxy"
New-SPExcelServiceApplication -Name "Excel" -ApplicationPool $appPool

Anyways, thought this was kind of cool so figured I'd share.

Comments
  • Thanks, this came in handy today ;)

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment