官术网_书友最值得收藏!

PowerShell is a cmdlet based language with verb-noun syntax

The building blocks of PowerShell are called cmdlets (pronounced command-lets). Cmdlets allow us to get things done in PowerShell. A cmdlet is a lightweight command that is used in the Windows PowerShell environment. The Windows PowerShell runtime evokes these cmdlets within the context of automation scripts that are provided at the command line. We can put multiple cmdlets together into a set of commands to run all at once, or we can place them in a file with the extension .ps1 to create a PowerShell script that we can run manually or using a scheduler. In Office 365, the following cmdlets are commonly used:

  • Get-MsolUser
  • New-MsolUser

In PowerShell, cmdlets follow a pattern with verb-noun syntax. For example, to manage users, the syntax is <Verb>-MSOL<Noun>.

Here, MSOL stands for Microsoft Online.

To manage SharePoint Online, the syntax is <Verb>-SPO<Noun>.

SPO is SharePoint Online.

The following is the list of the most commonly used verbs in PowerShell:

  • Get
  • Set
  • Add
  • New
  • Remove
  • Connect
  • Disconnect
  • Test
  • Enable
  • Disable
  • Invoke
  • Start
  • Stop
主站蜘蛛池模板: 英山县| 沅江市| 阿图什市| 高清| 潞城市| 玉屏| 昌乐县| 疏勒县| 页游| 九江县| 肇庆市| 中卫市| 赤峰市| 平阴县| 自治县| 同仁县| 荃湾区| 乌拉特中旗| 凯里市| 共和县| 威宁| 晋城| 通州区| 南宁市| 叶城县| 谢通门县| 溧阳市| 黄浦区| 克东县| 宜丰县| 海门市| 天气| 河津市| 伊春市| 阿拉善右旗| 吉林市| 大化| 安顺市| 大化| 织金县| 平阴县|