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

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
主站蜘蛛池模板: 甘肃省| 陕西省| 德州市| 布尔津县| 长宁区| 视频| 平顺县| 哈尔滨市| 皮山县| 黄山市| 卢氏县| 保德县| 城步| 安塞县| 赫章县| 文登市| 宿州市| 商洛市| 图们市| 九江县| 科技| 金沙县| 肇东市| 开原市| 扎囊县| 临泉县| 钦州市| 双柏县| 富蕴县| 安西县| 吉木萨尔县| 故城县| 永嘉县| 康平县| 芜湖县| 秭归县| 衢州市| 达日县| 大理市| 禹城市| 阿克|