Multiple choice technology programming languages

By default, you can run a Windows PowerShell script by double-clicking its icon.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

By default, Windows PowerShell scripts have a security policy that prevents double-click execution. You must right-click and select 'Run with PowerShell' or execute from the PowerShell console. This is a security measure to prevent accidental script execution.

AI explanation

To answer this question, you need to understand how Windows PowerShell scripts are executed.

Option A) True - This option is incorrect. By default, you cannot run a Windows PowerShell script by double-clicking its icon. By default, double-clicking a PowerShell script's icon will open it in an editor, such as Notepad or PowerShell Integrated Scripting Environment (ISE), rather than executing the script.

Option B) False - This option is correct. By default, you cannot run a Windows PowerShell script by double-clicking its icon. You need to explicitly run the script using the PowerShell command line or by right-clicking the script and selecting "Run with PowerShell" from the context menu.

The correct answer is B) False.