Windows powershell windows 2008r2

Установка Windows PowerShell Installing Windows PowerShell

Windows PowerShell установлен по умолчанию в каждой ОС Windows, начиная с Windows 7 с пакетом обновления 1 (SP1) и Windows Server 2008 R2 с пакетом обновления 1 (SP1). Windows PowerShell comes installed by default in every Windows, starting with Windows 7 SP1 and Windows Server 2008 R2 SP1.

Если вас интересует PowerShell версии 6 или более поздней, вам нужно установить PowerShell Core вместо Windows PowerShell. If you are interested in PowerShell 6 and later, you need to install PowerShell Core instead of Windows PowerShell. Дополнительные сведения см. в статье Установка PowerShell Core в Windows. For that, see Installing PowerShell Core on Windows.

Поиск PowerShell в Windows 10, 8.1, 8.0 и 7 Finding PowerShell in Windows 10, 8.1, 8.0, and 7

Иногда найти консоль или ISE (интегрированную среду сценариев) PowerShell в Windows бывает непросто, так как их расположение в разных версиях Windows отличается. Sometimes locating PowerShell console or the Integrated Scripting Environment (ISE) in Windows can be difficult, as its location moves from one version of Windows to the next.

Следующие таблицы помогут найти PowerShell в вашей версии Windows. The following tables should help you find PowerShell in your Windows version. Все указанные версии являются оригинальными, сразу после выпуска и без обновлений. All versions listed here are the original version, as released, with no updates.

Консоль For Console

Версия Version Location Location
Windows 10 Windows 10 Щелкните значок Windows в левом нижнем углу и начните вводить PowerShell. Click left lower corner Windows icon, start typing PowerShell
Windows 8.1, 8.0 Windows 8.1, 8.0 На начальном экране начните вводить PowerShell. On the start screen, start typing PowerShell.
Если вы находитесь на рабочем столе, щелкните значок Windows в левом нижнем углу и начните вводить PowerShell. If on desktop, click left lower corner Windows icon, start typing PowerShell
Windows 7 с пакетом обновления 1 (SP1) Windows 7 SP1 Щелкните значок Windows в левом нижнем углу и в поле поиска начните вводить PowerShell. Click left lower corner Windows icon, on the search box start typing PowerShell

ISE For ISE

Версия Version Location Location
Windows 10 Windows 10 Щелкните значок Windows в левом нижнем углу и начните вводить ISE. Click left lower corner Windows icon, start typing ISE
Windows 8.1, 8.0 Windows 8.1, 8.0 На начальном экране введите PowerShell ISE. On the start screen, type PowerShell ISE.
Если вы находитесь на рабочем столе, щелкните значок Windows в левом нижнем углу и введите PowerShell ISE. If on desktop, click left lower corner Windows icon, type PowerShell ISE
Windows 7 с пакетом обновления 1 (SP1) Windows 7 SP1 Щелкните значок Windows в левом нижнем углу и в поле поиска начните вводить PowerShell. Click left lower corner Windows icon, on the search box start typing PowerShell

Поиск PowerShell в версиях Windows Server Finding PowerShell in Windows Server versions

Начиная с Windows Server 2008 R2, операционную систему Windows можно установить без графического пользовательского интерфейса (GUI). Starting with Windows Server 2008 R2, Windows operating system can be installed without the graphical user interface (GUI). Выпуски Windows Server без GUI называются выпусками Core , а выпуски с GUI — Desktop. Editions of Windows Server without GUI are named Core editions, and editions with the GUI are named Desktop.

Выпуски Windows Server Core Windows Server Core editions

Во всех выпусках Core при входе на сервер открывается окно командной строки Windows. In all Core editions, when you log to the server you get a Windows command prompt window.

Введите powershell и нажмите клавишу ВВОД , чтобы запустить PowerShell в сеансе командной строки. Type powershell and press ENTER to start PowerShell inside the command prompt session. Введите exit , чтобы завершить сеанс PowerShell и вернуться к командной строке. Type exit to terminate the PowerShell session and return to command prompt.

Выпуски Windows Server Desktop Windows Server Desktop editions

Во всех выпусках Desktop нужно щелкнуть значок Windows в левом нижнем углу и начать вводить PowerShell. In all desktop editions, click the left lower corner Windows icon, start typing PowerShell. Появятся параметры консоли и ISE. You get both console and ISE options.

