Windows core command line

Содержание
  1. Windows 10 IoT Core Command Line Utils
  2. IoT Core-specific Command Line Utils
  3. Setting startup app:
  4. Change settings for region and user or speech language:
  5. Change default audio device and volume:
  6. Manually installing .APPX files:
  7. General Command Line Utils
  8. Update account password:
  9. Create local user accounts:
  10. Set password:
  11. Query and set device name:
  12. Basic network configuration:
  13. Copy utilities:
  14. Process Management:
  15. Set Boot Option (Headless vs. headed boot):
  16. Task scheduler:
  17. Device drivers:
  18. Registry Access:
  19. Services:
  20. Boot configuration:
  21. Shutdown/restart device:
  22. Viewing and changing display settings
  23. Take screenshot:
  24. Get information about Network Adapters:
  25. Set folder permissions for UWP apps:
  26. Work with Serial Ports:
  27. Windows commands
  28. Prerequisites
  29. Command shell overview
  30. Command-line reference A-Z
  31. Служебные программы командной строки Windows 10 IoT базовая Windows 10 IoT Core Command Line Utils
  32. Служебные программы командной строки IoT ядра IoT Core-specific Command Line Utils
  33. Настройка запускаемого приложения: Setting startup app:
  34. Изменение параметров для региона и пользователя или языка речи: Change settings for region and user or speech language:
  35. Изменить звуковое устройство по умолчанию и громкость: Change default audio device and volume:
  36. Установка вручную. APPX файлы: Manually installing .APPX files:
  37. Общие служебные программы командной строки General Command Line Utils
  38. Обновление пароля учетной записи: Update account password:
  39. Создание локальных учетных записей пользователей: Create local user accounts:
  40. Задать пароль: Set password:
  41. Запросите и задайте имя устройства: Query and set device name:
  42. Базовая конфигурация сети: Basic network configuration:
  43. Программы копирования: Copy utilities:
  44. Управление процессами: Process Management:
  45. Задать параметр загрузки (без монитора): Set Boot Option (Headless vs. headed boot):
  46. Планировщик заданий: Task scheduler:
  47. Драйверы устройств: Device drivers:
  48. Доступ к реестру: Registry Access:
  49. Службы. Services:
  50. Конфигурация загрузки: Boot configuration:
  51. Завершение работы или перезапуск устройства: Shutdown/restart device:
  52. Просмотр и изменение параметров отображения Viewing and changing display settings
  53. Сделать снимок экрана: Take screenshot:
  54. Получение сведений о сетевых адаптерах: Get information about Network Adapters:
  55. Задайте разрешения папки для приложений UWP: Set folder permissions for UWP apps:
  56. Работа с последовательными портами: Work with Serial Ports:

Windows 10 IoT Core Command Line Utils

Looking to configure some of the settings on your device? The below tools are available at your disposal. Use PowerShell to run these commands after connecting to your device.

These tools are not pre-loaded — you will need to include appropriate feature IDs to get these tools in the image.

IoT Core-specific Command Line Utils

Setting startup app:

Use the startup editor to configure startup apps on your Windows IoT Core device. Run IotStartup with any of the following options:

  • IotStartup list lists installed applications
  • IotStartup list headed lists installed headed applications
  • IotStartup list headless lists installed headless applications
  • IotStartup list [MyApp] list installed applications that match pattern MyApp
  • IotStartup add adds headed and headless applications
  • IotStartup add headed [MyApp] adds headed applications that match pattern MyApp . Pattern must match only one application.
  • IotStartup add headless [Task1] adds headless applications that match pattern Task1
  • IotStartup remove removes headed and headless applications
  • IotStartup remove headed [MyApp] removes headed applications that match pattern MyApp
  • IotStartup remove headless [Task1] removes headless applications that match pattern Task1
  • IotStartup startup lists headed and headless applications registered for startup
  • IotStartup startup [MyApp] lists headed and headless applications registered for startup that match pattern MyApp
  • IotStartup startup headed [MyApp] lists headed applications registered for startup that match MyApp
  • IotStartup startup headless [Task1] lists headless applications registered for startup that match Task1
  • IotStartup run [MyApp] start app identified by MyApp
  • IotStartup stop [MyApp] stop app identified by MyApp
  • For further help, try IotStartup help

