Prepare for the CompTIA PenTest+ Exam. Enhance your skills with practice questions and detailed explanations. Ace your test and advance your cybersecurity career!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What scripting language is built on the .NET Framework and is the default shell on Windows 10?

  1. Python

  2. PowerShell

  3. Bash

  4. JavaScript

The correct answer is: PowerShell

PowerShell is a powerful scripting language and command-line shell designed specifically for system administration and automation tasks on Windows operating systems. Built on the .NET Framework, it allows for the creation of scripts that can interact deeply with the Windows environment, enabling administrators to manage tasks such as system configurations, file management, and complex data processing. As the default shell in Windows 10, PowerShell provides a modern alternative to the traditional Command Prompt, featuring a rich set of commands (known as cmdlets) and the ability to manipulate objects rather than just text. This paradigm allows for more sophisticated and efficient process automation compared to older scripting languages. In contrast, while Python, Bash, and JavaScript are popular scripting languages, they do not have the same level of integration with the Windows operating system as PowerShell does. Python and JavaScript are versatile and widely used in various environments but are not the default administrative interfaces for Windows. Bash is primarily associated with Unix-like systems and is not inherently designed for Windows management tasks.