Единственное исключение из этого правила — ISE в Windows Server 2008 R2 с пакетом обновления 1 (SP1). В этом случае щелкните значок Windows в левом нижнем углу и введите PowerShell ISE. The only exception to the above rule is the ISE in Windows Server 2008 R2 SP1; in this case, click the left lower corner Windows icon, type PowerShell ISE.

Проверка версии PowerShell How to check the version of PowerShell

Чтобы узнать, какая версия PowerShell установлена, запустите консоль PowerShell (или ISE), введите $PSVersionTable и нажмите клавишу ВВОД. To find which version of PowerShell you have installed, start a PowerShell console (or the ISE) and type $PSVersionTable and press ENTER. Найдите значение PSVersion . Look for the PSVersion value.

Обновление существующей версии Windows PowerShell Upgrading existing Windows PowerShell

В пакет установки для PowerShell входит установщик WMF. The installation package for PowerShell comes inside a WMF installer. Версия установщика WMF совпадает с версией PowerShell. Для Windows PowerShell нет отдельного установщика. The version of the WMF installer matches the version of PowerShell; there’s no stand alone installer for Windows PowerShell.

Если вам нужно обновить существующую версию PowerShell, в Windows используйте следующую таблицу, чтобы найти установщик для нужной версии PowerShell. If you need to update your existing version of PowerShell, in Windows, use the following table to locate the installer for the version of PowerShell you want to update to.

Windows Windows PS 3.0 PS 3.0 PS 4.0 PS 4.0 PS 5.0 PS 5.0 PS 5.1 PS 5.1
Windows 10 (см. примечание 1) Windows 10 (see Note1)
Windows Server 2016 Windows Server 2016
установлено installed
Windows 8.1 Windows 8.1
Windows Server 2012 R2 Windows Server 2012 R2
установлено installed WMF 5.0 WMF 5.0 WMF 5.1 WMF 5.1
Windows 8 Windows 8
Windows Server 2012 Windows Server 2012
установлено installed WMF 4.0 WMF 4.0 WMF 5.0 WMF 5.0 WMF 5.1 WMF 5.1
Windows 7 с пакетом обновления 1 (SP1) Windows 7 SP1
Windows Server 2008 R2 с пакетом обновления 1 (SP1) Windows Server 2008 R2 SP1
WMF 3.0 WMF 3.0 WMF 4.0 WMF 4.0 WMF 5.0 WMF 5.0 WMF 5.1 WMF 5.1

Если в начальном выпуске Windows 10 включены автоматические обновления, PowerShell обновляется с версии 5.0 до 5.1. On the initial release of Windows 10, with automatic updates enabled, PowerShell gets updated from version 5.0 to 5.1. Если оригинальная версия Windows 10 не обновлена в Центре обновления Windows, версия PowerShell будет 5.0. If the original version of Windows 10 is not updated through Windows Updates, the version of PowerShell is 5.0.

Необходимость Azure PowerShell Need Azure PowerShell

Если вы ищете Azure PowerShell , можно начать с раздела Общие сведения об Azure PowerShell. If you’re looking for Azure PowerShell , you could start with Overview of Azure PowerShell.

Установка подсистемы Windows PowerShell 2.0 Installing the Windows PowerShell 2.0 Engine

В этом разделе описывается установка модуля Windows PowerShell 2.0. This topic explains how to install the Windows PowerShell 2.0 Engine.

Windows PowerShell 3.0 предназначен для обратной совместимости с Windows PowerShell 2.0. Windows PowerShell 3.0 is designed to be backwards compatible with Windows PowerShell 2.0. Командлеты, поставщики, оснастки, модули и сценарии, написанные для Windows PowerShell 2.0, выполняются и в Windows PowerShell 3.0, и Windows PowerShell 4.0 без изменений. Cmdlets, providers, snap-ins, modules, and scripts written for Windows PowerShell 2.0 run unchanged in Windows PowerShell 3.0 and Windows PowerShell 4.0. Однако из-за изменений в политике активации среды выполнения в Microsoft .NET Framework 4 основные программы Windows PowerShell, написанные для Windows PowerShell 2.0 и скомпилированные с помощью среды CLR 2.0, не могут выполняться в последующих выпусках Windows PowerShell 4.0, компилируемых в среде CLR 2.0, без изменений. However, due to a change in the runtime activation policy in Microsoft .NET Framework 4, Windows PowerShell host programs that were written for Windows PowerShell 2.0 and compiled with Common Language Runtime (CLR) 2.0 cannot run without modification in later releases of Windows PowerShell, which is compiled with CLR 4.0.

