Getting Started with PowerShell in SharePoint 2010 in Visual Studio .NET

Printer QR-Code in Visual Studio .NET Getting Started with PowerShell in SharePoint 2010

Getting Started with PowerShell in SharePoint 2010
Scanning QR-Code In Visual Studio .NET
Using Barcode Control SDK for Visual Studio .NET Control to generate, create, read, scan barcode image in .NET framework applications.
QR Code 2d Barcode Creator In Visual Studio .NET
Using Barcode maker for VS .NET Control to generate, create Denso QR Bar Code image in .NET applications.
Getting Help
QR Code 2d Barcode Decoder In .NET
Using Barcode recognizer for VS .NET Control to read, scan read, scan image in .NET applications.
Bar Code Printer In .NET Framework
Using Barcode maker for Visual Studio .NET Control to generate, create bar code image in .NET framework applications.
The Get-Help cmdlet returns information about concepts and commands in Windows PowerShell, including cmdlets, providers, aliases, functions, and scripts Using GetHelp is a great way to find out more about how to use the various cmdlets in Windows PowerShell Not only do you get detailed information about when and how to use the cmdlets, you also get great examples that show you how to perform administrative tasks Here s how to get help on the Get-SPSite cmdlet:
Barcode Scanner In .NET
Using Barcode decoder for VS .NET Control to read, scan read, scan image in .NET framework applications.
Make Denso QR Bar Code In Visual C#
Using Barcode drawer for .NET Control to generate, create Quick Response Code image in .NET framework applications.
PS > Get-Help Get-SPSite
Paint QR Code JIS X 0510 In .NET
Using Barcode drawer for ASP.NET Control to generate, create QR image in ASP.NET applications.
QR Creator In Visual Basic .NET
Using Barcode drawer for Visual Studio .NET Control to generate, create QR Code 2d barcode image in VS .NET applications.
As shown in Figure 3-3, the command returns information that helps you understand the Get-SPSite cmdlet It displays a synopsis that summarizes the purpose of the cmdlet, a syntax statement that shows how to run the cmdlet, a description that explains the cmdlet in detail, and related links to find out more about other cmdlets and resources At the bottom of the returned text, you see that you can use the Get-Help cmdlet with additional parameters to get even more information If you want to see examples on how to use the cmdlet, add the Examples parameter:
Matrix 2D Barcode Maker In .NET Framework
Using Barcode maker for Visual Studio .NET Control to generate, create Matrix 2D Barcode image in .NET applications.
Make Linear In .NET Framework
Using Barcode drawer for Visual Studio .NET Control to generate, create Linear 1D Barcode image in Visual Studio .NET applications.
Get-Help Get-SPSite -Examples
Bar Code Generation In Visual Studio .NET
Using Barcode encoder for .NET framework Control to generate, create barcode image in VS .NET applications.
MSI Plessey Creation In .NET
Using Barcode maker for Visual Studio .NET Control to generate, create MSI Plessey image in Visual Studio .NET applications.
Figure 3-3
Decoding Code-39 In None
Using Barcode reader for Software Control to read, scan read, scan image in Software applications.
ANSI/AIM Code 39 Reader In Visual Studio .NET
Using Barcode scanner for .NET framework Control to read, scan read, scan image in .NET applications.
Getting help with the Get-SPSite cmdlet
ANSI/AIM Code 39 Maker In None
Using Barcode generation for Font Control to generate, create Code 3/9 image in Font applications.
Make Data Matrix ECC200 In .NET Framework
Using Barcode generator for Reporting Service Control to generate, create Data Matrix ECC200 image in Reporting Service applications.
PowerShell for Microsoft SharePoint 2010 Administrators
USS-128 Creation In Objective-C
Using Barcode creation for iPhone Control to generate, create EAN 128 image in iPhone applications.
Drawing 2D Barcode In Java
Using Barcode printer for Java Control to generate, create Matrix Barcode image in Java applications.
As shown in Figure 3-4, this command shows examples of how a cmdlet works in action
Reading GTIN - 12 In .NET
Using Barcode recognizer for Visual Studio .NET Control to read, scan read, scan image in .NET framework applications.
Encode Bar Code In Java
Using Barcode drawer for Java Control to generate, create bar code image in Java applications.
Figure 3-4
Using the Get-Help Examples parameter
Other Get-Help parameters are Detailed, which adds parameter descriptions and examples to the basic help display, and Full, which displays the entire help file for a cmdlet Get-Help also supports wildcards when searching for information about cmdlets and concepts in Windows PowerShell Using wildcards in combination with verbs or nouns is a quick way to find out more about the many cmdlets included in SharePoint 2010 For example, you can get help on all cmdlets using the noun SPSite as follows:
PS > Get-Help *-SPSite
This displays each cmdlet s synopsis, instead of the complete definition, as shown in Figure 3-5 It s also possible to access help for a particular cmdlet by typing the cmdlet s name followed by - :
PS > Get-SPSite -
Windows PowerShell also includes conceptual help topics stored in help files Help topics in Windows PowerShell start with about_ and contain detailed information
3:
Getting Started with PowerShell in SharePoint 2010
Figure 3-5
Using Get-Help to retrieve information about multiple cmdlets
about functions, providers, scripts, operators, and so on To get a list of all help topics available, use this command:
PS > Get-Help about_
As shown in Figure 3-6, this command displays a long list containing all available help files in Windows PowerShell If you want to retrieve information from a specific help topic, simply type Get-Help followed by the topic s name The help for both the core Windows PowerShell and the SharePoint 2010 snap-in cmdlets are also available in the CHM format
Figure 3-6
Using Get-Help about_ to get a list of help topics
PowerShell for Microsoft SharePoint 2010 Administrators
Aliases
Aliases are nicknames for cmdlets in Windows PowerShell that we can use instead of typing the cmdlets name An example of an alias is dir, which is actually an alias for the Get-ChildItem cmdlet To retrieve a list of all available aliases in Windows PowerShell, we can use the Get-Alias cmdlet and to retrieve a specific alias we can type
PS > Get-Alias dir CommandType Name Definition ----------- ---- ---------Alias dir Get-ChildItem
If we want to find out which aliases a cmdlet supports, we can use the -definition parameter and specify the cmdlets name
PS > Get-Alias -Definition Get-ChildItem CommandType ----------Alias Alias Alias Name ---dir gci ls Definition ---------Get-ChildItem Get-ChildItem Get-ChildItem
We see that the Get-ChildItem cmdlet supports three different aliases, dir, gci, and ls We can create our own aliases through the Set-Alias cmdlet If we want to create an alias for a SharePoint 2010 cmdlet, we can type
PS > Set-Alias -Name site -Value Get-SPSite PS > Get-Alias site CommandType Name Definition ----------- ------------Alias site Get-SPSite
When we type Get-Alias and specify our new alias as input to the command, we see that our new alias is created in the current session We can now use this alias to run the cmdlet as shown in the example below
Copyright © OnBarcode.com . All rights reserved.