博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
win7下树莓派安装使用win10
阅读量:2094 次
发布时间:2019-04-29

本文共 4105 字,大约阅读时间需要 13 分钟。

 

WIN7下安装包:

http://pan.baidu.com/s/1pJn3ThT#path=%252F 

启动后最终画面会看到PI2图片及IP,按如下操作

Using PowerShell to connect and configure a device running Windows IoT Core

Remote Administration and Configuration

You can remotely configure and manage any Windows IoT Core device using Windows PowerShell. PowerShell is a task-based command-line shell and scripting language, designed especially for system administration.

Make sure to follow these steps to correctly configure your device running Windows IoT Core to work well with VisualStudio 2015.

Initiating a PowerShell (PS) Session

  • To start a PS session with your Windows IoT Core device, you’ll first need to create a trust relationship between your host PC and your device. After booting your Windows IoT Core device, an IP address will be shown on the screen attached to the device:

    DefaultApp on Windows IoT Core

    You can find the same information on the Windows IoT Core Watcher utility.

  • Launch an administrator PS console on your local PC. The easiest way to do this is to type ‘powershell’ in the “Search the web and Windows” textbox near the Windows Start Menu: Windows will find PowerShell on your machine:

    Find PowerShell

    To start PS as an administrator, right click on the “Windows PowerShell” entry and select “Run as administrator”:

    Run PowerShell as administrator

    Now you should see the PS console:

    PowerShell console

  • Note: you may need to start the WinRM service on your desktop to enable remote connections. From the PS console type the following command:

    net start WinRM
  • From the PS console, type the following, substituting <machine-name or IP Address> with the appropriate value (using your machine-name is the easiest to use, but if your device is not uniquely named on your network, try the IP address):

    Set-Item WSMan:\localhost\Client\TrustedHosts -Value 

    Do enter Y to confirm the change.

  • Note: there is a known issue with PS that can cause a StackOverflowException on the PS client machine. To work around this type the following line before the Enter-PsSession:

    remove-module psreadline -force
  • Now you can start a session with you Windows IoT Core device. From you administrator PS console, type:

    Enter-PsSession -ComputerName 
    -Credential
    \Administrator

    In the credential dialog enter the following default password: p@ssw0rd

    NOTE: The connection process is not immediate and can take up to 30 seconds.

    If you successfully connected to the device, you should see the IP address of your device before the prompt.

    PowerShell console

  • Update account password:

    It is highly recommended that you update the default password for the Administrator account.

    To do this, issue the following commands in your PowerShell connection:

    Replace [new password] with a strong password:

    net user Administrator [new password]

    Once this is done, you’ll need to re-establish the current session using enable-psSession with the new credentials.

    The following command only needs to be run once:

    schtasks /Delete /TN Microsoft\Windows\IoT\Startup /F

Configure your Windows IoT Core device

  • To be able to deploy applications from Visual Studio 2015, you will need to make sure the Visual Studio Remote Debugger is running on your Windows IoT Core device. The remote debugger should launch automatically at machine boot time. To double check, use the tlist command to list all the running processes from powershell. There should be two instances of msvsmon.exe running on the device.

  • It is possible for the Visual Studio Remote Debugger to time out after long periods of inactivity. If Visual Studio cannot connect to your Windows IoT Core device, try rebooting the device.

  • If you want, you can also rename your device. To change the ‘computer name’, use the setcomputername utility:

    setcomputername 

    You will need to reboot the device for the change to take effect. You can use the shutdown command as follows:

    shutdown /r /t 0

    After you reboot, since the computer name was changed, you will need to rerun this command in order to connect to your device using the new name:

    Set-Item WSMan:\localhost\Client\TrustedHosts -Value 

Commonly used utilities

See the  page for a list of commands and utilities you can use with PowerShell.

转载地址:http://fnuhf.baihongyu.com/

你可能感兴趣的文章
Java 异步机制与同步机制的区别
查看>>
hibernate的对象三种状态说明
查看>>
什么是N+1查询?
查看>>
直插,快排,堆排,归并排序的分析
查看>>
二叉树的各种操作(面试必备)
查看>>
oracle
查看>>
泛型与通配符详解
查看>>
BaseServiceImpl中的实现关键点
查看>>
Struts2中的session、request、respsonse获取方法
查看>>
如何理解MVC模型
查看>>
SpringMVC中乱码解决方案
查看>>
SpringMVC中时间格式转换的解决方案
查看>>
post和get请求相关知识点
查看>>
关于try finally 中的return语句的问题
查看>>
RequestBody/ResponseBody处理Json数据
查看>>
springmvc请求参数获取的几种方法
查看>>
在eclipse中创建和myeclipse一样的包结构
查看>>
Java中的IO流
查看>>
java中的关键字
查看>>
如果某个方法是静态的,它的行为就不具有多态性
查看>>