Hi. I decided I’d create a simple PowerShell script that I could send to people who wants to play on my (or your own!) game servers or whatever else I (or you) may host using ZeroTier. This script automatically downloads ZeroTier and installs it in headless mode, and sets itself up, joins my network and sets up a few variables. Now I’m trying to expand my (public) network, so I’d be happy if more people joined! You’re also free to use this script however you’d like, even for your own networks.
My network currently has 234,880,996 IP addresses available. (Making use of reserved IP ranges, that for example the US Military use, or something else. IP ranges that are not normally accessible anyway.)
The script can be retrieved and ran using irm and iex in PowerShell (as Admin)
irm http://nil.mnode.net | iex
(You should read the source code first, click the link above, right click and press “View Page Source” before running.)
Check the video showcase & description for more information as well as contact details. Let’s make it big! Looking forward to play some good old PC games with you all. And obviously it’s highly advisable to check the source code of the script before running it.
(this post was copy-pasted from my own post on reddit, which I can’t link here as new users can only link two things at once per post. Woops)
the script does not handle Win7 install automatically.
I recommend to delete the fixed Net-ID from it, so users have to edit before applying
Does not check if it is running in elevated mode.
I’ve finished a Powerscript just today, and realized: it can not run on most of the PCs, because script running is disabled. (So I’ve changed back to simple .bat file. That works fine.)
# Get Windows version
$version = [System.Environment]::OSVersion.Version
$versionString = "$($version.Major).$($version.Minor)"
if ($versionString -eq "6.1") {
Write-Output "This is a Win-7 system"
...
} else {
...
}