PowerShell

From WikiMD's Wellness Encyclopedia

PowerShell 7.4.0 Core on Windows 11, 23H2.png
Windows PowerShell 1.0 PD.png
Powershell for Linux on Ubuntu 22.10.png
Windows PowerShell 1.0 PD.png
Error creating thumbnail:

PowerShell

PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and the associated scripting language. Initially a Windows component only, known as Windows PowerShell, it was made open-source and cross-platform on 18 August 2016 with the introduction of PowerShell Core. The latest iteration, PowerShell 7, combines the best features of both Windows PowerShell and PowerShell Core.

History[edit | edit source]

PowerShell was first released in November 2006 for Windows XP, Windows Server 2003, and Windows Vista. It was designed to automate system tasks, such as batch processing, and to create system management tools for commonly implemented processes. PowerShell is built on the .NET Framework, and later, the .NET Core.

Features[edit | edit source]

PowerShell provides full access to COM and WMI, enabling administrators to perform administrative tasks on both local and remote Windows systems. It also provides a hosting API with which the PowerShell runtime can be embedded inside other applications.

Cmdlets[edit | edit source]

PowerShell introduces the concept of a "cmdlet" (pronounced "command-let"), a lightweight command that is used in the PowerShell environment. Cmdlets are specialized .NET classes that implement a particular operation. Cmdlets can be used independently or combined with other cmdlets in a pipeline to perform complex tasks.

Scripting Language[edit | edit source]

The PowerShell scripting language is designed to be easy to use for both interactive and scripting purposes. It supports variables, arrays, and has a rich set of built-in functions. Scripts can be written to automate tasks, and they can be executed directly from the command line or saved as .ps1 files.

Modules[edit | edit source]

PowerShell modules are packages that contain cmdlets, providers, functions, workflows, variables, and aliases. Modules can be loaded and unloaded dynamically, allowing for a modular approach to scripting and automation.

Versions[edit | edit source]

  • Windows PowerShell 1.0 - Released in 2006.
  • Windows PowerShell 2.0 - Introduced in 2009 with Windows 7 and Windows Server 2008 R2.
  • Windows PowerShell 3.0 - Released in 2012 with Windows 8 and Windows Server 2012.
  • Windows PowerShell 4.0 - Released in 2013 with Windows 8.1 and Windows Server 2012 R2.
  • Windows PowerShell 5.0 - Released in 2016 with Windows 10.
  • PowerShell Core 6.0 - Released in January 2018, the first cross-platform version.
  • PowerShell 7 - Released in March 2020, it is built on .NET Core 3.1 and is cross-platform.

Cross-Platform Support[edit | edit source]

With the release of PowerShell Core, PowerShell became available on Linux and macOS in addition to Windows. This cross-platform capability allows for a consistent scripting and automation experience across different operating systems.

Integrated Scripting Environment (ISE)[edit | edit source]

The PowerShell Integrated Scripting Environment (ISE) is a host application for Windows PowerShell. It enables users to write, test, and debug scripts in a graphical environment. The ISE includes features such as syntax highlighting, tab completion, and a built-in debugger.

Security[edit | edit source]

PowerShell includes several security features to prevent the execution of malicious scripts. These include script signing, execution policies, and the ability to run scripts with restricted permissions.

Applications[edit | edit source]

PowerShell is widely used in system administration, DevOps, and cloud computing. It is a powerful tool for automating tasks, managing configurations, and deploying applications.

See Also[edit | edit source]

References[edit | edit source]

External Links[edit | edit source]

WikiMD
Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Search WikiMD

Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD

WikiMD's Wellness Encyclopedia

Let Food Be Thy Medicine
Medicine Thy Food - Hippocrates

WikiMD is not a substitute for professional medical advice. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.

Contributors: Prab R. Tumpati, MD