Windows powershell install exe

Установка 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.

Installing Windows PowerShell

Windows PowerShell comes installed by default in every Windows, starting with Windows 7 SP1 and Windows Server 2008 R2 SP1.

If you are interested in PowerShell 6 and later, you need to install PowerShell Core instead of Windows PowerShell. For that, see Installing PowerShell Core on Windows.

Finding PowerShell in Windows 10, 8.1, 8.0, and 7

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.

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
Windows 10 Click left lower corner Windows icon, start typing PowerShell
Windows 8.1, 8.0 On the start screen, start typing PowerShell.
If on desktop, click left lower corner Windows icon, start typing PowerShell
Windows 7 SP1 Click left lower corner Windows icon, on the search box start typing PowerShell

For ISE

Version Location
Windows 10 Click left lower corner Windows icon, start typing ISE
Windows 8.1, 8.0 On the start screen, type PowerShell ISE.
If on desktop, click left lower corner Windows icon, type PowerShell ISE
Windows 7 SP1 Click left lower corner Windows icon, on the search box start typing PowerShell

Finding PowerShell in Windows Server versions

Starting with Windows Server 2008 R2, Windows operating system can be installed without the graphical user interface (GUI). Editions of Windows Server without GUI are named Core editions, and editions with the GUI are named Desktop.

Windows Server Core editions

In all Core editions, when you log to the server you get a Windows command prompt window.

Type powershell and press ENTER to start PowerShell inside the command prompt session. Type exit to terminate the PowerShell session and return to command prompt.

Windows Server Desktop editions

In all desktop editions, click the left lower corner Windows icon, start typing PowerShell. You get both console and ISE options.

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.

How to check the version of PowerShell

To find which version of PowerShell you have installed, start a PowerShell console (or the ISE) and type $PSVersionTable and press ENTER. Look for the PSVersion value.

Upgrading existing Windows PowerShell

The installation package for PowerShell comes inside a WMF installer. The version of the WMF installer matches the version of PowerShell; there’s no stand alone installer for 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 PS 3.0 PS 4.0 PS 5.0 PS 5.1
Windows 10 (see Note1)
Windows Server 2016
installed
Windows 8.1
Windows Server 2012 R2
installed WMF 5.0 WMF 5.1
Windows 8
Windows Server 2012
installed WMF 4.0 WMF 5.0 WMF 5.1
Windows 7 SP1
Windows Server 2008 R2 SP1
WMF 3.0 WMF 4.0 WMF 5.0 WMF 5.1

On the initial release of Windows 10, with automatic updates enabled, PowerShell gets updated from version 5.0 to 5.1. If the original version of Windows 10 is not updated through Windows Updates, the version of PowerShell is 5.0.

Need Azure PowerShell

If you’re looking for Azure PowerShell, you could start with Overview of Azure PowerShell.

Скачивание и установка 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.

Чтобы проверить правильность настройки политики выполнения, в командной строке 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:

После запуска службы 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 phone для андроид
Оцените статью