Unit6 - Subjective Questions

CSC104 • Practice Questions with Detailed Answers

1

Explain the concept of PowerShell Modules. How do they differ from standard scripts, and what command is used to load them into the current session?

2

Describe the process of handling CSV files in PowerShell. Provide syntax examples for importing data from a CSV and exporting data to a CSV.

3

Distinguish between ConvertTo-Json and ConvertFrom-Json in the context of data serialization.

4

How does PowerShell handle XML data? Explain how to load an XML file and navigate its nodes.

5

Write a logic flow or pseudo-code for creating a text-based interactive menu using PowerShell loops and Read-Host.

6

Explain how to manage Windows Services using PowerShell. Include commands to check status, start, stop, and restart a service.

7

How can you identify and stop a high-resource consuming Process using PowerShell?

8

Describe how PowerShell interacts with the Windows Registry. How does the Registry Provider work?

9

Discuss the prerequisites and cmdlets used for managing Active Directory (AD) users in PowerShell.

10

What is PowerShell Remoting? Explain the difference between Enter-PSSession and Invoke-Command.

11

Explain the security considerations when enabling PowerShell Remoting and the command used to enable it.

12

Differentiate between PowerShell Jobs and standard execution. List the commands to manage jobs.

13

How can you automate the creation of Scheduled Tasks using PowerShell?

14

Define an Advanced Function in PowerShell. What is the significance of [CmdletBinding()]?

15

Explain Parameter Validation attributes in PowerShell functions with examples.

16

What approaches are available for GUI Scripting in PowerShell? Briefly explain the Windows Forms approach.

17

Design a conceptual automation script for User Management (User Onboarding). What logic steps should the script include?

18

How can PowerShell be used for System Monitoring? specific to monitoring disk space.

19

Describe how to automate Log Analysis using PowerShell to find specific error events.

20

Discuss the role of PowerShell in Deployment Tasks. How can a script deploy software to multiple remote machines?