In these covid-19 times, a lot of us have to work from home, or at least always remotely to our sites we admin.
Settting up a new computer for the users domain from home-office, can be challenging.
Windows 10 does allow you to join a domain over VPN, but after you restart the machine, you can’t join the VPN before you login, as needed to contact the DC for the first-time login
So here’s how.
In your vpn server, or firewall on the site, you need to make a User account that mirrors the login of that AD-user you want to store credentials for.
if you’re using Meraki MX firewall like me, it only allows you to use email-addresses when making guest-accounts for vpn clients, so in this case you can use
“[email protected]” instead of
domain\username
Then you need to set the password for the VPN the same as the users password, so if it’s a pre-existing user, and not a new user you’re setting up with a temporary starter pwd, just tell them and let them set it back after.
when setting up the machine, go to control panel → network / sharing center and “configure a new connection”, do NOT use the vpn-settings menu, as this will not allow you to login with this vpn connection.
pick “connect to a work-place” *or something similar*
this menu will allow you only to enter the public IP of the FW or vpn server, and name the connection, so after it’s made you’re gonna have to find the vpn connection in your “change settings for network-cards”, and configure it from there with the right protocol, preshared key, etc.
when you’re finished, open Vpn settings and connect, it will ask for usn/pwd, enter “[email protected]” and the PWD you set (should be the same as in the domain)
You can now add the computer to the domain and restart the computer.
It’s when the pc reboots the magic happens.
Now, if you did this correctly, you will have a new sign next to network connections, before login, and if you click it, you can sign in with vpn.
now, if the credentials to the VPN match the login to the domain, you can login like this, and the users credentials get stored, you can use the same vpn to do the rest of your setup, and the pc is ready for delivery.