Last active
September 26, 2019 17:27
-
-
Save danielscholl/3bc6b5760975ad81887eb3f72f4c7d94 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1' -OutFile 'dotnet-install.ps1'; | |
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine | |
./dotnet-install.ps1 -InstallDir '~/.dotnet' -Channel LTS | |
$RELEASE="20190926.1" | |
$ID_SCOPE="0ne0004515C" | |
$REGISTRATION="edge-gateway" | |
. {Invoke-WebRequest -useb https://github.com/danielscholl/iot-tpm-provision/releases/download/$RELEASE/build.zip -Outfile tpm.zip} | |
Expand-Archive -Path ".\tpm.zip" | |
dotnet run tpm\tpm.dll $ID_SCOPE $REGISTRATION | |
. {Invoke-WebRequest -useb aka.ms/iotedge-win} | Invoke-Expression; ` | |
Install-SecurityDaemon -Dps -ContainerOs Linux -ScopeId $ID_SCOPE -RegistrationId $REGISTRATION_ID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment