Windows powershell ise установить

Скачивание и установка Windows PowerShell 5.1 Download and install Windows PowerShell 5.1

Если вы используете юбилейное обновление Windows 10 или Windows Server 2016, у вас уже должно быть приложение Windows PowerShell 5.1. If you are using Windows 10 Anniversary Update, or Windows Server 2016, you should already have Windows PowerShell 5.1. Это обусловлено тем, что это приложение входит в состав этих операционных систем. That’s because this application comes preinstalled with those operating systems.

Чтобы узнать, какую версию Microsoft PowerShell вы используете, выполните следующие действия на компьютере под управлением ОС Windows 7, Windows Server 2008 R2 или Windows Server 2012: To determine which version of Microsoft PowerShelll you are using, do the following on your Windows 7 or Windows Server 2008 R2 or Windows Server 2012 computer:

В меню Пуск последовательно выберите пункты Все программы, Стандартные, Windows PowerShell и затем щелкните Windows PowerShell. Click Start, click All Programs, click Accessories, click Windows PowerShell, and then click Windows PowerShell.

В консоли PowerShell введите следующую команду и нажмите клавишу ВВОД: In the PowerShell console, type the following command and then press ENTER:

В окне консоли должны отобразиться примерно такие сведения: Information similar to the following should then be displayed in the console window:

Если возвращается номер версии 5.1, значит вы используете Windows PowerShell 5.1. If the returned Version number is 5.1, then you are running Windows PowerShell 5.1. В противном случае вам необходимо установить Windows PowerShell 5.1. If the returned Version number is not 5.1, then you’ll need to install Windows PowerShell 5.1. Для этого можно скачать платформу Windows Management Framework 5.1, в состав которой входит среда Windows PowerShell 5.1, из Центра загрузки Майкрософт. You can download Windows Management Framework 5.1, which includes Windows PowerShell 5.1, from the Microsoft Download Center.

Если вы убедились, что у вас установлена версия Windows PowerShell 5.1, необходимо проверить, настроена ли версия PowerShell для работы с удаленно исполняемыми сценариями. After you’ve verified that Windows PowerShell 5.1 is installed, you must make sure that PowerShell has been configured for running remote scripts. Для этого запустите приложение PowerShell от имени администратора. To do that, start PowerShell as an administrator. В ОС Windows 7, Windows Server 2008 R2, Windows Server 2012 или Windows Server 2012 R2 выполните следующие действия: On Windows 7, Windows Server 2008 R2, Windows Server 2012, or Windows Server 2012 R2 do the following:

В меню Пуск последовательно выберите пункты Все программы, Стандартные и Windows PowerShell. Затем щелкните элемент Windows PowerShell правой кнопкой мыши и выберите Запуск от имени администратора. Click Start, click All Programs, click Accessories, click Windows PowerShell, right-click Windows PowerShell, and then click Run as administrator.

Если появится диалоговое окно Контроль учетных записей, нажмите кнопку Да, чтобы разрешить запуск PowerShell с правами администратора. If the User Account Control dialog box appears, click Yes to verify that you want to run PowerShell under administrator credentials.

В системе Windows 8 выполните указанные ниже действия. If you are running Windows 8, complete this procedure instead:

Откройте панель чудо-кнопок и выберите Поиск, после чего щелкните правой кнопкой мыши элемент Windows PowerShell. Для быстрого доступа к панели чудо-кнопок на любом компьютере под управлением ОС Windows 8 (независимо от наличия сенсорного экрана) нажмите клавишу Windows и, не отпуская ее, клавишу C. Access the Charms bar, click Search, and then right-click Windows PowerShell. You can quickly access the Charms bar on any Windows 8 computer (touch screen or non-touch screen) by holding down the Windows key and pressing C.

В панели инструментов внизу экрана выберите пункт Запуск от имени администратора. In the toolbar at the bottom of the screen, click Run as administrator.

Если появится диалоговое окно Контроль учетных записей, нажмите кнопку Да, чтобы разрешить запуск PowerShell с правами администратора. If the User Account Control dialog box appears, click Yes to verify that you want to run PowerShell under administrator credentials.

После запуска PowerShell необходимо разрешить работу с удаленными сценариями в политике выполнения. Для этого в консоли PowerShell введите следующую команду и нажмите клавишу ВВОД: After PowerShell is running, you must change the execution policy to allow the running of remote scripts. In the PowerShell console, type the following command and then press ENTER:

При выполнении этой команды может появляться следующее сообщение об ошибке: > Set-ExecutionPolicy: Доступ к разделу реестра «HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Micrsoft.PowerShell» запрещен. When you run the preceding command, you might receive the following error message:> Set-ExecutionPolicy : Access to the registry key’HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Micrsoft.PowerShell’ is denied. Как правило, это сообщение выводится, если вы запустили PowerShell без прав администратора. This error message typically occurs if you are not running PowerShell under administrator credentials. Чтобы исправить эту ошибку, закройте сеанс PowerShell и запустите новый сеанс от имени администратора. Close your session of PowerShell, and start a new session as an administrator.

Читайте также:  Windows ограничивает оперативную память

Чтобы проверить правильность настройки политики выполнения, в командной строке PowerShell введите следующую команду и нажмите клавишу ВВОД: To verify that the execution policy has been configured correctly, type the following at the PowerShell prompt and then press ENTER:

