- About PowerShell Ise.exe
- SHORT DESCRIPTION
- LONG DESCRIPTION
- SYNTAX
- PARAMETERS
- -NoProfile
- EXAMPLES
- Интегрированная среда сценариев Windows PowerShell The Windows PowerShell ISE
- Поддержка Support
- Основные возможности Key Features
- Запуск интегрированной среды сценариев Windows PowerShell To start the Windows PowerShell ISE
- Получение справки в интегрированной среде сценариев Windows PowerShell To get Help in the Windows PowerShell ISE
- Exploring the Windows PowerShell ISE
- Menu Bar
- Windows PowerShell Tabs
- Toolbar
- Script Tab
- Script Pane
- Console Pane
- Status Bar
- Text-Size Slider
- What is PowerShell?
- Shell
- Scripting language
- Configuration management
- Next steps
- Getting started
- PowerShell in action
- PowerShell_ise PowerShell_ise
- Использование PowerShell.exe Using PowerShell.exe
- Комментарии Remarks
About PowerShell Ise.exe
SHORT DESCRIPTION
Explains how to use the PowerShell_Ise.exe command-line tool.
LONG DESCRIPTION
PowerShell_Ise.exe starts a Windows PowerShell Integrated Scripting Environment (ISE) session. You can run it in Cmd.exe and in Windows PowerShell.
To run PowerShell_ISE.exe, type PowerShell_ISE.exe, PowerShell_ISE, or ISE.
SYNTAX
PARAMETERS
Opens the specified files in Windows PowerShell ISE. The parameter name («-File») is optional. To list more than one file, enter one text string enclosed in quotation marks. Use commas to separate the file names within the string.
PowerShell_ISE -File «File1.ps1,File2.ps1,File3.xml».
Spaces between the file names are permitted in Windows PowerShell, but might not be interpreted correctly by other programs, such as Cmd.exe.
You can use this parameter to open any text file, including Windows PowerShell script files and XML files.
Starts Windows PowerShell ISE using a multi-threaded apartment. This parameter is introduced in Windows PowerShell 3.0. Single-threaded apartment (STA) is the default.
-NoProfile
Does not run Windows PowerShell profiles. By default, Windows PowerShell profiles are run in every session.
This parameter is recommended when you are writing shared content, such as functions and scripts that will be run on systems with different profiles. For more information, see about_Profiles.
Displays help for PowerShell_ISE.exe.
EXAMPLES
These commands start Windows PowerShell ISE. The commands are equivalent and can be used interchangeably.
These commands open the Get-Profile.ps1 script in Windows PowerShell ISE. The commands are equivalent and can be used interchangeably.
This command opens the Get-Backups.ps1 and Get-BackupInstance.ps1 scripts in Windows PowerShell ISE. To open more than one file, use a comma to separate the file names and enclose the entire file name value in quotation marks.
This command starts Windows PowerShell ISE with no profiles.
Интегрированная среда сценариев Windows PowerShell The Windows PowerShell ISE
Интегрированная среда сценариев Windows PowerShell (ISE) является ведущим приложением для Windows PowerShell. The Windows PowerShell Integrated Scripting Environment (ISE) is a host application for Windows PowerShell. В ISE можно запускать команды, записывать и тестировать скрипты, а также выполнять их отладку в едином графическом пользовательском интерфейсе на базе Windows. In the ISE, you can run commands and write, test, and debug scripts in a single Windows-based graphic user interface. ISE поддерживает редактирование нескольких строк, заполнение нажатием клавиши TAB, раскраску синтаксических конструкций, выборочное выполнение, контекстную справку и поддержку письма справа налево. The ISE provides multiline editing, tab completion, syntax coloring, selective execution, context-sensitive help, and support for right-to-left languages. Элементы меню и сочетания клавиш подходят для выполнения большинства тех же задач, которые выполняются в консоли Windows PowerShell. Menu items and keyboard shortcuts are mapped to many of the same tasks that you would do in the Windows PowerShell console. Например, при отладке скрипта в ISE вы можете щелкнуть строку кода на панели редактирования правой кнопкой мыши, чтобы задать точку останова. For example, when you debug a script in the ISE, you can right-click on a line of code in the edit pane to set a breakpoint.
Поддержка Support
ISE была впервые представлена в Windows PowerShell версии 2 и переработана в PowerShell версии 3. The ISE was first introduced with Windows PowerShell V2 and was re-designed with PowerShell V3. ISE поддерживается во всех поддерживаемых версиях Windows PowerShell до версии 5.1 включительно. The ISE is supported in all supported versions of Windows PowerShell up to and including Windows PowerShell V5.1.
Функции для ISE PowerShell больше не разрабатываются. The PowerShell ISE is no longer in active feature development. Как компонент доставки Windows эта среда по-прежнему официально поддерживается для внесения наиболее важных исправлений, связанных с безопасностью и обслуживанием. As a shipping component of Windows, it continues to be officially supported for security and high-priority servicing fixes. Пока что мы не планируем удалять ISE из Windows. We currently have no plans to remove the ISE from Windows.
ISE не поддерживается в PowerShell версии 6 и более поздних версиях. There is no support for the ISE in PowerShell v6 and beyond. Пользователям, которые ищут замену ISE, следует использовать Visual Studio Code с расширением PowerShell. Users looking for replacement for the ISE should use Visual Studio Code with the PowerShell Extension.
Основные возможности Key Features
Основные возможности в Windows PowerShell ISE являются такими: Key features in Windows PowerShell ISE include:
- редактирование нескольких строк. Чтобы вставить пустую строку под текущей строкой в области команд, нажмите клавиши SHIFT + ВВОД . Multiline editing: To insert a blank line under the current line in the Command pane, press SHIFT + ENTER .
- Выборочное выполнение. Чтобы запустить фрагмент сценария, выберите текст, который нужно запустить, и нажмите кнопку Запустить сценарий. Selective execution: To run part of a script, select the text you want to run, and then click the Run Script button. Также можно нажать клавишу F5 . Or, press F5 .
- Контекстная справка. Введите Invoke-Item и нажмите клавишу F1 . Context-sensitive help: Type Invoke-Item , and then press F1 . Откроется файл справки со ссылкой на статью о командлете Invoke-Item . The Help file opens to the article for the Invoke-Item cmdlet.
Интегрированная среда сценариев Windows PowerShell позволяет настроить некоторые аспекты его представления. The Windows PowerShell ISE lets you customize some aspects of its appearance. Она также имеет свой собственный скрипт профиля Windows PowerShell. It also has its own Windows PowerShell profile script.
Запуск интегрированной среды сценариев Windows PowerShell To start the Windows PowerShell ISE
Нажмите кнопку Пуск , выберите раздел Windows PowerShell , а затем щелкните Интегрированная среда скриптов Windows PowerShell. Click Start , select Windows PowerShell , and then click Windows PowerShell ISE. Кроме того, можно ввести powershell_ise.exe в любой командной оболочке или поле «Выполнить». Alternately, you can type powershell_ise.exe in any command shell or in the Run box.
Получение справки в интегрированной среде сценариев Windows PowerShell To get Help in the Windows PowerShell ISE
В меню Справка выберите Справка Windows PowerShell. On the Help menu, click Windows PowerShell Help. Также можно нажать клавишу F1 . Or, press F1 . В открывшемся файле будет описана интегрированная среда сценариев Windows PowerShell и Windows PowerShell, в том числе вся справка, доступная через командлет Get-Help . The file that opens describes Windows PowerShell ISE and Windows PowerShell, including all the help available from the Get-Help cmdlet.
Exploring the 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.
Menu Bar
The menu bar contains the File, Edit, View, Tools, Debug, Add-ons, and Help menus. The buttons on the menus allow you to perform tasks related to writing and running scripts and running commands in the Windows PowerShell ISE. Additionally, an add-on tool may be placed on the menu bar by running scripts that use the The ISE Object Model Hierarchy.
Windows PowerShell Tabs
A Windows PowerShell tab is the environment in which a Windows PowerShell script runs. You can open new Windows PowerShell tabs in the Windows PowerShell ISE to create separate environments on your local computer or on remote computers. You may have a maximum of eight PowerShell tabs simultaneously open.
Toolbar
The following buttons are located on the toolbar.
Button | Function |
---|---|
New | Opens a new script. |
Open | Opens an existing script or file. |
Save | Saves a script or file. |
Cut | Cuts the selected text and copies it to the clipboard. |
Copy | Copies the selected text to the clipboard. |
Paste | Pastes the contents of the clipboard at the cursor location. |
Clear Output Pane | Clears all content in the Output Pane. |
Undo | Reverses the action that was just performed. |
Redo | Performs the action that was just undone. |
Run Script | Runs a script. |
Run Selection | Runs a selected portion of a script. |
Stop Execution | Stops a script that is running. |
New Remote PowerShell Tab | Creates a new PowerShell Tab that establishes a session on a remote computer. A dialog box appears and prompts you to enter details required to establish the remote connection. |
Start PowerShell.exe | Opens a PowerShell Console. |
Show Script Pane Top | Moves the Script Pane to the top in the display. |
Show Script Pane Right | Moves the Script Pane to the right in the display. |
Show Script Pane Maximized | Maximizes the Script Pane. |
Script Tab
Displays the name of the script you are editing. You can click a script tab to select the script you want to edit.
When you point to the script tab, the fully qualified path to the script file appears in a tooltip.
Script Pane
Allows you to create and run scripts. You can open, edit and run existing scripts in the Script Pane. For more information, see How to Write and Run Scripts in the Windows PowerShell ISE.
Console Pane
Displays the results of the commands and scripts you have run. You can run commands in the Console pane. You can also copy and clear the contents in the Console Pane.
For more information, see the following articles:
Status Bar
Allows you to see whether the commands and scripts that you run are complete. The status bar is at the very bottom of the display. Selected portions of error messages are displayed on the status bar.
Text-Size Slider
Increases or decreases the size of the text on the screen.
What is PowerShell?
PowerShell is a cross-platform task automation solution made up of a command-line shell, a scripting language, and a configuration management framework. PowerShell runs on Windows, Linux, and macOS.
Shell
PowerShell is modern command shell that includes the best features of other popular shells. Unlike most shells that only accept and return text, PowerShell accepts and returns .NET objects. The shell includes the following features:
- Robust command-line history
- Tab completion and command prediction (See about_PSReadLine)
- Supports command and parameter aliases
- Pipeline for chaining commands
- In-console help system, similar to Unix man pages
Scripting language
As a scripting language, PowerShell is commonly used for automating the management of systems. It is also used to build, test, and deploy solutions, often in CI/CD environments. PowerShell is built on the .NET Common Language Runtime (CLR). All inputs and outputs are .NET objects. No need to parse text output to extract information from output. The PowerShell scripting language includes the following features:
- Extensible through functions, classes, scripts, and modules
- Extensible formatting system for easy output
- Extensible type system for creating dynamic types
- Built-in support for common data formats like CSV, JSON, and XML
Configuration management
PowerShell Desired State Configuration (DSC) is a management framework in PowerShell that enables you to manage your enterprise infrastructure with configuration as code. With DSC, you can:
- Create declarative configurations and custom scripts for repeatable deployments
- Enforce configuration settings and report on configuration drift
- Deploy configuration using push or pull models
Next steps
Getting started
Are you new to PowerShell and don’t know where to start? Take a look at these resources.
PowerShell in action
Take a look at how PowerShell is being used in different scenarios and on different platforms.
PowerShell_ise PowerShell_ise
Интегрированная среда сценариев (ISE) Windows PowerShell — это графическое приложение, позволяющее читать, писать, выполнять, отлаживать и тестировать сценарии и модули в среде с графическим интерфейсом. Windows PowerShell Integrated Scripting Environment (ISE) is a graphical host application that enables you to read, write, run, debug, and test scripts and modules in a graphic-assisted environment. Основные функции, такие как IntelliSense, команда «показывать-Command», фрагменты кода, заполнение нажатием клавиши TAB, выделение синтаксиса, визуальная отладка и контекстная справка, обеспечивают широкие возможности работы с скриптами. Key features such as IntelliSense, Show-Command, snippets, tab completion, syntax-coloring, visual debugging, and context-sensitive Help provide a rich scripting experience.
Использование PowerShell.exe Using PowerShell.exe
Средство PowerShell_ISE.exe запускает сеанс интегрированной среды сценариев Windows PowerShell. The PowerShell_ISE.exe tool starts a Windows PowerShell ISE session. При использовании PowerShell_ISE.exe можно использовать его необязательные параметры, чтобы открыть файлы в интегрированной среде сценариев Windows PowerShell или запустить сеанс интегрированной среды сценариев Windows PowerShell без профиля или с многопоточным апартаментом. When you use PowerShell_ISE.exe, you can use its optional parameters to open files in Windows PowerShell ISE or to start a Windows PowerShell ISE session with no profile or with a multithreaded apartment.
Чтобы запустить сеанс интегрированной среды сценариев Windows PowerShell в окне командной строки, в Windows PowerShell или в меню » Пуск «, введите: To start a Windows PowerShell ISE session in a Command Prompt window, in Windows PowerShell, or at the Start menu, type:
Чтобы открыть скрипт (PS1), модуль скрипта (PSM1), манифест модуля (. PSD1), XML-файл или любой другой поддерживаемый файл в интегрированной среде сценариев Windows PowerShell, введите: To open a script (.ps1), script module (.psm1), module manifest (.psd1), XML file, or any other supported file in Windows PowerShell ISE, type:
В Windows PowerShell 3,0 можно использовать необязательный параметр File , как показано ниже. In Windows PowerShell 3.0, you can use the optional File parameter as follows:
Чтобы запустить сеанс интегрированной среды сценариев Windows PowerShell без профилей Windows PowerShell, используйте параметр- Profile . To start a Windows PowerShell ISE session without your Windows PowerShell profiles, use the NoProfile parameter. (Параметр- Profile появился в Windows PowerShell 3,0.) введите: (The NoProfile parameter is introduced in Windows PowerShell 3.0.), type:
Чтобы просмотреть файл справки PowerShell_ISE.exe, введите: To see the PowerShell_ISE.exe help file, type:
Комментарии Remarks
Полный список параметров командной строки PowerShell_ISE.exe см. в разделе about_PowerShell_Ise.Exe. For a complete list of the PowerShell_ISE.exe command-line parameters, see about_PowerShell_Ise.Exe.
Дополнительные сведения о других способах запуска Windows PowerShell см. в разделе Запуск Windows PowerShell. For information about other ways to start Windows PowerShell, see Starting Windows PowerShell.
Windows PowerShell выполняется в варианте установки Server Core в операционных системах Windows Server. Windows PowerShell runs on the Server Core installation option of Windows Server operating systems. Однако, поскольку интегрированная среда сценариев Windows PowerShell требует графического пользовательского интерфейса, она не выполняется в установках Server Core. However, because Windows PowerShell ISE requires a graphic user interface, it does not run on Server Core installations.