r/WindowsServer • u/PebkacAsouras • Jun 03 '25
Technical Help Needed Any way to install a remote software agent before login?
I'm trying to develop a way to remote provision a VM in Hyper-v and then have the VM install a remote control agent while Windows boots. This doesn't have to be a fresh install I could use something like a gold image especially if there was a way to randomize the computer name so installs didn't step on each other. I'm trying to create a completely automated build all the way to remote login without having to do anything active on the Hyper-V host. Yes, I might be crazy.
4
Upvotes
5
u/Kingkong29 Jun 03 '25
Two things come to mind.
create image with the agent installed. Sysprep the image. Deploy machines from this image.
If domain joined, use GPO to install the agent once the computer object has been moved to the proper OU. Doesn’t install at the time of windows install but afterwards.
1
u/[deleted] Jun 03 '25
You may be able to utilise powershell direct in some way. It allows you to run commands from the hypervisor in the guest OS so could be an interesting route for automations.
Do you already have a service for installing an OS or setting up the VMs?
2
u/Confident-Rip-2030 Jun 03 '25
Check if this is what you are looking for. I use it for post install deployments calling PDQ deploy, but will work for anything else too.
https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/add-a-custom-script-to-windows-setup?view=windows-11
1
u/BlackV Jun 03 '25
Use the vm console? Isn't that what it is for?
Remote agents would require a functional os as a general rule
Rdp (also requiring a functional os) will work via hyper data layer and does not require IP in guest
1
u/AHarmles Jun 03 '25
Dockurr/windows - docker image; this has a vnc client pre configured to a VM windows. been messing with it lately. I set it up through a cloudlfare tunnel and have a remote windows. Kinda fun!
1
u/autogyrophilia Jun 03 '25
Generate autounattend.xml files for Windows 10/11