Если все настроено правильно, команда вернет следующее значение: If you get back the following value, then everything has been configured correctly:

Если вы не используете Windows PowerShell 5.1, вам также необходимо скачать и установить платформу Windows Management Framework 5.1 из Центра загрузки Майкрософт. If you are not currently running Windows PowerShell 5.1, you’ll also need to download and install Windows Management Framework 5.1 from the Microsoft Download Center. Этот пакет установки включает в себя Windows PowerShell 5.1 и Windows Remote Management (WinRM) 3.0. This is an installation package that includes Windows PowerShell 5.1 and Windows Remote Management (WinRM) 3.0. Его можно использовать, например, если вы работаете в ОС Windows 7 с пакетом обновления 1 (SP1) и еще не выполнили обновление до Windows PowerShell 5.1. This installation package might be required if you, for example, are running Windows 7 SP1 and have not yet updated to Windows PowerShell 5.1. В системах Windows Server 2016 и Windows 10 с юбилейным обновлением устанавливать приложение Windows PowerShell 5.1 обычно не требуется. If you are running Windows Server 2016, or Windows 10 Anniversary Update, there should be no need to install Windows PowerShell 5.1. Версия Windows PowerShell 5.1 входит в состав этих операционных систем. Windows PowerShell 5.1 comes preinstalled on those operating systems.

Перед установкой Windows Management Framework 5.1 проверьте выполнение перечисленных ниже условий. Before installing Windows Management Framework 5.1:

Убедитесь, что вы скачали правильную версию пакета установки. Make sure you have downloaded the correct version of the installation package. Для 64-разрядной версии Windows 7 с пакетом обновления 1 (SP1) скачайте файл Win7AndW2K8R2-KB3191566-x64.ZIP. If you are running the 64-bit version of Windows 7 SP1, download the file Win7AndW2K8R2-KB3191566-x64.ZIP. Для 32-разрядной версии Windows 7 необходимо скачать файл Win7-KB3191566-x86.ZIP. If you are running the 32-bit version of Windows 7, download the file Win7-KB3191566-x86.ZIP.

Для системы Windows 7 должен быть установлен пакет обновления 1. If you are running Windows 7 on your computer, make sure that you have installed Windows 7 Service Pack 1.

Если вы не знаете свою версию Windows или не уверены, установлен ли у вас пакет обновления 1 для Windows 7, откройте меню Пуск, щелкните правой кнопкой мыши пункт Компьютер и выберите пункт Свойства. Нужная информация будет представлена в диалоговом окне «Система». If you aren’t sure which version of Windows you are running, or you aren’t sure if you’ve installed Windows 7 Service Pack 1, click Start, right-click Computer, and then click Properties. This information will be reported in the System dialog box.

Чтобы установить Windows Management Framework 5.1, выполните процедуру из статьи Установка и настройка WMF 5.1. To install Windows Management Framework 5.1, complete the procedure in Install and Configure WMF 5.1.

После перезагрузки проверьте работоспособность Windows PowerShell и возможность запуска этого приложения от имени администратора. Для этого выполните следующие действия: After the computer has rebooted, verify that Windows PowerShell can start and that the application can be run under administrative credentials. To do this:

В меню Пуск последовательно выберите пункты Все программы, Стандартные и Windows PowerShell. Затем щелкните элемент Windows PowerShell правой кнопкой мыши и выберите Запуск от имени администратора. Click Start, click All Programs, click Accessories, click Windows PowerShell, right-click Windows PowerShell and then click Run as administrator.

Если появится диалоговое окно «Контроль учетных записей», нажмите кнопку Да, чтобы разрешить запуск PowerShell с правами администратора. If the User Account Control dialog box appears, click Yes to verify that you want to run PowerShell under administrator credentials.

В появившейся консоли PowerShell необходимо убедиться, что служба WinRM запущена и правильно настроена. Для этого в командной строке PowerShell введите следующую команду и нажмите клавишу ВВОД: When the PowerShell console appears, you should then verify that the WinRM service is running and has been configured correctly. To verify that the service is running, type the following command at the PowerShell prompt and then press ENTER:

На экране появятся сведения о службе WinRM: Information about the WinRM service will then be displayed on screen:

Если в столбце состояния не указано, что служба WinRM запущена, запустите ее. Для этого введите следующую команду и нажмите клавишу ВВОД: If the service Status does not equal «Running», start the WinRM service by typing the following command and then pressing ENTER:

Читайте также:  Установка windows с wintoflash

После запуска службы WinRM введите следующую команду, чтобы убедиться, что используется базовая проверка подлинности: After the service has started, run the following command to make sure that WinRM is using Basic authentication:

На экране появятся примерно следующие сведения: Information similar to the following will be displayed onscreen:

Если настроена и применяется обычная проверка подлинности, вы можете использовать PowerShell для соединения с приложением Skype для бизнеса Online. If basic authentication has been set to true, then you’re ready to use PowerShell to connect to Skype for Business Online.

Впервые в Office 365? New to Office 365?

Ознакомьтесь с бесплатными видеокурсами для администраторов Office 365 и ИТ-специалистов, предоставленными на платформе LinkedIn Learning. Discover free video courses for Office 365 admins and IT pros, brought to you by LinkedIn Learning.

Установка подсистемы 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.

Читайте также:  Клиент удаленного рабочего стола для linux

В поле Компоненты 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.

Оцените статью