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

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
主站蜘蛛池模板: 日土县| 宁海县| 石门县| 龙游县| 德阳市| 岑巩县| 正安县| 红河县| 康保县| 西藏| 陵川县| 曲周县| 丰台区| 玉门市| 丰都县| 建德市| 托克托县| 山东省| 大连市| 和田县| 西充县| 柳河县| 克什克腾旗| 安康市| 濉溪县| 乌鲁木齐县| 濮阳县| 渭南市| 武强县| 含山县| 古蔺县| 石棉县| 台湾省| 虎林市| 浮梁县| 安化县| 扶沟县| 金华市| 滨州市| 靖西县| 兴义市|