How to install ZeroTier One via InTune or other script with auto join to network ID

Hello! How to install Zero Tier One with auto join to network ?
For examle:

msiexec /i "ZeroTier One.msi" /passive /norestart /networkID=xxxxxxxxxxxxxx

it is possible ?

`Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))`
choco install zerotier-one -y
`$destination = "C:\Program Files (x86)\ZeroTier\One\zerotier-cli.bat";`
`Start-Process -FilePath $destination -ArgumentList "join xxx" -Wait`
`$exitCode = $LASTEXITCODE`
`Write-Verbose "Exit code was $exitCode"`
`$validExitCodes = @(0, 1605, 1614, 1641, 3010)`
`if ($validExitCodes -contains $exitCode) {`
`Exit 0`
`}`
`Exit $exitCode`

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.