Windows 10 IoT Core – Change basic device configuration

Windows 10 IoT Core – Change basic device configuration

If you have a Windows 10 IoT Core device and want to change some basic settings, follow the instruction below.

First we need to set up a connection with the device

  1. Start Powershell (as administrator)
    Powershell
  2. First start the WinRM service by running: net start WinRM.
    Start WinRM service
  3. Now run the following command: Set-Item WSMan:\localhost\Client\TrustedHosts -Value <machine-name or IP Address>.
    Press ‘Y’ to confirm the change.
  4. Now start a session with the Windows 10 IoT Core device: Enter-PSSession -ComputerName <machine-name or IP Address> -Credential <machine-name or IP Address or localhost>\Administrator. As password use: p@ssw0rd.
Action Command
Change Administrator password

Remark: Once this is done, you’ll need to establish a new PowerShell session using Exit-PSSession and Enter-PSSession with the new credentials.

net user Administrator [new password]
Change device name

Remark: You will need to reboot the device for the change to take effect

setcomputername <new-name>
Reboot device shutdown /r /t 0
Raspberry Pi 2 with 7″ Touchscreen Display running Windows 10 IoT Core

Raspberry Pi 2 with 7″ Touchscreen Display running Windows 10 IoT Core

I while ago I bought myself a Raspberry Pi 2 to play around with. I wanted it to run on Windows 10 IoT Core. That worked fine, with a display connected to HDMI. When the official Raspberry Pi 7″ Tochscreen Display came out I wanted to buy one immediately, but I was to late. The first batch was sold out :-). So I waited for the next batch and bought one.

I directly downloaded the latest version of Windows 10 IoT Core (build 10556), but the screen was not working. Using HDMI it was working…Argh. First I thought maybe the display is not properly connected, but when I tried Raspian, it work fine (even with touch).

Raspian on Raspberry Pi 2

I’ve let it rest for a while and today I picked it up again and found a forum post, stating that build 10556, wil not work with a v1.1 of the Rasberry Pi Display, but it will work with the latest preview build 14262. So assuming that I have a v1.1 of the display, I downloaded the preview version and yes, it’s working! Even with touch 🙂

Windows 10 IoT Core on Rasberry Pi 2

Now the development can begin.

Windows 10 IoT Core - Development

 

 

Homey Clickthrough

Homey Clickthrough

I’m still waiting for the delivery of my Homey. I hope to receive mine this month. In the meantime Athom made a nice video showing what you can do with Homey. I love what you can do with it already.

Homey Clickthrough

Homey

Homey

HomeyA new year has begun, so it’s time for a new gadget 😉 I just ordered an Homey! I want it to control my lights (Philips Hue), room temperature (Nest) and my home cinema.

What is Homey?
Homey is your personal assistant who will make your home personal again. Whatever you want to do, Homey takes care of the technical parts, so you’re left with the fun. Interact with your home and your devices in the way you interact with anyone else: using natural, spoken commands.

They just started delivering the first batch, so I hope to receive mine this month.

Update (13-01-2016): Looks my Homey will be shipped around 15 February 2016.

SonarQube

SonarQube

7 axesSonarQube is an open platform to manage code quality. As such, it covers the 7 axes of code quality.

For some time a technology that is very popular with Java developers, but Microsoft has been working hard with Sonar Source to support it, starting from the release of Visual Studio 2015 for the .NET platform. The result is a great free Code Analysis tool to clarify Technical Debt, but also to show that it is eliminated.

Below a webinar (Dutch) from Delta-N about SonarQube.

SonarQube Dashboard Example

Apache service not starting on Window 10

Apache service not starting on Window 10

Having problems starting the Apache service on Windows 10? Probably port 80 is used by another process.

When you check which process is using port 80 (use Resource Monitor), it probably is the ‘System’ process (PID=4).

Resource Monitor

This means that a process by default installed and started by Windows is using port 80. Big chance that the ‘World Wide Web Publishing Service’ is running. Just stop it and set the Startup Type to ‘Manual’

e World Wide Web Publishing Service

Now try starting the Apache service again. If it is running, the Resource Monitor should now show that the ‘httpd.exe’ process is using port 80.

Resource Monitor

How to disable System service from listening to port 80

How to disable System service from listening to port 80

When you try to run Apache (or any other web server service), it can happen that Windows is not allowing to start it, because port 80 is already in use. To find out which process is using port 80, you can use the Resource Monitor (just run resmon.exe). Open the ‘Network’ tab and open the ‘Listening Ports’ section.

Resource Monitor

Another way to find out is to use ‘netstat -a -n -o | find “:80”‘.

How to solve the problem

If the process is just a ‘normal’ process, you just need to stop the associated service to free port 80. If it’s the System process (PID=4), that is using port 80, then we need to disable http.sys.

There are two ways to disable it:

  1. Go to device manager, select ‘View -> Show hidden devices’, go to ‘Non-plug and Play Driver -> HTTP’ and double click it to disable.
  2. Launch RegEdit, go to ‘HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP‘ and change to value of ‘start‘ to 4.
    After this you need to reboot your computer.

The following values are valid for the ‘start’ property:

0 Boot
1 System
2 Automatic
3 Manual
4 Disabled