Windows PowerShell Hands-On Training for Beginners - Launch PowerShell as Admin and Non-Admin and PowerShell Execution P

Windows PowerShell Hands-On Training for Beginners - Launch PowerShell as Admin and Non-Admin and PowerShell Execution P

Assessment

Interactive Video

Information Technology (IT), Architecture, Social Studies

University

Hard

Created by

Quizizz Content

FREE Resource

This lecture explains the concept of PowerShell execution policy, its default settings, and the importance of running PowerShell in administrator mode. It covers how to change the execution policy, the implications of doing so, and the differences in policy settings across PowerShell versions. The lecture concludes with best practices for using PowerShell safely and effectively.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is the default execution policy in PowerShell set to 'restricted'?

To ensure all scripts are signed by Microsoft.

To allow all scripts to run without restrictions.

To prevent unauthorized script execution from the internet.

To enable faster script execution.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to check the current execution policy in PowerShell?

Check-Policy

Get-ExecutionPolicy

Show-ExecutionStatus

Policy-Status

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'bypass' execution policy allow?

Execution of all scripts without any restrictions.

Only signed scripts can be executed.

No scripts can be executed.

Only scripts from the internet can be executed.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why might you need to run PowerShell as an administrator?

To execute basic scripts.

To open PowerShell faster.

To change system settings like execution policy.

To view the current execution policy.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should you be cautious about when using administrator mode in PowerShell?

It requires internet access.

It restricts script execution.

It slows down script execution.

It allows potentially harmful changes to the system.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a key difference between PowerShell's administrator mode and Linux's sudo command?

PowerShell's administrator mode is more powerful.

Linux's sudo command is used for non-administrative tasks.

Both are used to execute commands with elevated privileges.

PowerShell's administrator mode is less secure.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should you ensure when setting the execution policy in PowerShell?

Set it in both 32-bit and 64-bit versions simultaneously.

Always set it to 'restricted'.

Set it only in the 64-bit version.

Set it in the correct version of PowerShell.