Change settings for region and user or speech language:

The IoTSettings tool changes region, user language, or speech language. This is a command line tool that can be invoked from an application using the ProcessLauncher API. These commands must be run as default account, not administrator.

  • IotSettings del account deletes all MSA or Azure AD accounts on the system or a specific account. Specific accounts take the form username@provider.com
  • IotSettings del diagnostics deletes diagnostic information in the cloud for the current device. Note that this removes the history up to the time of invocation. New diagnostics information will continue to be logged.
  • IotSettings list account lists all MSA or Azure AD accounts that have been signed into the device.
  • IotSettings list uilanguage lists all UI languages
  • IotSettings list speechlanguage lists all speech languages
  • IotSettings get uilanguage displays current UI language
  • IotSettings get speechlanguage displays current speech language
  • IotSettings get region displays current region
  • IotSettings set uilanguage language\_tag — (e.g. fr-CA) sets default UI language French Canadian)
  • IotSettings set speechlanguage language\_tag — (e.g. fr-CA) sets speech language French Canadian)
  • IotSettings set region region\_code — (e.g. CA) sets default region to Canada)
  • IotSettings set bluetoothpref Specifies the Bluetooth role preference to select when devices built with both IOT_BLUETOOTH_A2DP_SOURCE and IOT_BLUETOOTH_A2DP_SINK features connect to another device that also supports both roles.
  • IotSettings get bluetoothpref returns the current Bluetooth role preference for devices built with both IOT_BLUETOOTH_A2DP_SOURCE and IOT_BLUETOOTH_A2DP_SINK. The default is source.

IoTSettings -list uiLanguage will give back the list of supported UI language (in the version of Windows IoT core image it has been executed against)

Change default audio device and volume:

The IoTCoreAudioControlTool tool controls audio related options, such as setting default capture and playback devices and changing the volume. For a full list of parameters, run IoTCoreAudioControlTool h .

Manually installing .APPX files:

DeployAppx enables installing, and removing in .APPX packages in development scenarios. The correct method for installing .APPX packages in production images is to use a provisioning package as documented in the Install your app subject. DeployAppx also supports querying .APPX package information.

  • DeployAppx install MyApp.appx installs the .APPX and the certificate of the same name if found.
  • DeployAppx install force MyApp.appx forces uninstalling the currently installed .APPX with the same package name if found before installing the new .APPX. This is useful for installing an .APPX with the same or lower version number as the currently installed .APPX.
  • DeployAppx install retry MyApp.appx retry installing the .APPX 10 times on failure with 2-second delay between attempts.
  • DeployAppx uninstall App_1.0.1.0_x86__publisherid123 uninstall the .appx with the matching package full name.
  • DeployAppx uninstall MyApp.appx uninstall any installed .APPX with a matching package family name.
  • DeployAppx getpackages lists installed package full names.
  • DeployAppx getpackageid IotCoreDefaultApp.appx prints out the package name, the package family name, and the package full name for the .APPX.
  • DeployAppx register appxmanifest.xml unsupported

General Command Line Utils

Update account password:

It is highly recommended that you update the default password for the Administrator account. To do this, you can issue the following command: net user Administrator [new password] where [new password] represents a strong password of your choice.

Create local user accounts:

If you wish to give others access to your Windows IoT Core device, you can create additional local user accounts using PS by typing in net user [username] [password] /add . If you wish to add this user to other groups, such as the Administrator group, use net localgroup Administrators [username] /add .

Set password:

To change the password on an account on your device, run net user [account-username] [new-password] to change the account password.

Query and set device name:

To identify your current device name, simply type hostname . To change the name of your Windows IoT Core device, type SetComputerName [new machinename] . You may need to restart your device for the name change to take effect.

Basic network configuration:

Many of the basic network configuration utilities you may already be familiar with are available in Windows IoT Core, including commands such as ping.exe , netstat.exe , netsh.exe , ipconfig.exe , tracert.exe , and arp.exe .

Copy utilities:

Microsoft is providing familiar tools, including sfpcopy.exe as well as xcopy.exe .

Process Management:

To view currently running processes, you can try either get-process or alternatively tlist.exe . To stop a running process, type kill.exe [pid or process name] .

