0% found this document useful (0 votes)
32 views6 pages

PowerShell Environment Setup Guide

PowerShell can be opened by clicking its icon in the taskbar or Start menu. The latest version is 5.0 and can be checked using the $PSVersionTable command. To update, the Windows Management Framework 5.0 must be downloaded and installed. The PowerShell Integrated Scripting Environment (ISE) allows writing, testing, and debugging scripts with a graphical interface and includes features like syntax highlighting and breakpoints. Basic PowerShell commands include Get-Help to explain commands and Get-HotFix to view or install updates.

Uploaded by

Neo Smith
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views6 pages

PowerShell Environment Setup Guide

PowerShell can be opened by clicking its icon in the taskbar or Start menu. The latest version is 5.0 and can be checked using the $PSVersionTable command. To update, the Windows Management Framework 5.0 must be downloaded and installed. The PowerShell Integrated Scripting Environment (ISE) allows writing, testing, and debugging scripts with a graphical interface and includes features like syntax highlighting and breakpoints. Basic PowerShell commands include Get-Help to explain commands and Get-HotFix to view or install updates.

Uploaded by

Neo Smith
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Powershell - Environment Setup

PowerShell Icon can be found in the task bar and in the start menu. Just by clicking on the icon,
it will open.

To open it, just click on the icon and then the following screen will open and it means that
PowerShell is ready for you to work on.
PowerShell Version
The latest version of PowerShell is 5.0 and to check what is installed in our server we type the
following command � :$PSVersionTable as shown in the following screenshot and from the
screen we also know that we have PSVersion 4.0

To update with the latest version where it has more Cmdlets we have to download Windows
Management Framework 5.0 from the following link − [Link]
us/download/[Link]?id=50395 and install it.
PowerShell ISE
The Windows PowerShell Integrated Scripting Environment (ISE) is a host application for
Windows PowerShell. In Windows PowerShell ISE, you can run commands and write, test, and
debug scripts in a single Windows-based graphic user interface with multiline editing, tab
completion, syntax coloring, selective execution, context-sensitive help, and support for right-to-
left languages.
You can use menu items and keyboard shortcuts to perform many of the same tasks that you
would perform in the Windows PowerShell console. For example, when you debug a script in
the Windows PowerShell ISE, to set a line breakpoint in a script, right-click the line of code, and
then click Toggle Breakpoint.
To open it you just go to Start - Search and then Type - PowerShell as shown in the following
screenshot.
Then click on Windows PowerShell ISE. Or click on the downward Arrow as shown in the
following screenshot.

It will list all the applications installed on the server and then click on Windows PowerShell ISE.
The following table will be open −

It has three sections, which include - The PowerShell Console with number 1, then Scripting
File number 2 and the third is the Command Module where you can find the module.
While creating the script you can run directly and see the result like the following example −

PowerShell Basic Commands

There are a lot of PowerShell commands and it is very difficult to put in all these commands in
this tutorial, we will focus on some of the most important as well as basic commands of
PowerShell.
The first step is to go to the Get-Help command which gives you an explanation about how to
give a command and its parameter.
To get the list of Updates −
Get-HotFix and to install a hot fix as follows
Get-HotFix -id kb2741530

Common questions

Powered by AI

To access Windows PowerShell ISE, you go to Start, search for PowerShell, and select Windows PowerShell ISE from the list of applications. Alternatively, you can use the downward arrow to list all installed applications and click on Windows PowerShell ISE .

To check the current version of PowerShell installed on a server, you need to enter the command $PSVersionTable in the PowerShell console. This command displays the version information, such as PSVersion 4.0, if installed .

To update PowerShell to the latest version, you need to download the Windows Management Framework 5.0 from Microsoft's official website and install it. This will update PowerShell, adding more Cmdlets and features available in the newer version .

The Get-Help command assists PowerShell users by providing explanations on how to use commands and their parameters. It serves as a guide to understanding the functionality and syntax of different commands within PowerShell, facilitating more effective command usage .

PowerShell ISE enhances coding efficiency compared to a command-line interface through features like multiline editing, syntax coloring, and context-sensitive help. These allow users to write and read code more clearly and quickly. The ISE also supports selective execution, which enables executing specific parts of the script without running the entire script, saving time and improving debugging processes .

The Toggle Breakpoint feature in Windows PowerShell ISE allows users to set breakpoints at specific lines of code within a script. This is done by right-clicking the line of code and selecting Toggle Breakpoint. It helps in debugging scripts by pausing execution at these designated points, allowing for inspection and troubleshooting .

Context-sensitive help in PowerShell ISE is crucial for new users as it provides immediate, relevant assistance based on the current context of the script or command being worked on. This feature reduces the learning curve by offering explanations and suggestions directly related to the task at hand, improving user understanding and efficiency in scripting tasks without the need for extensive external search or training .

To install a specific hot fix using PowerShell, you use the command Get-HotFix with the specific hotfix ID. For example, to install hotfix with ID kb2741530, the command is Get-HotFix -id kb2741530 .

The Windows PowerShell Integrated Scripting Environment (ISE) provides several advantages over the traditional PowerShell console, including a graphic user interface that supports multiline editing, tab completion, syntax coloring, selective execution, context-sensitive help, and right-to-left language support. Additionally, it allows for script debugging through features like setting breakpoints, and it provides options for running commands and testing scripts seamlessly within the same interface .

The PowerShell ISE interface is divided into three sections: the PowerShell Console, the Scripting File, and the Command Module. The Console is where commands are run, the Scripting File is used for writing and testing scripts, and the Command Module lists available modules for use in scripts .

You might also like