Date 1 26 24 Cmdlets - Shadowsarespooky/TechJournal GitHub Wiki

PowerShell Cmdlets Members

  • Cmdlets - Native PowerShell commands - performs action and return object
  • PowerShell uses Verb-Noun name pair to name cmdlets - EX: Get-Help

Cmdlets Properties

  • ScriptProperty - A property defined by script language whose value is the output of a script
  • AliasProperty - Defines a new name for an existing property
  • NoteProperty - Defines a property that has a static value
  • There are many other properties

Cmdlet Methods

  • A set of instructions that can take action on an object returned by a cmdlet
  • EX the Kill() method terminates a process

Where-Object

  • A method to find an object/process

Switches

  • commands for controlling the flow of the executed programs

Help

  • help command will get you the information you need
  • help service will return a list of items that contains the word "service"