Set Boot Option (Headless vs. headed boot):

Windows IoT Core devices can be set to headed (when display capabilities are required) or headless (when a display is not required or available) device mode. To change this setting, use setbootoption.exe [headed | headless] .

Changing this setting will require a reboot in order for the change to take effect.

Task scheduler:

To view the current list of scheduled tasks, use the schtasks.exe command. You can create new tasks with the /create switch or run on-demand tasks with the /run switch. For a full list of supported parameters, use schtasks.exe /?

Device drivers:

The device console utility is useful in identifying and managing installed devices and drivers. For a full list of parameters, use devcon.exe /?

Registry Access:

If you need to access the registry to view or modify settings, use the reg.exe /? Command for the full list of supported parameters.

Services:

Managing Windows services can be accomplished via the net.exe command. To see a list of running services, type net start . To start or stop a specific service, type net [start | stop] [service name] . Alternatively, you can also use the service control manager via sc.exe command.

Boot configuration:

You can make changes to the boot configuration of your Windows IoT Core device by using bcdedit.exe . For instance, you can enable testsigning with bcdedit –set testsigning on command.

Shutdown/restart device:

To shut down your device, type shutdown /s /t 0 . To restart the device, use the /r switch instead with the command shutdown /r /t 0 .

Viewing and changing display settings

The SetDisplayResolution tool may be used for listing the current display settings and to show the list of supported values. It can further be used for adjusting the display’s resolution, refresh rate and/or orientation to values supported by your platform. The utility accepts the following command line arguments:

  • SetDisplayResolution Lists the current display resolution.
  • SetDisplayResolution -list Lists supported display resolutions.
  • SetDisplayResolution -orientation:[n] Change the display orientation, where n=0,90,180 or 270.
  • SetDisplayResolution [width] [height] Change the width and height in pixels
  • SetDisplayResolution [width] [height] [refreshrate] Change width, height, and refresh rate where width and height are in pixels and refreshrate in Hz
  • SetDisplayResolution [width] [height] [refreshrate] [orientation] Change width, height, refreshrate and screen orientation where width and height are in pixels, refreshrate in Hz and orientation is one of 0, 90, 180 or 270.

Take screenshot:

You can take the screenshot of your Windows IoTCore device by using ScreenCapture.exe . For example, run ScreenCapture c:\folder\screencap.jpg will take the screenshot and save it in screencap.jpg file.

Get information about Network Adapters:

To view the list of all the available network adapters, run GetAdapterInfo tool.

Set folder permissions for UWP apps:

Not all folders on your device are accessible by Universal Windows Apps. To make a folder accessible to a UWP app, you can use FolderPermissions tool. For example, run FolderPermissions c:\test -e to give UWP apps access to c:\test folder. Note this will work only with native Win32 apis for eg. CreateFile2 and not with WinRT apis like StorageFolder, StorageFile etc.

Work with Serial Ports:

MinComm allows you to work with serial ports from the command line. It is provided as a sample project in the ms-iot samples repo.

Windows commands

All supported versions of Windows (server and client) have a set of Win32 console commands built in.

This set of documentation describes the Windows Commands you can use to automate tasks by using scripts or scripting tools.

Prerequisites

The information that is contained in this topic applies to:

  • Windows Server 2019
  • Windows Server (Semi-Annual Channel)
  • Windows Server 2016
  • Windows Server 2012 R2
  • Windows Server 2012
  • Windows Server 2008 R2
  • Windows Server 2008
  • Windows 10
  • Windows 8.1

Command shell overview

The Command shell was the first shell built into Windows to automate routine tasks, like user account management or nightly backups, with batch (.bat) files. With Windows Script Host you could run more sophisticated scripts in the Command shell. For more information, see cscript or wscript. You can perform operations more efficiently by using scripts than you can by using the user interface. Scripts accept all Commands that are available at the command line.

Windows has two command shells: The Command shell and PowerShell. Each shell is a software program that provides direct communication between you and the operating system or application, providing an environment to automate IT operations.

PowerShell was designed to extend the capabilities of the Command shell to run PowerShell commands called cmdlets. Cmdlets are similar to Windows Commands but provide a more extensible scripting language. You can run Windows Commands and PowerShell cmdlets in Powershell, but the Command shell can only run Windows Commands and not PowerShell cmdlets.

