win7下树莓派安装使用win10

 

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 <machine-name or IP Address>
    

    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 <machine-name or IP Address> -Credential <machine-name or IP Address or localhost>\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 <new-name>
    

    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 <new-name>
    

Commonly used utilities

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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值