Question

Task 12: Working with Windows PowerShell ISE You can use the Windows PowerShell Integrated Scripting Environment...

Task 12: Working with Windows PowerShell ISE

You can use the Windows PowerShell Integrated Scripting Environment (ISE) to create, run, and debug commands and scripts. The Windows PowerShell ISE consists of the menu bar, Windows PowerShell tabs, the toolbar, script tabs, a script pane, a console pane, a status bar, a text-size slider and context-sensitive Help. It works for both local and remote scripts.

Using the Windows PowerShell ISE gives you many different advantages when creating scripts. Although it can be used for interactive commands, the best use of the tool is for script creation and debugging.

Getting to know Windows PowerShell ISE In this step, you will explore the layout of Windows PowerShell ISE.

1. To open a new Windows PowerShell ISE environment window, on the taskbar, right-click Windows PowerShell, and then click Run ISE as Administrator.

2. On the View menu, click Show Script Pane.

The command pane to the right shows a list of commands based on the modules that are currently loaded.


The script pane and IntelliSense in Windows PowerShell ISE

In this step, you will learn how to use IntelliSense in the Windows PowerShell ISE script pane.

1. In the script pane, type Get-.

2. As you type, you will see a list of possible commands. Continue typing Get-Ser.

Get-Service will be selected and the possible complete syntax will be displayed.

3. Press TAB.

4. Press SPACE BAR.

5. Type -.

A list of possible parameters will appear.

6. Continue typing Computer, press TAB, and then press SPACE BAR.

7. Type DC.

8. Press F5 to execute the command.

The command pane in Windows PowerShell ISE

In this step, you will use the command pane in Windows PowerShell ISE.

1. In the command pane, in the Name box, type Get-Service.

As you type, the commands will be filtered.

2. In the filtered results, click the Get-Service command.

The parameters for the command will appear. Review the Default, DisplayName, and InputObject tabs.

3. In the ComputerName parameter, type DC, and then press F5 to run the command.

Review the results of all available services on the target system.

4. In the Name parameter, type TermService, and then press F5 to run the command.

5. In the command pane, select the Insert option.

The command will be inserted into the interactive Windows PowerShell console pane.

6. Expand Common Parameters.

7. Review the parameters list.

USE WINDOWS POWERSHELL AND SHOW INPUT AND OUTPUT AS WELL A SCREEN SHOT WITH THE RESULT

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1. In the command pane, in the Name box, type Get-Service.

Sere

Windows PowerhelSE Modues Na Ge Service e Get-Senice Get Service Deitals

2. In the filtered results, click the Get-Service command.

The parameters for the command will appear. Review the Default, DisplayName, and InputObject tabs.

Fle tdt ew loos Debug Add-ons Help Unstledi ps1 Name Get-Service Get Senvice Name Get-Service arameters for Ge Oefaut Display

3. In the ComputerName parameter, type DC, and then press F5 to run the command.

Note: Instead of DC I put localhost

Review the results of all available services on the target system.

Windows Powershell s e Edt Vew Tools Debug Add-ons Help omported arameters for DisplayName stopped Adobef1as Playe... Adobe F

4. In the Name parameter, type TermService, and then press F5 to run the command.

Windows PowerShell ISE File Edit Vew Tools Debug Ads-ons Help Untitled1 psX Modules Al Name Get Sevice Nam Get Senvice mporte

5. In the command pane, select the Insert option.

The command will be inserted into the interactive Windows PowerShell console pane.

#ae tdt wew ools Debug Addons Help mported Resoze oeskrop Services PS C> Get-Service

6.

Windows Power Shell ISE Fle Edt Vew Tools Debug Add-ons Help Untitled! ps1 × | Commands X Modules A Get-Service Get Senvice N

7.

Review the parameters list.

The following list displays the common parameters. Their aliases are listed in parentheses.

  • Debug (db)
  • ErrorAction (ea)
  • ErrorVariable (ev)
  • InformationAction (infa)
  • InformationVariable (iv)
  • OutVariable (ov)
  • OutBuffer (ob)
  • PipelineVariable (pv)
  • Verbose (vb)
  • WarningAction (wa)
  • WarningVariable (wv)
