Windows powershell and powershell ise

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.

Обзор интегрированной среды сценариев Windows PowerShell Exploring the Windows PowerShell ISE

Интегрированная среда скриптов (ISE) Windows PowerShell позволяет создавать, выполнять и отлаживать команды и скрипты. You can use the Windows PowerShell Integrated Scripting Environment (ISE) to create, run, and debug commands and scripts. Интегрированная среда сценариев Windows PowerShell состоит из строки меню, вкладок Windows PowerShell, панели инструментов, вкладок сценариев, области сценариев, области консоли, строки состояния, ползунка для размера текста и контекстной справки. 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.

Читайте также:  Windows were unable to complete the format

Строка меню Menu Bar

Строка меню содержит меню Файл, Правка, Вид, Сервис, Отладка, Надстройки и Справка. The menu bar contains the File, Edit, View, Tools, Debug, Add-ons, and Help menus. Кнопки в меню позволяют выполнять задачи, связанные с написанием и запуском сценариев и выполнением команд в ISE Windows PowerShell. 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 Windows PowerShell Tabs

Вкладка Windows PowerShell — это среда, в которой выполняется сценарий Windows PowerShell. A Windows PowerShell tab is the environment in which a Windows PowerShell script runs. Вы можете открыть в ISE Windows PowerShell новые вкладки Windows PowerShell, чтобы создать отдельные среды на локальном или удаленных компьютерах. You can open new Windows PowerShell tabs in the Windows PowerShell ISE to create separate environments on your local computer or on remote computers. Число одновременно открытых вкладок PowerShell не может превышать восьми. 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. 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.
Создать вкладку удаленного использования PowerShell New Remote PowerShell Tab Создает вкладку PowerShell, запускающую сеанс на удаленном компьютере. 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.
Запустить PowerShell.exe Start PowerShell.exe Открывает консоль Windows PowerShell. 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. Дополнительные сведения: Написание и запуск сценариев в интегрированной среде сценариев Windows PowerShell. 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.

The Windows PowerShell ISE

The Windows PowerShell Integrated Scripting Environment (ISE) is a host application for Windows PowerShell. In the ISE, you can run commands and write, test, and debug scripts in a single Windows-based graphic user interface. The ISE provides multiline editing, tab completion, syntax coloring, selective execution, context-sensitive help, and support for right-to-left languages. Menu items and keyboard shortcuts are mapped to many of the same tasks that you would do in the Windows PowerShell console. 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

The ISE was first introduced with Windows PowerShell V2 and was re-designed with PowerShell V3. The ISE is supported in all supported versions of Windows PowerShell up to and including Windows PowerShell V5.1.

The PowerShell ISE is no longer in active feature development. As a shipping component of Windows, it continues to be officially supported for security and high-priority servicing fixes. We currently have no plans to remove the ISE from Windows.

There is no support for the ISE in PowerShell v6 and beyond. Users looking for replacement for the ISE should use Visual Studio Code with the PowerShell Extension.

Key Features

Key features in Windows PowerShell ISE include:

  • 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. Or, press F5 .
  • Context-sensitive help: Type Invoke-Item , and then press F1 . The Help file opens to the article for the Invoke-Item cmdlet.

The Windows PowerShell ISE lets you customize some aspects of its appearance. It also has its own Windows PowerShell profile script.

To start the Windows PowerShell ISE

Click Start, select Windows PowerShell, and then click Windows PowerShell ISE. Alternately, you can type powershell_ise.exe in any command shell or in the Run box.

To get Help in the Windows PowerShell ISE

On the Help menu, click Windows PowerShell Help. Or, press F1 . The file that opens describes Windows PowerShell ISE and Windows PowerShell, including all the help available from the Get-Help cmdlet.

Интегрированная среда сценариев 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.

Читайте также:  Использование диска 100 процентов windows
Оцените статью