What must you set before you can run a PowerShell script?

  1. Your alarm clock

  2. Your budget

  3. Your execution policy

  4. All of the above


Correct Option: C

AI Explanation

To answer this question, you need to understand the concept of PowerShell execution policies.

Option A) Your alarm clock - This option is incorrect because setting an alarm clock is not necessary to run a PowerShell script. The execution of a script is not dependent on time management.

Option B) Your budget - This option is incorrect because setting a budget has no relevance to running a PowerShell script. The execution of a script is not related to financial planning.

Option C) Your execution policy - This option is correct because before running a PowerShell script, you need to set the execution policy. The execution policy determines the level of security for running scripts on your system. By default, the execution policy is set to "Restricted," which prevents the execution of any script. You need to change the execution policy to a more permissive value, such as "RemoteSigned" or "Unrestricted," to allow the execution of scripts.

Option D) All of the above - This option is incorrect because only option C, setting the execution policy, is relevant to running a PowerShell script. Options A and B (setting an alarm clock and a budget) have no connection to executing a script.

The correct answer is C) Your execution policy. This option is correct because before running a PowerShell script, you must set the execution policy to allow script execution on your system.

Find more quizzes: