IT tutorials
 
Technology
 

Windows Server 2008 : Using the Integrated Scripting Environment - Launching the ISE, Exploring the ISE

8/30/2013 9:27:40 AM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

1. Launching the ISE

The Windows PowerShell Integrated Scripting Environment (ISE) is a handy tool you can use to create, test, and debug PowerShell scripts. You can launch the ISE by clicking Start, All Programs, Accessories, Windows PowerShell, Windows PowerShell ISE.

Figure 1 shows the ISE in action with the different areas labeled, and the following table explains these sections.

Figure 1. Windows PowerShell ISE

PowerShell ISEComments
Menu barWindows dropdown menus.
ToolbarButtons for key tools.
PowerShell tabDifferent PowerShell tabs can have separate scripts and variables. It’s common to create a different PowerShell tab when connecting to a remote computer.

Note

You can have as many as eight PowerShell tabs open at a time.

Script tabShows the name of script you’re currently working on. Multiple scripts can be open at a time.

Tip

Hover over the tab and the full path to the script displays in a tooltip.

Script paneShows the script you’re currently working on. The line numbers automatically display in the script pane but are not in the script.
Output paneThe script output goes here when scripts or PowerShell commands are executed.
Command paneA regular PowerShell command prompt. Any PowerShell commands can be executed here.
Cursor positionShows the current position of the cursor.

Note

PowerShell error outputs show the cursor position. You can use this hint to get right to the source of the problem when troubleshooting a script.


2. Exploring the ISE

The following table shows the default buttons on the toolbar in order from left to right.

PowerShell ISE Toolbar ButtonsUse
NewCreates a new script tab.
OpenOpens an existing script or file.
SaveSaves the script or file in the current tab.
CutCuts selected text and copies it to the Clipboard.
CopyCopies selected text to the Clipboard.
PastePastes contents of the Clipboard to the cursor location.
Clear Output PaneClears all content in the Output Pane.
UndoReverses the action that was just performed.
RedoPerforms the action that was just undone.
Run Script (Green arrow)Runs a script. F5 also runs the script.
Run SelectionRuns a selected portion of a script.

Tip

You can highlight any portion of a script and run it by itself by clicking this button or by pressing the F8 key.

Stop ExecutionStops a script that is running. The Ctrl+Break and Ctrl+C combinations also stop the script.
New Remote PowerShell TabCreates a new PowerShell Tab that establishes a session on a remote computer. A dialog box displays and prompts you to enter details required to establish the remote connection.
Start PowerShell.exeOpens a PowerShell Console.
Show Script Pane TopMoves the Script Pane to the top in the display. This is the default display.
Show Script Pane RightMoves the Script Pane to the right in the display. The output pane moves to the top with the command pane at the bottom.
Show Script Pane MaximizedMaximizes the Script Pane.

You can use several keyboard shortcuts with the ISE. The following tables show many of these.

PowerShell Shortcuts KeysComments
F1Launches Help.
F3Launches the Find dialog box to search the script.
F5Runs the script.
F8Runs a selected portion of a script.
Ctrl+TCreates a new PowerShell tab.
Ctrl+Shift+PStarts PowerShell.
Ctrl+NCreates a new script tab.

Breakpoints allow you to pause a script when it reaches the breakpoint. You can set breakpoints on any line in the script. The following keyboard shortcuts are used with breakpoints.

Breakpoint shortcut keysComments
F9Toggles breakpoint. Position the cursor where you want the breakpoint and press F9 to create it. The script pauses at the breakpoint.
Ctrl+Shift+F9Removes all breakpoints.
Ctrl+Shift+LLists all breakpoints.
F10Steps over.
F11Steps into.
Shift+F11Steps out.
F5Runs/Continues.
Shift+F5Stops Debugger.
Ctrl+Shift+DDisplays the call stack.
 
Others
 
- Windows 7 : Scanning Documents - Scanning with Windows Fax and Scan, Using scanned documents
- Windows 7 : Receiving Faxes, Working with Faxes
- Windows 7 : Sending Faxes - Faxing from Windows Fax and Scan
- Windows Server 2012 : Optimizing Performance by Server Roles (part 2) - Remote Desktop Services Server , Hyper-V Servers
- Windows Server 2012 : Optimizing Performance by Server Roles (part 1) - Domain Controllers
- Sharepoint 2010 : Writing Custom WCF Services (part 4) - Consuming the Service in ASP.NET Ajax
- Sharepoint 2010 : Writing Custom WCF Services (part 3) - Consuming the Service in a Silverlight application
- Sharepoint 2010 : Writing Custom WCF Services (part 2) - Consuming the Service in a .NET Application
- Sharepoint 2010 : Writing Custom WCF Services (part 1)
- Active Directory 2008 : Configuring Password and Lockout Policies (part 2) - Fine-Grained Password and Lockout Policy
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us