- Microsoft SharePoint 2010 and Windows PowerShell 2.0: Expert Cookbook
- Yaroslav Pentsarskyy
- 388字
- 2021-04-02 18:19:25
Introduction
PowerShell as a scripting language will execute actions on your target environment. Scripting is not a new concept and PowerShell is definitely not a new language. However, PowerShell and SharePoint 2010 integrate very well. This integration allows administrators and developers to access not just a limited set of commands, but also to connect to SharePoint objects and libraries to take advantage of additional capabilities of SharePoint as a platform. To ensure that we are on the same page while reading this book and trying out various recipes, we'll start by setting up your environment and verifying the setup by running a test script. After all, SharePoint relies on components, most of which we're going to be directly interacting with, and having a consistently configured environment will help in reducing any potential integration issues.
Although we can author our PowerShell scripts in Notepad and execute them in a PowerShell command-line environment, you can experience more advantages from authoring and debugging your scripts by using rich authoring environments, such as PowerGUI or PowerShell ISE. In this chapter, we'll see exactly what the benefits of using those environments are.
Whether you are creating a PowerShell script in a professional scripting environment or calling an existing script from a command line, you'll quickly notice that a default set of commands is definitely not enough to manage and work with your SharePoint system. When you have the need to author scripts accessing various other aspects of SharePoint functionality, you will need to use the additional libraries available to facilitate custom or out-of-the-box functionality required. This is a very common scenario for developers when building custom solutions for a variety of platforms. PowerShell, as a scripting language, really takes advantage of this concept allowing you to call functions from SharePoint and third-party libraries. In this chapter, we'll take a look at exactly how you can access advanced SharePoint 2010 functionality using external libraries.
As you become more familiar with authoring PowerShell scripts, you will realize that you can create a collection of reusable functionality which can be shared with others. That's when you can take advantage of sealing your custom functionality in a portable and sharable way. We'll take a look at how you can package your custom scripts as custom PowerShell CmdLets, as well as how to create a custom PowerShell Snap-In.
- Instant Vert.x
- AI繪畫教程:Midjourney使用方法與技巧從入門到精通
- 邊做邊學:Photoshop圖像制作案例教程(Photoshop CC 2019·微課版)
- AutoCAD 2020中文版從入門到精通(標準版)
- 對比Excel,輕松學習SQL數據分析
- 從零開始:Flash CS6中文版基礎培訓教程
- Moldflow 2010完全自學與速查手冊(模流分析·成本控制)
- 移動App測試的22條軍規
- 零基礎學后期:Photoshop+Lightroom數碼照片處理從新手到高手
- 工業軟件研發、測試與質量管理論叢
- 無師自通AutoCAD:中文版室內設計
- WordPress Theme Design
- Unity 3D\2D手機游戲開發:從學習到產品(第4版)
- Photoshop CS6標準教程(全視頻微課版)
- Elasticsearch數據搜索與分析實戰