Important topics for Practice
Quotation can be asked on following topics using bloom taxonomy Level
Refer a link https://www.teachthought.com/critical-thinking/blooms-taxonomy-verbs/
PowerShell Pipeline
• Passes output from one cmdlet to another
• Advantages: Streamlined tasks, improved efficiency.
Active Directory Cmdlets
• Used for managing users and groups
• Examples: New-ADUser, Set-ADUser.
PSProviders and PSDrives
• Interfaces for different data stores (e.g., registry, file system)
• Example: New-PSDrive to map paths.
WMI and CIM
• Query system information
• WMI: Windows-specific
• CIM: Industry standard.
PowerShell Scripts
• Automate repetitive tasks
• Example: Create users from a CSV file.
Error Handling
• Manage and log errors
• Example: Disk health checks on remote computers.
PowerShell Remoting
• Enabling Remoting: Steps for use
• One-to-One Remoting: Connect to one remote computer.
Implicit Remoting vs. PS-Sessions
• Implicit Remoting: Import cmdlets
• PS-Sessions: Persistent sessions for multiple computers.
Background Jobs
• Manage tasks in the background
• Example: Monitor disk usage.
Scheduled Jobs
• Automate tasks on a schedule
• Example: Monitor disk space daily.
Profile Scripts
• Customize environment
• Example: Set up specific customizations.
Validating IP Address
• Script: Check IP address format
• Error Handling: Manage invalid IP
Network Configuration Cmdlets
• Cmdlets: Get-NetAdapter, Set-NetIPAddress, New-NetIPAddress
• Examples: Configuring IP addresses, enabling/disabling network interfaces.
Sorting and Filtering Objects
• Cmdlets: Sort-Object, Where-Object
• Usage: Sorting objects and filtering data based on conditions.
Hash Tables in PowerShell
• Concept: Key-value pair storage
• Script Example: Creating and manipulating a hash table with user data.
Creating Registry Keys
• Cmdlets: New-Item, Set-ItemProperty
• Script Example: Creating registry keys and adding values for practical uses.
Processing Arrays
• Script: Using a ForEach loop to calculate sum and average.
• Explanation: Iterating through array elements to perform calculations.
Documenting PowerShell Scripts
• Practices: Adding comments, error handling, and logging.
• Sample Script: Demonstrating comprehensive documentation.
One-to-Many Remoting
• Concept: Executing commands on multiple remote systems.
• Script Example: Using Invoke-Command with multiple targets.
PowerShell Remoting
• Usage: Managing remote systems.
• Cmdlets: Invoke-Command, Enter-PSSession.
Configuring NTFS Permissions
• Cmdlets: Get-Acl, Set-Acl
• Script Example: Granting permissions to a user on a directory.
Scheduled Jobs
• Advantages: Automating repetitive tasks
• Script Example: Scheduling a job to check file presence every hour.
Background Jobs
• Role: Running tasks asynchronously
• Script Example: Using background jobs to monitor disk usage.
Creating User Accounts
• Script: From a CSV file
• Features: Error handling, logging, setting passwords.
Filtering and Sorting Objects
• Cmdlets: Sort-Object, Where-Object.
• Example: Sorting AD users by last login date.
PowerShell Functions and Modules
• Reusability: Enhances code reuse and organization.
• Example Function: Calculate factorial of a number.
PowerShell Remoting
• Types: One-to-one and one-to-many remoting.
• Example Scripts: Executing commands on remote systems.
Implicit Remoting
• Use: Importing remote modules.
• Example Script: Gathering disk space info remotely.
Scheduled Jobs
• Creation: Automate tasks at scheduled times.
• Example Script: Check file presence every hour.
Profile Scripts
• Customization: Configure environment settings.
• Example Script: Set up custom settings for all sessions.