Windows IoT Device Portal
Overview
The Windows IoT Device Portal provides a web-based interface for developers to manage, monitor, and debug IoT devices running Windows 10 IoT Core. It offers live performance metrics, process management, file transfer, and remote PowerShell access directly from a browser.
Getting Started
- Enable the Device Portal on your IoT device:
Add-AppxPackage -Path "Microsoft.WindowsDevicePortal.appx" - Open a web browser on your development PC and navigate to
https://<device-ip>:443/. Accept the security warning if prompted. - Log in with the device's credentials (default username:
Administrator).
Sample Code: Launching an App via the Device Portal API
// Install-Package Microsoft.DeviceManagement.DMClient
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
class DevicePortalDemo
{
private static readonly string baseUrl = "https:///api";
private static readonly string username = "Administrator";
private static readonly string password = "YourPassword";
static async Task Main()
{
var client = new HttpClient(new HttpClientHandler { ServerCertificateCustomValidationCallback = (msg, cert, chain, errors) => true });
var authToken = Convert.ToBase64String(Encoding.ASCII.GetBytes($"{username}:{password}"));
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authToken);
var launchPayload = new StringContent("{\"AppId\":\"Microsoft.Maps\"}", Encoding.UTF8, "application/json");
var response = await client.PostAsync($"{baseUrl}/processes", launchPayload);
Console.WriteLine(await response.Content.ReadAsStringAsync());
}
}
Features
- Live CPU, memory, and network usage graphs
- Process explorer with kill/restart capabilities
- File system browser with upload/download support
- Remote PowerShell console
- App deployment and activation
- Bluetooth and Wi‑Fi diagnostics
Security Considerations
Always enable HTTPS and change the default Administrator password. For production deployments, consider using certificate-based authentication and restricting portal access to trusted networks.