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

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
主站蜘蛛池模板: 合川市| 宁国市| 共和县| 界首市| 长丰县| 顺义区| 囊谦县| 旺苍县| 竹溪县| 广丰县| 介休市| 达日县| 呼图壁县| 合作市| 平邑县| 安新县| 贵定县| 北票市| 连州市| 大化| 平舆县| 固原市| 平湖市| 建始县| 同德县| 玛纳斯县| 惠东县| 同江市| 当涂县| 微山县| 沭阳县| 呼玛县| 霍州市| 桦甸市| 连江县| 景东| 涡阳县| 屯昌县| 昭觉县| 恩施市| 鄂尔多斯市|