"Windows10iot Development Series" PowerShell command-line utility

Source: Internet
Author: User

Original: "Windows10 IoT Development Series" PowerShell command-line utility

Update account password:

It is strongly recommended that you update the default Administrator account password. To update your account password, you can issue the following command:

net userAdministrator [new password]

(Which [newpassword] indicates the strong password you chose).

    • To create a local user account:

If you want to grant other people access to your Windows IoT core device, you can netuser [username] [password] /add Create additional local user accounts by typing in and using PS. If you want to add this user to another group (for example, the Administrators group), use the

netlocalgroup Administrators [username] /add .

    • Set Password

To change the account password on your device, you can run the

SetPassword[account-username] [new-password][old-password]

To change the account password.

    • Query and set device name:

To determine the current device name, simply typehostname

。 To change the name of your Windows IoT core device, you should type SetComputerName [newmachinename] . You may need to restart your device to make the changed name take effect.

    • Basic Network configuration:

Windows IoT Core provides a variety of basic network configuration utilities, including such as ping.exe

, netstat.exe , netsh.exe , ipconfig.exe , nslookup.exe , tracert.exe and arp.exe other commands), you may already be familiar with these utilities.

    • Copy utility:

Microsoft will provide familiar tools, including sfpcopy.exe as well xcopy.exe .

    • Process Management:

To see which processes are currently running, you can try get-process  or tlist.exe . To stop a process that is running, type kill.exe[pid or process name] .

    • To set up the launch app:

Use the startup editor to configure the launch app on your Windows IoT core device. Run with one of the following options IotStartup :

iotstartuplist , used to list installed applications

    • IotStartup listheadedTo list installed peripheral applications

    • IotStartup listheadlessTo list installed, headless applications

    • IotStartup list[MyApp]To list the installed and mode MyApp Matching Applications

    • IotStartupaddFor adding peripherals and non-peripheral applications

    • IotStartup add headed[MyApp], used to add and pattern MyApp The matched peripheral application pattern must match only one application.

    • IotStartup addheadless [Task1], used to add and pattern Task1 matched, headless applications

    • IotStartupremoveFor removing peripherals and headless applications

    • IotStartup removeheaded [MyApp], for deletion and mode MyApp Matched Peripheral Applications

    • IotStartup removeheadless [Task1], for deletion and mode Task1 matched, headless applications

    • IotStartupstartupFor listing of peripherals and headless applications registered for startup

    • IotStartup startup[MyApp], which is used to list the registration for startup and the mode MyApp matched peripherals and non-peripheral applications

    • IotStartup startupheaded [MyApp]To list the MyApp registrations for startup and Matched Peripheral Applications

    • IotStartup startupheadless [Task1]To list the Task1 registrations for startup and matched, headless applications

    • For further assistance, please try IotStartuphelp

    • Set boot options (no peripherals and peripheral boot):

Windows IoT core devices can be set to have peripheral device mode (when a feature is required) or no peripheral device mode (the display feature is not required or unavailable). To change this setting, use the setbootoption.exe[headed | headless] .

note:changingthis setting would require a reboot in order for the change to Takeeffect.

    • Task Scheduler:

To view the current list of scheduled tasks, use the schtasks.exe command. You can use /create the switch to create a new task, or use the /run switch to run on-demand tasks. To get a complete list of supported parameters, use theschtasks.exe/?

    • Device drivers:

The device console utility is useful for identifying and managing installed devices and drivers. To get a complete list of parameters, use thedevcon.exe/?

    • Registry access:

If you need to access the registry to view or modify settings, use the reg.exe/?  command to get a complete list of supported parameters.

    • Service:

Managing Windows services can be done bynet.exe

command to complete. To view a list of services that are running, type netstart . To start or stop a specific service, type net[start | stop] [service name] . In addition, you can sc.exe use the Service Control Manager through commands.

    • Startup configuration:

You can use it bcdedit.exe to change the startup configuration for Windows IoT core devices. For example, you can use a bcdedit –settestsigning command to enable a test signature.

    • To turn off/restart the device:

To turn off your device, type shutdown /s /t0  . To restart the device, use the /r switch instead of the shutdown/r /t 0 command.

    • Setting the display resolution

To adjust the resolution of the monitor connected to your Windows IoT core device, run SetDisplayResolution [width][height] . To query the resolution, exclude [width] and [height] parameters.

This article resources from the Windows Dev Center

"Windows10 IoT Development Series" PowerShell command-line utility

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.