For the most robust, up-to-date Windows automation, we recommend using PowerShell instead of Windows Commands or Windows Script Host for Windows automation.

You can also download and install PowerShell Core, the open source version of PowerShell.

Incorrectly editing the registry may severely damage your system. Before making the following changes to the registry, you should back up any valued data on the computer.

To enable or disable file and directory name completion in the Command shell on a computer or user logon session, run regedit.exe and set the following reg_DWOrd value:

To set the reg_DWOrd value, use the hexadecimal value of a control character for a particular function (for example, 0 9 is Tab and 0 08 is Backspace). User-specified settings take precedence over computer settings, and command-line options take precedence over registry settings.

Command-line reference A-Z

To find information about a specific command, in the following A-Z menu, click the letter that the command starts with, and then click the command name.

Служебные программы командной строки Windows 10 IoT базовая Windows 10 IoT Core Command Line Utils

Хотите настроить некоторые параметры на устройстве? Looking to configure some of the settings on your device? Приведенные ниже инструменты доступны в вашем распоряжении. The below tools are available at your disposal. Используйте PowerShell для выполнения этих команд после подключения к устройству. Use PowerShell to run these commands after connecting to your device.

Эти средства не были предварительно загружены — необходимо включить соответствующие идентификаторы функций, чтобы получить эти средства в образе. These tools are not pre-loaded — you will need to include appropriate feature IDs to get these tools in the image.

Служебные программы командной строки IoT ядра IoT Core-specific Command Line Utils

Настройка запускаемого приложения: Setting startup app:

Используйте редактор автозагрузки для настройки запуска приложений на устройстве Windows IoT базовая. Use the startup editor to configure startup apps on your Windows IoT Core device. Запустите IotStartup с любым из следующих параметров: Run IotStartup with any of the following options:

  • IotStartup list список установленных приложений IotStartup list lists installed applications
  • IotStartup list headed список установленных приложений IotStartup list headed lists installed headed applications
  • IotStartup list headless список установленных приложений без монитора IotStartup list headless lists installed headless applications
  • IotStartup list [MyApp] список установленных приложений, соответствующих шаблону MyApp IotStartup list [MyApp] list installed applications that match pattern MyApp
  • IotStartup add Добавляет приложения для работы и без монитора IotStartup add adds headed and headless applications
  • IotStartup add headed [MyApp] Добавляет приложения, соответствующие шаблону MyApp . IotStartup add headed [MyApp] adds headed applications that match pattern MyApp . Шаблон должен соответствовать только одному приложению. Pattern must match only one application.
  • IotStartup add headless [Task1] Добавление бездисплейных приложений, соответствующих шаблону Task1 IotStartup add headless [Task1] adds headless applications that match pattern Task1
  • IotStartup remove удаляет приложения с некотором и без монитора IotStartup remove removes headed and headless applications
  • IotStartup remove headed [MyApp] удаляет приложения, соответствующие шаблону MyApp IotStartup remove headed [MyApp] removes headed applications that match pattern MyApp
  • IotStartup remove headless [Task1] удаляет приложения без монитора, соответствующие шаблону Task1 IotStartup remove headless [Task1] removes headless applications that match pattern Task1
  • IotStartup startup Список приложений, зарегистрированных для запуска IotStartup startup lists headed and headless applications registered for startup
  • IotStartup startup [MyApp] Список приложений, зарегистрированных для запуска в соответствии с шаблоном соответствия MyApp IotStartup startup [MyApp] lists headed and headless applications registered for startup that match pattern MyApp
  • IotStartup startup headed [MyApp] Список приложений, зарегистрированных для запуска в соответствии с MyApp IotStartup startup headed [MyApp] lists headed applications registered for startup that match MyApp
  • IotStartup startup headless [Task1] Список приложений без монитора, зарегистрированных для запуска, которые совпадают Task1 IotStartup startup headless [Task1] lists headless applications registered for startup that match Task1
  • IotStartup run [MyApp] запустить приложение, идентифицируемое MyApp IotStartup run [MyApp] start app identified by MyApp
  • IotStartup stop [MyApp] завершение приложения, идентифицируемого MyApp IotStartup stop [MyApp] stop app identified by MyApp
  • Для получения дополнительной помощи попробуйте IotStartup help For further help, try IotStartup help

