Hey PowerShell Enthusiasts! 🚀

Here are some PowerShell Assignments for you to gauge you PowerShell Skill Level

Are you ready to dive into the world of PowerShell scripting? Whether you’re a beginner or looking to level up your skills, this post is for you! Let’s start with two exciting PowerShell assignments to get your hands dirty and sharpen your PowerShell prowess.

You can always find these Assignments & Solutions for these Assignments in this FREE EBOOK

 

Assignment 1: File Management Fun

Your task is to create a PowerShell script that does the following:

  1. Creates a new folder named “PowerShellAssignment” on your desktop.
  2. Creates three text files inside the folder, named “File1.txt”, “File2.txt”, and “File3.txt”.
  3. Writes some text content into each file. Be creative!
  4. Finally, the script should display a message confirming the successful creation of the folder and files.

 

Assignment 2: User Management Challenge

In this assignment, you’ll be working with user accounts. Write a PowerShell script that:

  1. Prompts the user to enter their first name and last name.
  2. Generates a username using the first letter of their first name and their full last name (e.g., John Doe → jdoe).
  3. Creates a new user account on your local machine with the generated username and a default password.
  4. Displays a message confirming the creation of the user account, including the username and a welcome message.

 

Assignment 3: System Information Task

Write a PowerShell script that retrieves and displays the total physical memory (RAM) of your system in GB.

 

Assignment 4: Service Control Challenge

Create a PowerShell script that stops a specific service on your system.

 

Assignment 5: Log Analysis Task

You created three files in Assignment 1.

Now write a PowerShell script that reads the file and counts the occurrences of a specific keyword.

 

Tips for Success:

  • Test your scripts step by step to catch any errors early.
  • Google is your friend! If you encounter issues, chances are someone else has too, so don’t hesitate to search for solutions.
  • You can always find Solutions to these Assignments in this FREE EBOOK

Feel free to ask questions and share your solutions in the comments below. Let’s learn PowerShell together! Happy scripting! 😃

Leave a Reply

Your email address will not be published. Required fields are marked *