Question

Difficulty: EasyBasic Scripting Languages and Constructs

A desktop support technician needs to automate routine maintenance tasks on Windows 11 workstations using built-in operating system tools. The scripts must execute natively without requiring the installation of any third-party interpreters or runtime environments. Which of the following file extensions represent script types that can run natively in a standard Windows environment? (Select TWO.)

  1. .ps1Answer
  2. .batAnswer
  3. C
    .sh
  4. D
    .py

Answer

The script extensions that run natively in Windows are .ps1 and .bat.
The .ps1 (PowerShell script) and .bat (Batch file) extensions represent script formats that execute natively in standard Windows operating system installations using built-in engines (PowerShell host and cmd.exe).

Step-by-Step Solution

1
Identify native Windows scripting engines
Windows includes PowerShell and Command Prompt by default.
Both Windows PowerShell (.ps1) and Command Prompt Batch (.bat) execution environments are pre-installed in Windows.
2
Evaluate non-native scripting languages
.sh and .py require external runtimes on standard Windows installations.
Bash shell scripts (.sh) target Unix/Linux shells, and Python (.py) requires downloading and installing the Python execution environment.

Key Concept

Identifying native Windows scripting environments and file extensions
Rate this question