Изменение параметров для региона и пользователя или языка речи: Change settings for region and user or speech language:

IoTSettings Средство изменяет регион, язык пользователя или язык речи. The IoTSettings tool changes region, user language, or speech language. Это средство командной строки, которое можно вызвать из приложения с помощью API Процесслаунчер. This is a command line tool that can be invoked from an application using the ProcessLauncher API. Эти команды должны выполняться от имени учетной записи по умолчанию, а не администратора. These commands must be run as default account, not administrator.

  • IotSettings del account Удаляет все учетные записи MSA или Azure AD в системе или определенной учетной записи. IotSettings del account deletes all MSA or Azure AD accounts on the system or a specific account. Конкретные учетные записи принимают форму username@provider.com Specific accounts take the form username@provider.com
  • IotSettings del diagnostics Удаляет диагностические данные в облаке для текущего устройства. IotSettings del diagnostics deletes diagnostic information in the cloud for the current device. Обратите внимание, что это приведет к удалению журнала до момента вызова. Note that this removes the history up to the time of invocation. Новые диагностические сведения продолжат регистрироваться. New diagnostics information will continue to be logged.
  • IotSettings list account Список всех учетных записей MSA или Azure AD, которые были зарегистрированы на устройстве. IotSettings list account lists all MSA or Azure AD accounts that have been signed into the device.
  • IotSettings list uilanguage Список всех языков пользовательского интерфейса IotSettings list uilanguage lists all UI languages
  • IotSettings list speechlanguage Список всех языков распознавания речи IotSettings list speechlanguage lists all speech languages
  • IotSettings get uilanguage Отображает текущий язык пользовательского интерфейса IotSettings get uilanguage displays current UI language
  • IotSettings get speechlanguage Отображает текущий язык распознавания речи IotSettings get speechlanguage displays current speech language
  • IotSettings get region Отображает текущую область IotSettings get region displays current region
  • IotSettings set uilanguage language\_tag — (e.g. fr-CA) устанавливает язык пользовательского интерфейса по умолчанию французский (Канада)) IotSettings set uilanguage language\_tag — (e.g. fr-CA) sets default UI language French Canadian)
  • IotSettings set speechlanguage language\_tag — (e.g. fr-CA) Задает язык речи французский (Канада) IotSettings set speechlanguage language\_tag — (e.g. fr-CA) sets speech language French Canadian)
  • IotSettings set region region\_code — (e.g. CA) Задает регион по умолчанию для Канады) IotSettings set region region\_code — (e.g. CA) sets default region to Canada)
  • IotSettings set bluetoothpref Указывает предпочитаемый параметр роли Bluetooth, когда устройства, созданные с помощью функций IOT_BLUETOOTH_A2DP_SOURCE и IOT_BLUETOOTH_A2DP_SINK, подключаются к другому устройству, которое также поддерживает обе роли. IotSettings set bluetoothpref Specifies the Bluetooth role preference to select when devices built with both IOT_BLUETOOTH_A2DP_SOURCE and IOT_BLUETOOTH_A2DP_SINK features connect to another device that also supports both roles.
  • IotSettings get bluetoothpref Возвращает текущие настройки роли Bluetooth для устройств, построенных с помощью IOT_BLUETOOTH_A2DP_SOURCE и IOT_BLUETOOTH_A2DP_SINK. IotSettings get bluetoothpref returns the current Bluetooth role preference for devices built with both IOT_BLUETOOTH_A2DP_SOURCE and IOT_BLUETOOTH_A2DP_SINK. Значение по умолчанию — Source. The default is source.

IoTSettings -list uiLanguage передаст список поддерживаемых языков интерфейса пользователя (в версии образа Windows IoT базовая, к которой он был выполнен) IoTSettings -list uiLanguage will give back the list of supported UI language (in the version of Windows IoT core image it has been executed against)

Изменить звуковое устройство по умолчанию и громкость: Change default audio device and volume:

