Friday, 4 December 2009

Creating Office Web Apps Service Applications with PowerShell

I was following the “Deploy Office Web Apps (SharePoint Server 2010)” beta guide published by Microsoft and got to the part on page 8 where it describes how to create the service applications and their proxies using PowerShell.

I ran the following script documented in the article:

$appPool = Get-SPIisWebServiceApplicationPool
–Name “SharePoint Web Services Default”
New-SPWordViewingServiceApplication –Name “WdView” –AppPool $appPool |
New-SPWordViewingServiceApplicationProxy –Name “WdProxy”
New-SPPowerPointServiceApplication –Name “PPT” –AppPool $appPool |
New-SPPowerPointServiceApplicationProxy –Name “PPTProxy”
New-SPExcelServiceApplication –Name “Excel”
-SPIisWebApplicationPool $appPool |

Well, I didn’t even get past the first line without PowerShell reporting an error. I could have switched to the UI and configured it there, but as I decided to crack the problem instead. After a good old trial and error session, the script now reads:

$appPool = Get-SPIisWebServiceApplicationPool –Identity “SharePoint Web Services System” |
New-SPWordViewingServiceApplication –Name “WdView” –ApplicationPool $appPool |
$WdViewSA = Get-SpServiceApplication -Name "WdView" |
New-SPWordViewingServiceApplicationProxy –Name “WdProxy” -URI $WdViewSA.Uri.AbsoluteUri |
New-SPPowerPointServiceApplication –Name “PPT” –ApplicationPool $appPool |
New-SPPowerPointServiceApplicationProxy –Name “PPTProxy” -ServiceApplication "PPT" |
New-SPExcelServiceApplication -Name "Excel" -ApplicationPool $appPool |

Hope this helps someone…. at least until RTM launches and they have rewritten the documentation :-)

18 comments:

  1. You are a legend.

    ReplyDelete
  2. Two and a half years later, their documentation still isn't fixed. Still says "SharePoint Web Services Default," but it should be "SharePoint Web services System."

    ReplyDelete
  3. Due to sending in those offer, You are investing in buy this realisation brand from the vendor if you're the earning prospective buyer. You read and sign the worldwide transportation structure affiliate agreement unwraps in any pickup's wind shield also known as loss. Transfer costs by now quotation probably have become controlled by change if you ever speed up you uttermost place a bet little..

    If the house is Camisetas De Futbol Baratas always went back following a established time it Maglie Poco Prezzo will undergo a 20% re selling commission rate aka refusal. For Coach Outlet Online Store something to qualify for head back or replace, The system had to be inside one of a kind overall disease utilizing manuel neuer trikot rot the labels it maillot de foot personnalise entered. hummel trikots In cases where the taken back service supplying is divided or is devoid of you should we will resultados de futbol see a Restocking charge all the way to 20%.

    By - applying your personal quote, You are investing maillot de foot pas cher in buy here food from the owner if you are the succeeding prospective buyer. You read maillot foot 2018 and accept the world shipping and delivery company conditions starts advertising in a meaningful door and bill. Significance allegations earlier amazon müller trikot in this article cited have been controlled by change inside event you improve you greatest tender value.

    ReplyDelete
  4. Both things are possible if you carry Michael Kors Handbags Wholesale. If you are a woman who goes for innovative designs, a designer Michael Kors Bags On Sale is perfect for you. Offering a huge selection of chic purses, handbags, shoes and accessories, Michael Kors Outlet Online Store celebrates womanhood in an entirely unique way. Michael Kors Factory Outlet Online Store At Wholesale Price are one of the most sought-after handbags worldwide. We all agree that diamonds are a woman's best friend; however Official Coach Factory Outlet Online are absolutely next in line. To Coach Outlet Sale aficionados, don't fret because we have great news: a discount Official Coach Outlet Online isn't hard to find. If you are a smart shopper looking for a good buy and great deals on your next handbag purchase, you can go to Official Coach Outlet Online.

    Friendly Links: Toms Shoes Womens | Toms Clearance

    ReplyDelete
  5. The infrastructure was horrible, says Shiflet's Chief Executive Officer Gary Campbell. When it rained hard, drain and storm sewers backed up. The road leading into the city was filled with holes. (Michael Kors Black Over The Shoulder Purse)

    In January, 2018, there was some accretion on the Milford on Sea and at the new concrete beach huts, of flint pebble shingle (medium size)that was thrown up by storm waves. This is the indirect result of increased erosion at Becton Bunny (Barton Golf Course) area and at Hordle Cliff nearby. As long as this process continues or even increases the supply system to Hurst Spit might retart. (Michael Kors Alanis Small Bucket Bag Black)

    Up against the world's top masters mountain runners, the Northern Ireland contingent did themselves and the province proud. Ian Bailey (Newcastle AC), a man who has been in excellent form this season, recording several notable wins including a victory at the Slieve Donard Classic, claimed a top ten finish in his Vet35 category, clocked 45:04 (10th place). In the Vet50 category, Deon McNeilly (Newcastle AC) crossed the line in 45:40 (12th place) and was followed by club mates Barry Wells (56:31) and Eugene McCann (59:41) who claimed 40th place and 43rd place respectively. (Black Michael Kors Bag Jet Set)

    Coach Diaper Bag Outlet Canada, There is no impact on it, and the primary materials some are manufactured here in Qatar, like the cement and the steel and the sand it is available here and now for Qatar. We even export this for others immediately, as I said, we have a strategic reserve for more than a year. So, if we don't import this primary material for a year, we have enough to cover all our projects infrastructure projects and also the private sector projects.Al Jazeera: It appears that you've managed to turn some of the challenges into opportunities, for example, the increase in trade that has come to Hamad Port, the new naval or sea lines or trade routes.Al Thani: As I said to you, I mean, the challenges create opportunities and that's what we are seeing.

    ReplyDelete