From the course: Learning PowerShell for Windows Server Administration

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Create a PowerShell script

Challenge: Create a PowerShell script

From the course: Learning PowerShell for Windows Server Administration

Start my 1-month free trial

Challenge: Create a PowerShell script

(digitized jingle) - [Instructor] So far I've demonstrated different aspects of PowerShell and invited you to follow along. Now it's your turn to see what you can do in this challenge. Since this is a beginner course, we will start out simple, but you will need a couple of things to get started. You're going to need access to Windows PowerShell and you're going to need an internet connection to do a little bit of research. The goal is for you to create a script for Windows PowerShell that can be run on any Windows work station or server. The script is going to return back information about the current session. Here's the model output for the script. It shows the username of the currently logged on user, the computer name, the specific operating system installed. It reports the IP addresses of all installed network interfaces, and it gives the last five lines that were run inside this session of PowerShell. Let me get you started. I suggest that you use PowerShell ISE. So I'm going to…

Contents