IoTCoreAudioControlTool Средство управляет параметрами, связанными с аудио, такими как настройка устройств записи и воспроизведения по умолчанию и изменение тома. The IoTCoreAudioControlTool tool controls audio related options, such as setting default capture and playback devices and changing the volume. Чтобы получить полный список параметров, выполните команду IoTCoreAudioControlTool h . For a full list of parameters, run IoTCoreAudioControlTool h .

Установка вручную. APPX файлы: Manually installing .APPX files:

Деплойаппкс включает установку и удаление в. Пакеты APPX в сценариях разработки. DeployAppx enables installing, and removing in .APPX packages in development scenarios. Правильный метод для установки. Пакеты APPX в рабочих образах предназначены для использования пакета подготовки, как описано в теме Установка приложения . The correct method for installing .APPX packages in production images is to use a provisioning package as documented in the Install your app subject. Деплойаппкс также поддерживает запросы. Сведения о пакете APPX. DeployAppx also supports querying .APPX package information.

  • DeployAppx install MyApp.appx устанавливает. APPX и сертификат с тем же именем, если они найдены. DeployAppx install MyApp.appx installs the .APPX and the certificate of the same name if found.
  • DeployAppx install force MyApp.appx Принудительное удаление установленного в данный момент. APPX с тем же именем пакета, если он найден перед установкой нового. APPX. DeployAppx install force MyApp.appx forces uninstalling the currently installed .APPX with the same package name if found before installing the new .APPX. Это полезно для установки. APPX с тем же или более низким номером версии, что и текущая установленная версия. APPX. This is useful for installing an .APPX with the same or lower version number as the currently installed .APPX.
  • DeployAppx install retry MyApp.appx Повторите попытку установки. APPX 10 раз в случае сбоя с 2-секундной задержкой между попытками. DeployAppx install retry MyApp.appx retry installing the .APPX 10 times on failure with 2-second delay between attempts.
  • DeployAppx uninstall App_1.0.1.0_x86__publisherid123 Удалите appx с соответствующим полным именем пакета. DeployAppx uninstall App_1.0.1.0_x86__publisherid123 uninstall the .appx with the matching package full name.
  • DeployAppx uninstall MyApp.appx Удалите все установленные. APPX с соответствующим именем семейства пакетов. DeployAppx uninstall MyApp.appx uninstall any installed .APPX with a matching package family name.
  • DeployAppx getpackages Выводит список полных имен установленных пакетов. DeployAppx getpackages lists installed package full names.
  • DeployAppx getpackageid IotCoreDefaultApp.appx Выводит имя пакета, имя семейства пакетов и полное имя пакета для. APPX. DeployAppx getpackageid IotCoreDefaultApp.appx prints out the package name, the package family name, and the package full name for the .APPX.
  • DeployAppx register appxmanifest.xml неподдерживаемый DeployAppx register appxmanifest.xml unsupported

Общие служебные программы командной строки General Command Line Utils

Обновление пароля учетной записи: Update account password:

Настоятельно рекомендуется обновить пароль по умолчанию для учетной записи администратора. It is highly recommended that you update the default password for the Administrator account. Для этого можно выполнить следующую команду: net user Administrator [new password] где [new password] представляет надежный пароль по своему усмотрению. To do this, you can issue the following command: net user Administrator [new password] where [new password] represents a strong password of your choice.

Создание локальных учетных записей пользователей: Create local user accounts:

Если вы хотите предоставить другим пользователям доступ к устройству Windows IoT Core, можно создать дополнительные учетные записи локальных пользователей с помощью PS, введя в net user [username] [password] /add . If you wish to give others access to your Windows IoT Core device, you can create additional local user accounts using PS by typing in net user [username] [password] /add . Если вы хотите добавить этого пользователя в другие группы, например в группу администраторов, используйте net localgroup Administrators [username] /add . If you wish to add this user to other groups, such as the Administrator group, use net localgroup Administrators [username] /add .

Задать пароль: Set password:

Чтобы изменить пароль учетной записи на устройстве, выполните команду, net user [account-username] [new-password] чтобы изменить пароль учетной записи. To change the password on an account on your device, run net user [account-username] [new-password] to change the account password.

Запросите и задайте имя устройства: Query and set device name:

