Windows 10 IoT Core 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 innet user [username] [password] /add. If you wish to add this user to other groups, such as the Administrator group, usenet localgroup Administrators [username] /add. - Set password:
To change the password on an account on your device, runSetPassword [account-username] [new-password] [old-password]to change the account password. - Query and set device name:
To identify your current device name, simply typehostname. To change the name of your Windows IoT Core device, typeSetComputerName [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 asping.exe,netstat.exe,netsh.exe,ipconfig.exe,nslookup.exe,tracert.exe, andarp.exe. - Copy utilities:
Microsoft is providing familiar tools, includingsfpcopy.exeas well asxcopy.exe. - Process Management:
To view currently running processes, you can try eitherget-processor alternativelytlist.exe. To stop a running process, typekill.exe [pid or process name]. - Setting startup app:
Use the startup editor to configure startup apps on your Windows IoT Core device. RunIotStartupwith any of the following options:
IotStartup listlists installed applications
IotStartup list headedlists installed headed applications
IotStartup list headlesslists installed headless applications
IotStartup list [MyApp]list installed applications that match patternMyApp
IotStartup addadds headed and headless applications
IotStartup add headed [MyApp]adds headed applications that match patternMyApp. Pattern must match only one application.
IotStartup add headless [Task1]adds headless applications that match patternTask1
IotStartup removeremoves headed and headless applications
IotStartup remove headed [MyApp]removes headed applications that match patternMyApp
IotStartup remove headless [Task1]removes headless applications that match patternTask1
IotStartup startuplists headed and headless applications registered for startup
IotStartup startup [MyApp]lists headed and headless applications registered for startup that match patternMyApp
IotStartup startup headed [MyApp]lists headed applications registered for startup that matchMyApp
IotStartup startup headless [Task1]lists headless applications registered for startup that matchTask1For further help, try
IotStartup help
- 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, usesetbootoption.exe [headed | headless].
[crayon-6a6195f213258386733667/]
- Task scheduler:
To view the current list of scheduled tasks, use theschtasks.execommand. You can create new tasks with the/createswitch or run on-demand tasks with the/runswitch. For a full list of supported parameters, useschtasks.exe /? - Device drivers:
The device console utility is useful in identifying and managing installed devices and drivers. For a full list of parameters, usedevcon.exe /? - Registry Access:
If you need to access the registry to view or modify settings, use thereg.exe /?Command for the full list of supported parameters. - Services:
Managing Windows services can be accomplished via thenet.execommand. To see a list of running services, typenet start. To start or stop a specific service, typenet [start | stop] [service name]. Alternatively, you can also use the service control manager viasc.execommand. - Boot configuration:
You can make changes to the boot configuration of your Windows IoT Core device usingbcdedit.exe. For instance, you can enable testsigning withbcdedit -set testsigningon command. - Shutdown/restart device:
To shut down your device, typeshutdown /s /t 0. To restart the device, use the/rswitch instead with the commandshutdown /r /t 0. - List Services:
This utility lists all the NT Services running on your Windows 10 IoT Core device. From a PowerShell session on your device, runListServicesto run the utility. - Set display resolution:
To adjust the resolution of a display connected to your Windows 10 IoT Core device, runSetDisplayResolution [width] [height]. To query the resolution, exclude the[width]and[height]parameters.
More information
https://ms-iot.github.io/content/en-US/win10/tools/CommandLineUtils.htm