Toggle navigation
Windows PowerShell Help
(current)
German (Germany)
Deutsch (Deutschland)
English (United States)
English (United States)
Spanish (Spain, International Sort)
Español (España, alfabetización internacional)
French (France)
français (France)
Italian (Italy)
italiano (Italia)
Japanese (Japan)
日本語 (日本)
Korean (Korea)
한국어 (대한민국)
Portuguese (Brazil)
Português (Brasil)
Russian (Russia)
русский (Россия)
Chinese (Simplified, PRC)
中文(中华人民共和国)
Chinese (Traditional, Taiwan)
中文(台灣)
How to Write and Run Scripts in the Script Pane
Use the topics below to create, edit, run, and save scripts in the Script Pane.
In this section
How to Create and Run a Script
How to Manage and Close Script Tabs
How to Edit Text in the Script Pane
How to Save a Script
See Also
Using Windows PowerShell ISE
Table Of Contents
Windows PowerShell Help
Windows PowerShell Getting Started Guide
Introducing Windows PowerShell
Windows PowerShell Cmdlets
A New Scripting Language
Windows Commands and Utilities
Processing Objects
Object Pipelines
Interaction and Scripting
An Interactive Environment
Support for Scripting
Starting Windows PowerShell
Using Windows PowerShell
Getting Help: Get-Help
Using Cmdlets
Using Functions
Using Modules and Snap-Ins
How to Import a Module
Learning About Objects: Get-Member
Formatting Command Output
Using Aliases
Using Windows Programs
Managing Errors
Navigating Windows PowerShell
Navigating the File System
Navigating the Registry
Navigating the Certificate Store
Navigating Other Drives
About Windows PowerShell Drives
Drives and Providers
Customizing Windows PowerShell
Examining the Execution Policy
Windows PowerShell Profiles
Introducing Windows PowerShell ISE
Windows PowerShell User's Guide
Windows PowerShell Basics
About Windows PowerShell
Installing and Running Windows PowerShell
Understanding Important Windows PowerShell Concepts
Learning Windows PowerShell Names
Getting Summary Command Information
Getting Detailed Help Information
Using Familiar Command Names
Using Tab Expansion
Object Pipeline
Understanding the Windows PowerShell Pipeline
Viewing Object Structure (Get-Member)
Using Format Commands to Change Output View
Redirecting Data with Out-* Cmdlets
Windows PowerShell Navigation
Managing Current Location
Managing Windows PowerShell Drives
Working With Files, Folders and Registry Keys
Manipulating Items Directly
Working with Objects
Getting WMI Objects (Get-WmiObject)
Creating .NET and COM Objects (New-Object)
Using Static Classes and Methods
Removing Objects from the Pipeline (Where-Object)
Repeating a Task for Multiple Objects (ForEach-Object)
Selecting Parts of Objects (Select-Object)
Sorting Objects
Using Variables to Store Objects
Using Windows PowerShell for Administration
Managing Processes with Process Cmdlets
Managing Services
Collecting Information About Computers
Working with Software Installations
Changing Computer State
Working with Printers
Performing Networking Tasks
Working with Files and Folders
Working with Registry Keys
Working with Registry Entries
Running Remote Commands
Appendix 1 - Compatibility Aliases
Appendix 2 - Creating a Custom Windows PowerShell Shortcut
Windows PowerShell About Help Topics
about_Aliases
about_Arithmetic_Operators
about_Arrays
about_Assignment_Operators
about_Automatic_Variables
about_Break
about_Command_Precedence
about_Command_Syntax
about_Comment_Based_Help
about_CommonParameters
about_Comparison_Operators
about_Continue
about_Core_Commands
about_Data_Sections
about_Debuggers
about_Do
about_Environment_Variables
about_Escape_Characters
about_EventLogs
about_Execution_Policies
about_For
about_Foreach
about_Format.ps1xml
about_Functions
about_Functions_Advanced
about_Functions_Advanced_Methods
about_Functions_Advanced_Parameters
about_Functions_CmdletBindingAttribute
about_Hash_Tables
about_History
about_If
about_Jobs
about_Job_Details
about_Join
about_Language_Keywords
about_Line_Editing
about_Locations
about_Logical_Operators
about_Methods
about_Modules
about_Objects
about_Operators
about_Parameters
about_Parsing
about_Path_Syntax
about_Pipelines
about_Preference_Variables
about_Profiles
about_Prompts
about_Properties
about_Providers
about_PSSessions
about_PSSession_Details
about_PSSnapins
about_Quoting_Rules
about_Redirection
about_Ref
about_Regular_Expressions
about_Remote
about_Remote_FAQ
about_Remote_Jobs
about_Remote_Output
about_Remote_Requirements
about_Remote_Troubleshooting
about_Requires
about_Reserved_Words
about_Return
about_Scopes
about_Script_Blocks
about_Script_Internationalization
about_Scripts
about_Session_Configurations
about_Signing
about_Special_Characters
about_Split
about_Switch
about_Throw
about_Transactions
about_Trap
about_Try_Catch_Finally
about_Type_Operators
about_Types.ps1xml
about_Variables
about_While
about_Wildcards
about_Windows_PowerShell_2.0
about_Windows_PowerShell_ISE
about_WMI_Cmdlets
about_WS-Management_Cmdlets
Windows PowerShell Cmdlet Help Topics
Add-Computer
Add-Content
Add-History
Add-Member
Add-PSSnapin
Add-Type
Checkpoint-Computer
Clear-Content
Clear-EventLog
Clear-History
Clear-Item
Clear-ItemProperty
Clear-Variable
Compare-Object
Complete-Transaction
Connect-WSMan
ConvertFrom-CSV
ConvertFrom-SecureString
ConvertFrom-StringData
Convert-Path
ConvertTo-CSV
ConvertTo-Html
ConvertTo-SecureString
ConvertTo-XML
Copy-Item
Copy-ItemProperty
Debug-Process
Disable-ComputerRestore
Disable-PSBreakpoint
Disable-PSRemoting
Disable-PSSessionConfiguration
Disable-WSManCredSSP
Disconnect-WSMan
Enable-ComputerRestore
Enable-PSBreakpoint
Enable-PSRemoting
Enable-PSSessionConfiguration
Enable-WSManCredSSP
Enter-PSSession
Exit-PSSession
Export-Alias
Export-Clixml
Export-Console
Export-Counter
Export-CSV
Export-FormatData
Export-ModuleMember
Export-PSSession
ForEach-Object
Format-Custom
Format-List
Format-Table
Format-Wide
Get-Acl
Get-Alias
Get-AuthenticodeSignature
Get-ChildItem
Get-Command
Get-ComputerRestorePoint
Get-Content
Get-Counter
Get-Credential
Get-Culture
Get-Date
Get-Event
Get-EventLog
Get-EventSubscriber
Get-ExecutionPolicy
Get-FormatData
Get-Help
Get-History
Get-Host
Get-Hotfix
Get-Item
Get-ItemProperty
Get-Job
Get-Location
Get-Member
Get-Module
Get-PfxCertificate
Get-Process
Get-PSBreakpoint
Get-PSCallStack
Get-PSDrive
Get-PSProvider
Get-PSSession
Get-PSSessionConfiguration
Get-PSSnapin
Get-Random
Get-Service
Get-TraceSource
Get-Transaction
Get-UICulture
Get-Unique
Get-Variable
Get-WinEvent
Get-WmiObject
Get-WSManCredSSP
Get-WSManInstance
Group-Object
Import-Alias
Import-Clixml
Import-Counter
Import-CSV
Import-LocalizedData
Import-Module
Import-PSSession
Invoke-Command
Invoke-Expression
Invoke-History
Invoke-Item
Invoke-WmiMethod
Invoke-WSManAction
Join-Path
Limit-EventLog
Measure-Command
Measure-Object
Move-Item
Move-ItemProperty
New-Alias
New-Event
New-EventLog
New-Item
New-ItemProperty
New-Module
New-ModuleManifest
New-Object
New-PSDrive
New-PSSession
New-PSSessionOption
New-Service
New-TimeSpan
New-Variable
New-WebServiceProxy
New-WSManInstance
New-WSManSessionOption
Out-Default
Out-File
Out-GridView
Out-Host
Out-Null
Out-Printer
Out-String
Pop-Location
Push-Location
Read-Host
Receive-Job
Register-EngineEvent
Register-ObjectEvent
Register-PSSessionConfiguration
Register-WmiEvent
Remove-Computer
Remove-Event
Remove-EventLog
Remove-Item
Remove-ItemProperty
Remove-Job
Remove-Module
Remove-PSBreakpoint
Remove-PSDrive
Remove-PSSession
Remove-PSSnapin
Remove-Variable
Remove-WmiObject
Remove-WSManInstance
Rename-Item
Rename-ItemProperty
Reset-ComputerMachinePassword
Resolve-Path
Restart-Computer
Restart-Service
Restore-Computer
Resume-Service
Select-Object
Select-String
Select-Xml
Send-MailMessage
Set-Acl
Set-Alias
Set-AuthenticodeSignature
Set-Content
Set-Date
Set-ExecutionPolicy
Set-Item
Set-ItemProperty
Set-Location
Set-PSBreakpoint
Set-PSDebug
Set-PSSessionConfiguration
Set-Service
Set-StrictMode
Set-TraceSource
Set-Variable
Set-WmiInstance
Set-WSManInstance
Set-WSManQuickConfig
Show-Eventlog
Sort-Object
Split-Path
Start-Job
Start-Process
Start-Service
Start-Sleep
Start-Transaction
Start-Transcript
Stop-Computer
Stop-Job
Stop-Process
Stop-Service
Stop-Transcript
Suspend-Service
Tee-Object
Test-ComputerSecureChannel
Test-Connection
Test-ModuleManifest
Test-Path
Test-WSMan
Trace-Command
Undo-Transaction
Unregister-Event
Unregister-PSSessionConfiguration
Update-FormatData
Update-List
Update-TypeData
Use-Transaction
Wait-Event
Wait-Job
Wait-Process
Where-Object
Write-Debug
Write-Error
Write-EventLog
Write-Host
Write-Output
Write-Progress
Write-Verbose
Write-Warning
Windows PowerShell Provider Help Topics
Alias Provider
Certificate Provider
Environment Provider
FileSystem Provider
Function Provider
Registry Provider
Variable Provider
WS-Management Provider
Windows PowerShell Integrated Scripting Environment (ISE) Help
Exploring Windows PowerShell ISE
Using Windows PowerShell ISE
How to Use Tab Completion in the Script Pane and the Command Pane
How to Create a PowerShell Tab in Windows PowerShell ISE
How to Use the Command Pane
How to Enter and Run a Command in the Command Pane
How to Edit Text in the Command Pane
How to Add Required Parameters in the Parameter Prompt Dialog Box
How to Manage Results in the Output Pane
How to Write and Run Scripts in the Script Pane
How to Create and Run a Script
How to Edit Text in the Script Pane
How to Save a Script
How to Manage and Close Script Tabs
How to Debug Scripts in Windows PowerShell ISE
How to Set, Remove, Disable, Enable, and List Breakpoints
How to Start, Stop, and Continue Debugging
How to Step Over, Step Into, and Step Out While Debugging
How to Use Profiles in Windows PowerShell ISE
How to Create Profiles in Windows PowerShell ISE
Accessibility in Windows PowerShell ISE
Accessibility Information
How to Change the Size and Location of the Command Pane and Script Pane
Keyboard Shortcuts
The Windows PowerShell ISE Scripting Object Model
Purpose of the Windows PowerShell ISE Scripting Object Model
The ISE object hierarchy
Other Useful Scripting Objects
Windows PowerShell ISE Object Model Reference
The ISEEditor Object
The ISEFile Object
The ISEFileCollection Object
The ISEMenuItem Object
The ISEMenuItemCollection Object
The ISEOptions Object
The ObjectModelRoot Object
The PowerShellTab Object
The PowerShellTabCollection Object
PowerShell.exe Console Help
Copyright Notice