Add a comment
Know the answer?
Add Answer to:
Task 12: Working with Windows PowerShell ISE You can use the Windows PowerShell Integrated Scripting Environment...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Task 10: Creating functions In Windows PowerShell, you can declare functions. Functions are reusable pieces of...

    Task 10: Creating functions In Windows PowerShell, you can declare functions. Functions are reusable pieces of code that can be called as many times as you want after you declare them. In this step, you will declare a function, learn about using different types of parameters, and specify default values for these parameters. 1. In the Windows PowerShell ISE, press CTRL+N. 2. In the script pane, type the following code. function Get-Soup ( [switch] $please, [string] $soup = "chicken noodle"...

  • Chapter 2 How to use the Management Studio Before you start the exercises... Before you start...

    Chapter 2 How to use the Management Studio Before you start the exercises... Before you start these exercises, you need to install SQL Server and the SQL Server Management Studio. The procedures for doing both of these tasks are provided in appendix A of the book. In addition, you'll need to get the Exercise Starts directory from your instructor. This directory contains some script files that you need to do these exercises. Exercises In these exercises, you'll use SQL Server...

  • URGENT HELP NEEDED: JQuery. PLEASE POST SCREEN SHOTS Task 1: Downloading jQuery Right-click the link to...

    URGENT HELP NEEDED: JQuery. PLEASE POST SCREEN SHOTS Task 1: Downloading jQuery Right-click the link to download the uncompressed latest version of jQuery Copy the jQuery.x.x.x.js file in the folder and specified as source file. Task 2: Download and install HTML-Kit 1. Navigate to htmlkit.com. 2. Click Download HTML-Kit 292. After it downloads, launch HKSetup.exe. Choose Full installation (the default) Uncheck Yes, download and install HTML-Kit Tools Trial. 6. Click Next>Finish. Task 3: Creating a Simple jQuery Application Launch HTML-Kit....

  • Description: In this assignment, you will be launching a denial of service attack on a web...

    Description: In this assignment, you will be launching a denial of service attack on a web server. We will be using hping3, a command-line oriented network security tool inside Kali Linux (an advanced penetration testing Linux distribution). Setting up the victim machine Download the Windows XP virtual machine with WebGoat server installed, using the following link. We will use this machine as the victim machine and launch a DoS attack on the WebGoat server.https://drive.google.com/open?id=0BwCbaZv8DevUejBPWlNHREFVc2s Open the victim machine and launch...

  • For this exercise we will run a regression using Swiss demographic data from around 1888. The...

    For this exercise we will run a regression using Swiss demographic data from around 1888. The sample is a cross-section of French speaking counties in Switzerland This data come with the R package datasets. The first step is to load the package into your current environment by typing the command libraryldatasets) in to the R console. This loads a number of datasets including one called swiss. Type help/swiss) in the console for additional details. The basic variable definitions are as...

  • # No plagiarism #Decide on the type of motherboard to use in the computer system you...

    # No plagiarism #Decide on the type of motherboard to use in the computer system you are designing. Explain what it is and why you chose it. This from Lab 5.1 Using the information you recorded previously in Step 5, consult Table 5-1 to find out how to enter your system’s setup utility. (Alternatively, when you first turn on your PC, look for a message on your screen, which might read something like “Press F2 to access setup.” Table 5-1:...

  • could you please help me with this problem, also I need a little text so I...

    could you please help me with this problem, also I need a little text so I can understand how you solved the problem? import java.io.File; import java.util.Scanner; /** * This program lists the files in a directory specified by * the user. The user is asked to type in a directory name. * If the name entered by the user is not a directory, a * message is printed and the program ends. */ public class DirectoryList { public static...

  • Additional code needed: PartA: BurgerOrder class (1 point) Objective: Create a new class that represents an...

    Additional code needed: PartA: BurgerOrder class (1 point) Objective: Create a new class that represents an order at a fast-food burger joint. This class will be used in Part B, when we work with a list of orders. As vou work through this part and Part B, draw a UML diagram of each class in using the UML drawing tool 1) Create a new Lab5TestProject project in Netbeans, right-click on the lab5testproject package and select New>Java Class 2) Call your...

  • You need not run Python programs on a computer in solving the following problems. Place your...

    You need not run Python programs on a computer in solving the following problems. Place your answers into separate "text" files using the names indicated on each problem. Please create your text files using the same text editor that you use for your .py files. Answer submitted in another file format such as .doc, .pages, .rtf, or.pdf will lose least one point per problem! [1] 3 points Use file math.txt What is the precise output from the following code? bar...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT