sử dụng SharePoint lệnh Với hơn 500 cá nhân 2010commands SharePoint, một chương không thể bao gồm tất cả. Phần này sẽ giúp bạn bắt đầu làm việc với một số lệnh phổ biến hơn SharePoint cho PowerShell. | 252 CHAPTER 10 ADMINISTERING SHAREPOINT 2010 WITH WINDOWS POWERSHELL COMMANDS PowerShell is powered by commands. Commands get things done. There are four basic types of commands cmdlets functions scripts and native commands. It is not necessarily important to know the differences among these command types to work with PowerShell and SharePoint but it doesn t hurt either. If you are just starting out with PowerShell you can find a wealth of general information at http PowerShell. Cmdlets Cmdlets pronounced command-lets are compiled commands that are registered with PowerShell. They have a very specific naming convention All cmdlets are named with a verb-noun combination. The verb portion of the name should be one of the PowerShell accepted verbs. PowerShell defines a list of these verbs and what they mean at http en-us library ms71442 8 .aspx. Because the verbs are standardized you can usually guess the verb portion of the cmdlet. An example of a cmdlet is New-SPWebApplication which has a corresponding Remove-SPWebApplication. You might have expected to use the verb delete to delete a SPWebApplication but delete is not one of the standardized verbs so it cannot be used. Cmdlets are installed and registered. As you might have already guessed the SharePoint commands that we will be using are cmdlets. You saw that SharePoint installed the cmdlets on the server and the Management Shell registered them with the host using the PSC1 file and you now know how to manually register them in the ISE. You can also create custom cmdlets but that is a topic beyond the scope of this book. You can learn more about writing your own cmdlets in this MSDN article http en-us library dd878294 .aspx. Functions Functions can contain one or more commands to accomplish a task and can accept parameters that allow the creation of custom reusable code. They are defined in PowerShell by typing the function into the host. PowerShell .