PowerShell

From WikiMD's Wellness Encyclopedia

Revision as of 20:58, 19 May 2024 by Prab (talk | contribs) (CSV import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

File:GPowerShell.PNG

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]

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]

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]

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]

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]

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]

  • 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]

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]

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]

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]

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]

References[edit]

<references group="" responsive="1"></references>


External Links[edit]


Stub icon
   This article is a  stub. You can help WikiMD by expanding it!



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

Ad. Transform your life with W8MD's Budget GLP-1 injections from $75


W8MD weight loss doctors team
W8MD weight loss doctors team

W8MD offers a medical weight loss program to lose weight in Philadelphia. Our physician-supervised medical weight loss provides:

NYC weight loss doctor appointmentsNYC weight loss doctor appointments

Start your NYC weight loss journey today at our NYC medical weight loss and Philadelphia medical weight loss clinics.

Linkedin_Shiny_Icon Facebook_Shiny_Icon YouTube_icon_(2011-2013) Google plus


Advertise on WikiMD

WikiMD's Wellness Encyclopedia

Let Food Be Thy Medicine
Medicine Thy Food - Hippocrates

Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates, categories Wikipedia, licensed under CC BY SA or similar.