Skip to content

Instantly share code, notes, and snippets.

@danielscholl
Last active September 26, 2019 17:27
Show Gist options
  • Save danielscholl/3bc6b5760975ad81887eb3f72f4c7d94 to your computer and use it in GitHub Desktop.
Save danielscholl/3bc6b5760975ad81887eb3f72f4c7d94 to your computer and use it in GitHub Desktop.
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