Unit 6: Advanced PowerShell and Automation - Subjective Questions

CSC104 — It Fundamentals • Practice Questions with Detailed Answers

20 questions

1

Define a PowerShell module. Explain how modules are discovered, imported, and used in an automation script.

2

Explain how PowerShell can import, process, and export CSV data. Give an example involving a list of users.

3

Compare the handling of CSV, JSON, and XML files in PowerShell. State an appropriate use case for each format.

4

Describe how to create a reusable menu-driven PowerShell script that accepts and validates user choices.

5

Explain the different methods of collecting input through PowerShell prompts and discuss how input can be validated securely.

6

Explain how PowerShell manages services and processes. Distinguish between service management and process management.

7

Describe how PowerShell can read and modify the Windows Registry safely. Include suitable commands and precautions.

8

Explain how PowerShell is used to create and manage scheduled tasks. Describe the main components of a task definition.

9

Describe how the Active Directory PowerShell module can be used to create and manage user accounts.

10

Design an automation workflow for bulk Active Directory user provisioning from a CSV file. Explain validation, execution, and reporting.

11

Define PowerShell Remoting and explain how commands and scripts are executed on one or more remote computers.

12

Compare PowerShell Remoting with PowerShell Jobs. How can they be combined for parallel administration?

13

Explain the lifecycle of a PowerShell background job and describe how its output and errors are retrieved.

14

What is an advanced PowerShell function? Explain the purpose of CmdletBinding, parameter attributes, and validation attributes.

15

Write and explain an advanced function that restarts a service while supporting validation, pipeline input, -WhatIf, and error handling.

16

Describe the methods available for creating a graphical user interface with PowerShell. What design and threading issues must be considered?

17

Explain how to design log automation in PowerShell for reliable auditing and troubleshooting.

18

Design a PowerShell-based system monitoring script for CPU, memory, disk space, services, and event logs. Explain how alerts should be generated.

19

Describe how PowerShell can automate a software deployment task across multiple computers while supporting verification and rollback.

20

Explain the principles that make a PowerShell automation script reliable, secure, and maintainable, using user management or system administration as context.