Changes

Jump to: navigation, search
m
Text replacement - "<table border="0" cellspacing="0"> " to "<table border="0" cellspacing="0" width="100%">"
<table border="0" cellspacing="0" width="100%"><tr>
<td width="20%">[[The Basics of the Windows PowerShell 1.0 Interactive Shell|Previous]]<td align="center">[[Windows PowerShell 1.0 Essentials|Table of Contents]]<td width="20%" align="right">[[Windows PowerShell 1.0 Commands and Aliases|Next]]</td>
<tr>
<googlehtmlet>BUY_WPSpowershell</googlehtmlet>
== An Example Windows PowerShell Script ==
<googlehtmlet>ADSDAQBOX_FLOWadsdaqbox_flow</googlehtmlet>
For the purposes of this example, we will create a variation on the venerable "Hello World" example that has been used to begin teaching the basics of just about every programming language for the last 30 years or so. To begin, open an editor suitable for writing scripts. This can either be a programming editor, or something as simple as the Windows Notepad application. The purpose of the script we will create is to ask the user for their name and then say hello to them. With this in mind, enter the following statements into the editor:

Navigation menu