Hello!
New post for Windows 10 and Raspberry Pi 2 series
- Hardware and software (1 on N)
- Boot from SD card in the device (2 of N)
- Hello World mode! (3 of N)
- Visual Studio deployment process and Web Management app (4 on N)
- Hello Blinky !!! (5 on N)
- Some admin tasks, like change password and change name (6 on N)
- List of connected devices in the Raspberry Pi 2 (7 on N)
- Deploy an app using the deploy package (8 on N)
Yesterday there was Windows IoT Core for Raspberry PI 2 update. In the waht’s new section we can read most of the new features was focused on security. In example: now the web access, requires username and password to get into the device. For this reason, today I’ll take a pause in the source code samples and I’ll leave a couple of PowerShell commands to perform basic actions with our device.
1. Once the device is online, we need to open a PowerShell console in administrator mode
2. In the console, run the following commands
- net start WinRM
- Set-Item WSMan:\localhost\Client\TrustedHosts – Value 169.254.186.22
- Remove – module psreadline – force
- Enter-PsSession – ComputerName 169.254.186.22 – Credential 169.254.186.22\Administrator
In each one of them we must replace the IP address for the corresponding with our device
3. The last command will open a window of Windows credentials so that the same enter credentials by default to access the device.
By default the device credentials are
User: IP Address\Administrator
Password: P@ssw0rd
Clarification: (P {at} ssw {zero} rd ))
4. The authentication with the device takes approximately 30 seconds. Once is connected we can do the 2 most recommended actions: change the administrstor password and change the name of the device.
5. In order to change the administrator password, we should use the next command
NET user Administrator {new password}
6. In order to change the name of the device, let’s go with this one
setcomputername {new name}
For example, in the following command I have changed the name to my device and then restart it
Once restarted, we can see the device with its new name in Windows IoT app watcher
Now if, new password, new name, our device is a little more secure 😀
Greetings @ Madrid
/El Bruno
11 thoughts on “ENG [#IOT] #RaspberryPi2 and #Windows10, Some admin tasks, like change password and change name (6 on N)”