r/sysadmin • • 7d ago

Question How can I build a free tool that automatically installs selected software on new staff laptops?

I work in IT. When a new person joins, I want to choose the tools they need and install them all with one click.

The software includes AutoCAD 2024, Revizto, Navisworks Manage, Microsoft 365, PDFgear, Chrome and more. All of them are .exe installers.

What is the easiest way to do this?

0 Upvotes

56 comments sorted by

11

u/Aegisnir 7d ago edited 7d ago

GPO…if the apps don’t have an MSI, write a bat script that runs on logon/startup that checks if program exists and installs them if they don’t. I automated my complete workstation and user enrollment with GPOs. User signs in and everything is configured without me touching a single thing. Do a simple check like if exists EXIT, IF NOT cp to temp and install with a .exe /S

1

u/BingaTheGreat 7d ago

How do you deal with user context? Are your users admins? Does it run as system?

2

u/EntranceClear1524 6d ago

Yeah, I have admin rights. I am doing it, and every time when a user joins, a lot of time will take to install one laptop, and the issue is on time.

7

u/Aegisnir 7d ago

What user context…? All GPOs run as system. Nobody except me and my IT team are admins, that would be insanity.

1

u/BingaTheGreat 7d ago

By default logon scripts run in the context of the user logging in.

1

u/Aegisnir 7d ago

Maybe it was startup scripts then. I made my templates many years ago and just copy them for new software. Haven’t had to make one from scratch in a long time.

3

u/BingaTheGreat 7d ago

Those run as system by default I believe. Would be cool to make a user based logon policy/script though. If you could do that it'd be easier to target specific users.

1

u/Aegisnir 7d ago

I’m not at the office to check but it’s probably a mix of the two then. I probably made logon scripts for things like Webex that install in user app data and startup for my system installs. I do most of that work when I join them to the domain and they get the GPO policies. Then my users sign in and get their remaining logon scripts.

1

u/Ssakaa 6d ago

That sounds great, until the moment you have users on different machines at various times.

0

u/Incrediblecodeman 7d ago

Your the GOAT

2

u/SilverNeptuneAbyss 5d ago

You're

Also this is really basic stuff. Nobody who's actually a system admin would call him a goat

1

u/Incrediblecodeman 5d ago

It’s called a compliment. Have you gotten one yet?

1

u/SilverNeptuneAbyss 5d ago

For telling someone to use a gpo? Of course not that's like the first thing you learn. Everyone knows that

1

u/Incrediblecodeman 5d ago

Ya I remember using GPO back in the day

1

u/SilverNeptuneAbyss 5d ago

So why would you call him the goat for doing something that everyone is taught

1

u/Incrediblecodeman 5d ago

You still get taught? Old school. No ya I discover. I don’t wait for someone to articulate themselves

1

u/SilverNeptuneAbyss 5d ago

In a few decades when you have the experience I have you will understand.

/R/iamverysmart

1

u/Aegisnir 5d ago

Clearly not everyone is taught that…I recommended GPO because everyone else was trying to overcomplicate it. When I responded there were 10+ other responses about much more complicated solutions.

Dude was trying to say a nice thing to me. Doesn’t seem like this much of a reaction is necessary lol. I’m definitely not the GOAT, but that’s alright and we can all be nice here.

1

u/SilverNeptuneAbyss 5d ago

The dude is actually incredibly racist and fucked up in the head if you look through his post history. That's the only reason why I'm here I came from another thread.

Like really really racist. And fucked up his brain with drugs and he thinks that he's some like badass system admin because he asked AI to do everything for him

2

u/Aegisnir 5d ago

I haven’t checked so I’m not going to defend those claims, but based on the exchange I see here alone, this thread is spiraling a bit. Maybe what you say is true, that’s fine. The internet is full of different people and you aren’t going to change people’s views on Reddit no matter how much you argue with them if they aren’t open to change and self-improvement.

→ More replies

0

u/[deleted] 5d ago

[deleted] — view deleted comment

1

u/Aegisnir 5d ago

Yeah but then you need to trust that product and I’m very security-conscious. If I can script it, I’d rather just do that. I try to avoid extra software whenever I can. If it can’t be done natively, I’ll write scripts or a tool myself. Everything IT falls on me so I need to act as Helpdesk, sysadmin, and CISO all at once and I can’t take risks even if they seem mundane. Modifying an installer seems mundane but if something malicious gets slipped in, I have nobody to blame but myself.

19

u/thenewguyonreddit 7d ago

This is like the #1 problem in IT that has already been solved countless different ways. Why on earth would you try to build a solution yourself here? That’s like building a laptop from scratch.

Technically you can… but you’re going to spend a ridiculous amount of time, money, and effort for something that won’t be as good as an existing commercial solution.

5

u/Ninfyr 7d ago

