How Do You Deploy Software Silently on Domain-Joined Windows Machines?
Asked by
TechWizard42
Hey everyone! I'm a systems technician, not exactly a developer, but I've been trying out different methods for silently deploying software to domain-joined Windows computers without using agents or WinRM. Here's my current setup: 1. I copy the installer to the target machine using SMB. 2. A temporary service is created through the Service Control Manager (SCM). 3. The installer runs as LOCAL SYSTEM. 4. I ensure the SHA-256 hash is verified before execution. 5. After installation, the service and any related files are automatically cleaned up.
This solution leaves no trace afterwards, which is a plus. I developed this tool to streamline AD and M365 management tasks, and it's been performing well so far in my environment. However, I'm curious about how others approach remote software deployment. Are you using Intune, GPO, or something else? Do you have security or operational concerns with using SMB and temporary services? Also, I'm looking for a test tenant for Microsoft 365 integration. I applied to the Microsoft 365 Developer Program, but unfortunately got rejected. Any tips?
Answers
Your approach is solid for environments where WinRM is restricted. I suggest considering using Task Scheduler via RPC; it allows you to create and trigger a scheduled task remotely which can be a cleaner way to execute things without leaving as much behind.
Reply to this answer
Your method is actually quite similar to how many traditional remote admin tools function, like PsExec. Copy binary โ create a temporary service โ execute as SYSTEM โ clean up. Just keep an eye on AV and EDR systems that might flag those temporary services!
TechWizard42: Great feedback! Fortunately, we use PDQ Deploy, so the EDR isn't a problem for us. I appreciate the heads up!
Reply to this answer
PDQ Deploy is really great! I've been using it for a while, and it pair nicely with PDQ Inventory for deployment and inventory management. If you're looking for a solid solution, this pairing is definitely worth considering!
GadgetGuy923: Totally agree! We're actually thinking about moving to PDQ at work, especially since the free tier is already pretty robust!
Reply to this answer
Iโve been experimenting with a winget script via Intune, but Iโm not quite there yet. Whatโs tricky is figuring out how to execute the winget command from Intune. Any suggestions?
BackupBoss92: Are you using a PowerShell script to call winget? What specific issues are you running into?
Reply to this answer
You might want to explore Group Policy for software deployment! The Microsoft documentation is thorough: it shows how to use the assign method to install software silently. Itโs quite effective!
TechWizard42: Thanks for the tip! Iโm looking for a solution that lets me trigger deployments on-demand, though.
Reply to this answer
Add your answer
Answers are reviewed before publication.
TechWizard42: Thanks for the suggestion! Iโm definitely interested in looking into that and also exploring named pipes for better logging.