Чтобы узнать текущее имя устройства, просто введите hostname . To identify your current device name, simply type hostname . Чтобы изменить имя устройства Windows IoT базовая, введите SetComputerName [new machinename] . To change the name of your Windows IoT Core device, type SetComputerName [new machinename] . Чтобы изменение имени вступило в силу, может потребоваться перезапустить устройство. You may need to restart your device for the name change to take effect.

Базовая конфигурация сети: Basic network configuration:

Многие из основных служебных программ сетевой конфигурации, которые, возможно, уже знакомы, доступны в Windows IOT базовая, включая такие команды, как ping.exe ,, netstat.exe ,, netsh.exe ipconfig.exe tracert.exe и arp.exe . Many of the basic network configuration utilities you may already be familiar with are available in Windows IoT Core, including commands such as ping.exe , netstat.exe , netsh.exe , ipconfig.exe , tracert.exe , and arp.exe .

Программы копирования: Copy utilities:

Корпорация Майкрософт предоставляет привычные средства, включая sfpcopy.exe и xcopy.exe . Microsoft is providing familiar tools, including sfpcopy.exe as well as xcopy.exe .

Управление процессами: Process Management:

Чтобы просмотреть выполняющиеся в данный момент процессы, можно попробовать использовать либо get-process tlist.exe . To view currently running processes, you can try either get-process or alternatively tlist.exe . Чтобы прерывать выполняющийся процесс, введите kill.exe [pid or process name] . To stop a running process, type kill.exe [pid or process name] .

Задать параметр загрузки (без монитора): Set Boot Option (Headless vs. headed boot):

Устройства Windows IoT базовая могут быть настроены на установку (если требуются возможности экрана) или без монитора (если дисплей не является обязательным или доступным) в режиме устройства. Windows IoT Core devices can be set to headed (when display capabilities are required) or headless (when a display is not required or available) device mode. Чтобы изменить этот параметр, используйте setbootoption.exe [headed | headless] . To change this setting, use setbootoption.exe [headed | headless] .

Для изменения этого параметра потребуется перезагрузка, чтобы изменения вступили в силу. Changing this setting will require a reboot in order for the change to take effect.

Планировщик заданий: Task scheduler:

Чтобы просмотреть текущий список запланированных задач, используйте schtasks.exe команду. To view the current list of scheduled tasks, use the schtasks.exe command. С помощью переключателя можно создавать новые задачи с параметром /create или выполнять задачи по требованию /run . You can create new tasks with the /create switch or run on-demand tasks with the /run switch. Чтобы получить полный список поддерживаемых параметров, используйте schtasks.exe /? For a full list of supported parameters, use schtasks.exe /?

Драйверы устройств: Device drivers:

Служебную программу консоли устройств удобно использовать для определения и управления установленными устройствами и драйверами. The device console utility is useful in identifying and managing installed devices and drivers. Чтобы получить полный список параметров, используйте devcon.exe /? For a full list of parameters, use devcon.exe /?

Доступ к реестру: Registry Access:

Если необходимо получить доступ к реестру для просмотра или изменения параметров, используйте reg.exe /? команду для получения полного списка поддерживаемых параметров. If you need to access the registry to view or modify settings, use the reg.exe /? Command for the full list of supported parameters.

Службы. Services:

Управление службами Windows можно выполнить с помощью net.exe команды. Managing Windows services can be accomplished via the net.exe command. Чтобы просмотреть список работающих служб, введите net start . To see a list of running services, type net start . Для запуска или завершения работы конкретной службы введите net [start | stop] [service name] . To start or stop a specific service, type net [start | stop] [service name] . Кроме того, можно также использовать диспетчер управления службами с помощью sc.exe команды. Alternatively, you can also use the service control manager via sc.exe command.

Конфигурация загрузки: Boot configuration:

Вы можете вносить изменения в конфигурацию загрузки устройства Windows IoT Core с помощью bcdedit.exe . You can make changes to the boot configuration of your Windows IoT Core device by using bcdedit.exe . Например, можно включить тестсигнинг с помощью bcdedit –set testsigning on команды. For instance, you can enable testsigning with bcdedit –set testsigning on command.

Завершение работы или перезапуск устройства: Shutdown/restart device:

