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

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
主站蜘蛛池模板: 鄂伦春自治旗| 若尔盖县| 横山县| 克什克腾旗| 舒兰市| 合作市| 湘阴县| 板桥市| 衡东县| 饶阳县| 黎平县| 南召县| 芷江| 乐清市| 西藏| 泰和县| 湾仔区| 安国市| 方城县| 肇庆市| 英超| 应城市| 蕲春县| 兴安县| 洛浦县| 日照市| 石渠县| 临武县| 吉木乃县| 交口县| 瑞安市| 宿州市| 阿坝县| 邢台县| 石楼县| 宜川县| 田林县| 桐城市| 汉阴县| 鱼台县| 延川县|