ENG [#IOT] #RaspberryPi2 and #Windows10, Some admin tasks, like change password and change name (6 on N)

Hello!

New post for Windows 10 and Raspberry Pi 2 series

  1. Hardware and software (1 on N)
  2. Boot from SD card in the device (2 of N)
  3. Hello World mode! (3 of N)
  4. Visual Studio deployment process and Web Management app (4 on N)
  5. Hello Blinky !!! (5 on N)
  6. Some admin tasks, like change password and change name (6 on N)
  7. List of connected devices in the Raspberry Pi 2 (7 on N)
  8. 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

Clipboard02

2. In the console, run the following commands

  1. net start WinRM
  2. Set-Item WSMan:\localhost\Client\TrustedHosts – Value 169.254.186.22
  3. Remove – module psreadline – force
  4. 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.

Clipboard04

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

Clipboard06

Once restarted, we can see the device with its new name in Windows IoT app watcher

Clipboard07

Now if, new password, new name, our device is a little more secure 😀

Greetings @ Madrid

/El Bruno

Advertisements

11 thoughts on “ENG [#IOT] #RaspberryPi2 and #Windows10, Some admin tasks, like change password and change name (6 on N)”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.