O'Reilly logo

Automating Microsoft® SharePoint® 2010 Administration with Windows PowerShell® 2.0 by Shannon Bray, Gary Lapointe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configure Sessions

In the examples discussed throughout this chapter, we have had to add the SharePoint PowerShell snap-in to the remote session explicitly before we could start using the SharePoint PowerShell cmdlets. Ideally, we would like for these cmdlets to be loaded automatically when we create the session to avoid having to do so manually. Additionally, the default sessions require that the connecting users be a member of the Local Administrators group on the remote computer. This doesn't exactly follow a least-privileges security model.

With Windows PowerShell Remoting, we can address both of these concerns by creating a new session configuration. A session configuration defines what is available to the connecting user and who can connect ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required