Чтобы обеспечить обратную совместимость с командами и основными программами, которые были затронуты этими изменениями, подсистемы Windows PowerShell 2.0, Windows PowerShell 3.0 и Windows PowerShell 4.0 рассчитаны на параллельное выполнение. To maintain backward compatibility with commands and host programs that are affected by these changes, the Windows PowerShell 2.0, Windows PowerShell 3.0, and Windows PowerShell 4.0 engines are designed to run side-by-side. Кроме того, подсистема Windows PowerShell 2.0 входит в Windows Server 2012 R2, Windows 8.1, Windows 8, Windows Server 2012 и Windows Management Framework 3.0. Also, the Windows PowerShell 2.0 Engine is included in Windows Server 2012 R2, Windows 8.1, Windows 8, Windows Server 2012, and Windows Management Framework 3.0. Подсистема Windows PowerShell 2.0 предназначена для использования только в том случае, если выполнение существующего сценария или существующей основной программы невозможно из-за несовместимости с Windows PowerShell 3.0, Windows PowerShell 4.0 или Microsoft .NET Framework 4. The Windows PowerShell 2.0 Engine is intended to be used only when an existing script or host program cannot run because it is incompatible with Windows PowerShell 3.0, Windows PowerShell 4.0, or Microsoft .NET Framework 4. Такие ситуации довольно редки. Such cases are expected to be rare.

Обработчик Windows PowerShell 2.0 представляет собой дополнительный компонент Windows Server 2012 R2, Windows 8.1, Windows® 8 и Windows Server® 2012. The Windows PowerShell 2.0 Engine is an optional feature of Windows Server 2012 R2, Windows 8.1, Windows® 8 and Windows Server® 2012. В более ранних версиях Windows при установке Windows Management Framework 3.0 установка Windows PowerShell 3.0 полностью заменяет установку Windows PowerShell 2.0 в каталоге установки Windows PowerShell. On earlier versions of Windows, when you install Windows Management Framework 3.0, the Windows PowerShell 3.0 installation completely replaces the Windows PowerShell 2.0 installation in the Windows PowerShell installation directory. При этом подсистема Windows PowerShell 2.0 сохраняется. However, the Windows PowerShell 2.0 Engine is retained.

Дополнительные сведения о запуске подсистемы Windows PowerShell 2.0 см. в статье Запуск подсистемы Windows PowerShell 2.0. For information about starting the Windows PowerShell 2.0 Engine, see Starting the Windows PowerShell 2.0 Engine.

Windows 8.1 и Windows 8 On Windows 8.1 and Windows 8

В Windows 8.1 и Windows 8 функция подсистемы Windows PowerShell 2.0 по умолчанию включена. On Windows 8.1 and Windows 8, the Windows PowerShell 2.0 Engine feature is turned on by default. Однако для его использования следует включить параметр для необходимой ему платформы Microsoft .NET Framework 3.5. However, to use it, you need to turn on the option for Microsoft .NET Framework 3.5, which it requires. Этот раздел также поясняет, как включать и отключить компонент подсистемы Windows PowerShell 2.0. This section also explains how to turn the Windows PowerShell 2.0 Engine feature on and off.

Включение .NET Framework 3.5 To turn on .NET Framework 3.5

На экране Пуск введите компоненты Windows. On the Start screen, type Windows Features.

В панели Приложения щелкните Параметры , а затем выберите Включение или отключение компонентов Windows. On the Apps bar, click Settings , and then click Turn Windows features on or off.