I can only trust it if I dug the sand out of the ground myself!

18

u/ranhalt 7d ago

How are you made of so much free time that you’d make your own deployment software in an attempt to reinvent the wheel? Would you work on this at home in your free time off the clock? We all use commercial products for this because it’s worth the cost.

9

u/MustardMan02 7d ago

Is this going to be a tool you're continuously maintaining, updating, adding new tools, removing old ones, and supporting for the org?

8

u/Jaack18 7d ago

intune packages

5

u/DGC_David 7d ago

Personally I would just use Autopilot.

2

u/3ng_ 6d ago

This is the way to go if you're using Microsoft 365

3

u/DGC_David 6d ago

Correct, but it's the cheapest solution right now, that's scalable at all points of your business. I hate them, but it's probably the most likely option available.

5

u/SevaraB Sr. Engineer (N+, CCNA) 6d ago

If you can afford AutoCAD, you can afford an existing software provisioning tool. DO NOT try to vibe-code one. Provisioning happens about the same time as hardening, so don’t muck around with vibe-coded software when your endpoints are literally at their most vulnerable.

12

u/BadMadDaddy 7d ago

Create a package list in WinGet

5

u/BingaTheGreat 7d ago

Winget is a poor candidate for a 100% automated setup that takes place within a retail windows install. Winget itself isn't easy to install automated. With that out of the way...winget can do this well if you okay with the cursory Install Winget->launch package list install.

4

u/dan-theman Windows Admin 7d ago • Bravo

All of these installs can probably be scripted. I also script my OS installs using MDT, I would just add the apps in and you could even select which ones you want if everyone doesn’t get everything. Otherwise just individually script the installs and depending if you need to do restarts you might be able to put multiple installs in a single script.

How to script: Google documentation for automated install commands for each app. I think autocad has its own deployment tool.

Alternatively, run a command prompt as an admin try running the installer with /? After the installer name and often you get a window with instructions for how to silent or passive install the application. I prefer passive install so you can see progress but don’t need to interact. Silent install you don’t know it’s done until it’s there.

Scripting and automating installs is my small sliver IT that I’ve specialized in for the past 15 years. Feel free to ask any questions.

1

u/mochadrizzle 7d ago

Yes this is the way. Didn't see your comment till after I posted mine.

1

u/EntranceClear1524 7d ago

No, it's only for my own use. I'm not building it for the whole organization. I just want to save time when I set up new laptops, instead of installing every tool by hand.
I've read a few things online and got some ideas, but I'm still not clear on the best way. That's why I'm asking for suggestions.

4

u/mochadrizzle 7d ago

If you are doing it only for yourself, you could build powershell scripts that do the installs for you run it. Can handle pretty much everything including licensing.

2

u/BlackV I have opnions 7d ago edited 7d ago

I'd say you can't, but there are many tools out there that do this already

But they (even yours if you decide to make one) all fail on those sorry apps that can't silent install

What do you have already? Intine?

At its simplest it's a PowerShell script and maybe a network share (Or usb)

3

u/Pusibule 6d ago

I still didn't found any app that can't be silent installed one or another way.

Yes, you may need to modify the msi (with orca), or reverse engineer what it do in the installation and redo those steps in scripting, like any config stored in the registry or per user install. At worst, just transplant (copy) the folder and registry and register whatever dll needed on the system.

1

u/BlackV I have opnions 6d ago

Is less of a problem that days, but I still find them now and then, a bunch of the Chinese specific apps still find

2

u/Resident-Ground-6762 6d ago

Before I suggest anything and everything, may I check what is the endpoint management strategy in your organization, AD, AAD + Intune, Any other MDM tool ?

0

u/weHaveThoughts 7d ago

Ask Claude

2

u/Churn 7d ago

Yep, he asked for the easiest, and ask Claude to do it. Claude will do it for you but you will pay it every time. Instead, ask Claude to create a website with the software installation packages. The website will have a single button that says Install. You boot up a new computer, open your website on it and click the button.

2

u/JustFrogot 7d ago

zthen claude can fix whatever fits wrong in 3-4 hours

1

u/brocessor 7d ago

Package the software and deploy via Intune. Plenty of good guides online. Add your computers/users into a group to control which machine/user gets what.

1

u/missed_sla 7d ago

Just use an RMM

1

u/highroller038 7d ago

Do you use an RMM tool in your environment? Start there.

1

u/slibrar 7d ago

Powershell.

1

u/pacmanlives Alcoholism as a Service 7d ago

SCCM or Intune depending on your environment

1

u/tructt Sr. Sysadmin 7d ago

PSADT maybe

1

u/a60v 6d ago

Ansible? That would be a good free option.

0

u/[deleted] 5d ago

[removed] — view removed comment

1

u/EntranceClear1524 5d ago

Thank you. It worked now.