Чтобы завершить работу устройства, введите shutdown /s /t 0 . To shut down your device, type shutdown /s /t 0 . Чтобы перезапустить устройство, используйте /r параметр вместо команды shutdown /r /t 0 . To restart the device, use the /r switch instead with the command shutdown /r /t 0 .

Просмотр и изменение параметров отображения Viewing and changing display settings

Средство Сетдисплайресолутион может использоваться для перечисления текущих параметров отображения и для отображения списка поддерживаемых значений. The SetDisplayResolution tool may be used for listing the current display settings and to show the list of supported values. Его можно использовать для настройки разрешения экрана, скорости обновления и (или) ориентации на значения, поддерживаемые платформой. It can further be used for adjusting the display’s resolution, refresh rate and/or orientation to values supported by your platform. Программа принимает следующие аргументы командной строки: The utility accepts the following command line arguments:

  • SetDisplayResolution Перечисляет текущее разрешение экрана. SetDisplayResolution Lists the current display resolution.
  • SetDisplayResolution -list Выводит список поддерживаемых разрешений экрана. SetDisplayResolution -list Lists supported display resolutions.
  • SetDisplayResolution -orientation:[n] Измените ориентацию дисплея, где n = 0, 90180 или 270. SetDisplayResolution -orientation:[n] Change the display orientation, where n=0,90,180 or 270.
  • SetDisplayResolution [width] [height] Изменение ширины и высоты в пикселях SetDisplayResolution [width] [height] Change the width and height in pixels
  • SetDisplayResolution [width] [height] [refreshrate] Изменение ширины, высоты и скорости обновления, где ширина и высота задаются в пикселях и рефрешрате Гц SetDisplayResolution [width] [height] [refreshrate] Change width, height, and refresh rate where width and height are in pixels and refreshrate in Hz
  • SetDisplayResolution [width] [height] [refreshrate] [orientation] Измените ширину, высоту, рефрешрате и ориентацию экрана, где ширина и высота задаются в пикселях, рефрешрате Гц, а ориентация — один из значений 0, 90, 180 или 270. SetDisplayResolution [width] [height] [refreshrate] [orientation] Change width, height, refreshrate and screen orientation where width and height are in pixels, refreshrate in Hz and orientation is one of 0, 90, 180 or 270.

Сделать снимок экрана: Take screenshot:

Снимок экрана устройства Windows Иоткоре можно сделать с помощью ScreenCapture.exe . You can take the screenshot of your Windows IoTCore device by using ScreenCapture.exe . Например, запустите приложение, чтобы ScreenCapture c:\folder\screencap.jpg сделать снимок экрана и сохранить его в screencap.jpg файле. For example, run ScreenCapture c:\folder\screencap.jpg will take the screenshot and save it in screencap.jpg file.

Получение сведений о сетевых адаптерах: Get information about Network Adapters:

Чтобы просмотреть список всех доступных сетевых адаптеров, запустите GetAdapterInfo средство. To view the list of all the available network adapters, run GetAdapterInfo tool.

Задайте разрешения папки для приложений UWP: Set folder permissions for UWP apps:

Универсальным приложениям Windows доступны не все папки на устройстве. Not all folders on your device are accessible by Universal Windows Apps. Чтобы сделать папку доступной для приложения UWP, можно использовать FolderPermissions средство. To make a folder accessible to a UWP app, you can use FolderPermissions tool. Например, выполните команду, FolderPermissions c:\test -e чтобы предоставить ПРИЛОЖЕНИЯМ UWP доступ к c:\test папке. For example, run FolderPermissions c:\test -e to give UWP apps access to c:\test folder. Обратите внимание, что это будет работать только с собственными API-интерфейсами Win32 для например. Note this will work only with native Win32 apis for eg. CreateFile2, а не с API-интерфейсами WinRT, такими как Сторажефолдер, StorageFile и т. д. CreateFile2 and not with WinRT apis like StorageFolder, StorageFile etc.

Работа с последовательными портами: Work with Serial Ports:

Минкомм позволяет работать с последовательными портами из командной строки. MinComm allows you to work with serial ports from the command line. Он предоставляется в качестве примера проекта в репозитории примеров MS-IOT. It is provided as a sample project in the ms-iot samples repo.

Читайте также:  Драйвер canon l11121e для windows 10 x64
Оцените статью