В поле Компоненты Windows выберите элемент .NET Framework 3.5 (включает .NET 2.0 и 3.0). In the Windows Features box, click .NET Framework 3.5 (includes .NET 2.0 and 3.0 to select it.

При выборе элемента .NET Framework 3.5 (включает .NET 2.0 и 3.0) поле заливается, указывая, что выбрана только часть компонента. When you select .NET Framework 3.5 (includes .NET 2.0 and 3.0 , the box fills to indicate that only part of the feature is selected. Этого достаточно для подсистемы Windows PowerShell 2.0. However, this is sufficient for the Windows PowerShell 2.0 Engine.

Включение и отключение подсистемы Windows PowerShell 2.0 To turn the Windows PowerShell 2.0 Engine on and off

На экране Пуск введите компоненты Windows. On the Start screen, type Windows Features.

В панели Приложения щелкните Параметры , а затем выберите Включение или отключение компонентов Windows. On the Apps bar, click Settings , and then click Turn Windows features on or off.

В поле Компоненты Windows разверните узел Windows PowerShell 2.0 и установите либо снимите флажок Windows PowerShell 2.0 Engine. In the Windows Features box, expand the Windows PowerShell 2.0 node, and click the Windows PowerShell 2.0 Engine box to select or clear it.

Windows Server 2012 или Windows Server 2012 R2 On Windows Server 2012 R2 and Windows Server 2012

Для добавления подсистемы Windows PowerShell 2.0 и компонентов Microsoft .NET Framework 3.5 используйте описанные ниже процедуры. Use the following procedures to add the Windows PowerShell 2.0 Engine and Microsoft .NET Framework 3.5 features. Подсистеме Windows PowerShell 2.0 требуется Microsoft .NET Framework версии не ниже 2.0.50727. The Windows PowerShell 2.0 Engine requires Microsoft .NET Framework 2.0.50727 at a minimum. Этому требованию удовлетворяет Microsoft .NET Framework 3.5. This requirement is fulfilled by Microsoft .NET Framework 3.5.

Добавление компонента .NET Framework 3.5 To add the .NET Framework 3.5 feature

В меню Управление****диспетчера сервера выберите Добавить роли и компоненты. In Server Manager , from the Manage menu, select Add Roles and Features.

Можно также выбрать Все серверы в диспетчере сервера , щелкнуть имя сервера правой кнопкой мыши и выбрать Добавить роли и компоненты. Or in Server Manager , click All Servers , right-click a server name, and then select Add Roles and Features.

На странице Тип установки выберите Установка ролей или компонентов. On the Installation Type page, select Role-based or feature-based installation.

На странице Компоненты разверните узел Компоненты .NET Framework 3.5 и выберите команду .NET Framework 3.5 (включает .NET 2.0 и 3.0). On the Features page, expand the .NET 3.5 Framework Features node and select .NET Framework 3.5 (includes .NET 2.0 and 3.0).

Другие параметры в этом узле для подсистемы Windows PowerShell 2.0 не требуются. The other options under that node are not required for the Windows PowerShell 2.0 Engine.

Добавление функции подсистемы Windows PowerShell 2.0 To add the Windows PowerShell 2.0 Engine feature

В меню Управление****диспетчера сервера выберите Добавить роли и компоненты. In Server Manager , from the Manage menu, select Add Roles and Features.

Можно также щелкнуть Все серверы в диспетчере сервера , щелкнуть имя сервера правой кнопкой мыши и выбрать Добавить роли и компоненты. Or Server Manager , click All Servers , right-click a server name, and then select Add Roles and Features.

На странице Тип установки выберите Установка ролей или компонентов. On the Installation Type page, select Role-based or feature-based installation.

На странице Компоненты раскройте Windows PowerShell (установлено) и выберите пункт Подсистема Windows PowerShell 2.0. On the Features page, expand the Windows PowerShell (Installed) node and select Windows PowerShell 2.0 Engine.

Дополнительные сведения о запуске подсистемы Windows PowerShell 2.0 см. в статье Запуск подсистемы Windows PowerShell 2.0. For information about starting the Windows PowerShell 2.0 Engine, see Starting the Windows PowerShell 2.0 Engine.

В предыдущих версиях систем On Earlier Systems

Пакет Windows Management Framework 4.0, устанавливающий Windows PowerShell 4.0 в Windows 7, Windows Server 2008 R2 и Windows Server 2012, включает подсистему Windows PowerShell 2.0. The Windows Management Framework 4.0 package that installs Windows PowerShell 4.0 on Windows 7, Windows Server 2008 R2, and Windows Server 2012, includes the Windows PowerShell 2.0 Engine. Подсистема Windows PowerShell 2.0 включена и готова к использованию без дополнительной установки, настройки или конфигурации. The Windows PowerShell 2.0 Engine is enabled and ready to use, if necessary, without additional installation, setup, or configuration.

Пакет Windows Management Framework 3.0, устанавливающий Windows PowerShell 3.0 в Windows 7, Windows Server 2008 R2 и Windows Server 2008, включает подсистему Windows PowerShell 2.0. The Windows Management Framework 3.0 package that installs Windows PowerShell 3.0 on Windows 7, Windows Server 2008 R2, and Windows Server 2008, includes the Windows PowerShell 2.0 Engine. Подсистема Windows PowerShell 2.0 включена и готова к использованию без дополнительной установки, настройки или конфигурации. The Windows PowerShell 2.0 Engine is enabled and ready to use, if necessary, without additional installation, setup, or configuration.

Читайте также:  Как называется файл специальных возможностей windows
Оцените статью