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 ...
Get Automating Microsoft® SharePoint® 2010 Administration with Windows PowerShell® 2.0 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.