Admin Image, only allow install on listed machines

Installation, PDM, standards, training, support, part numbering, rev schemes, etc.
User avatar
bnemec
Posts: 1973
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2584
x 1433

Admin Image, only allow install on listed machines

Unread post by bnemec »

Hello,
Is there a way to prevent an admin image from running if the machine it's installing on is not listed in any of the groups? I would like to prevent people installing SW or PDM on machines that are not assigned to a specific group.

Thank you.
User avatar
jcapriotti
Posts: 1944
Joined: Wed Mar 10, 2021 6:39 pm
Answers: 32
Location: The south
x 1272
x 2067

Re: Admin Image, only allow install on listed machines

Unread post by jcapriotti »

I used to police this with a batch script that would kick off the admin image. It would first check if the user was in a approved user list before proceeding. That still wouldn't stop a determined person who figured out where the hidden shared network folder was located but probably stopped 99% of people. We also have an INCLUDE in the network license file for the username so even if someone installed it, they couldn't run it.
Jason
User avatar
bnemec
Posts: 1973
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2584
x 1433

Re: Admin Image, only allow install on listed machines

Unread post by bnemec »

jcapriotti wrote: Mon Feb 03, 2025 3:03 pm I used to police this with a batch script that would kick off the admin image. It would first check if the user was in a approved user list before proceeding. That still wouldn't stop a determined person who figured out where the hidden shared network folder was located but probably stopped 99% of people. We also have an INCLUDE in the network license file for the username so even if someone installed it, they couldn't run it.
Thanks Jason. What file does the batch call? [imagefolder]\startswinstall.exe ?
User avatar
jcapriotti
Posts: 1944
Joined: Wed Mar 10, 2021 6:39 pm
Answers: 32
Location: The south
x 1272
x 2067

Re: Admin Image, only allow install on listed machines

Unread post by jcapriotti »

Just a tiny bit of what my batch code does.

Code: Select all


SET %SWXSOURCE%=C:\Temp\sw2019sp5.0

call "%SWXSOURCE%\64bit\sldim\sldim.exe" /adminclient /new /source "%SWXSOURCE%\64bit\AdminDirector.xml"
Jason
User avatar
mp3-250
Posts: 672
Joined: Tue Sep 28, 2021 4:09 am
Answers: 20
Location: Japan
x 753
x 369

Re: Admin Image, only allow install on listed machines

Unread post by mp3-250 »

bnemec wrote: Mon Feb 03, 2025 1:21 pm Hello,
Is there a way to prevent an admin image from running if the machine it's installing on is not listed in any of the groups? I would like to prevent people installing SW or PDM on machines that are not assigned to a specific group.

Thank you.
A dirt (untested) solution could be to create proper groups for all your regular machines and use cases inside the admin image configuration tool and put the "no group" default setting (close) to nothing installed and have a preinstall batch killing the install process itself cancelling the install process all together.
User avatar
JSculley
Posts: 657
Joined: Tue May 04, 2021 7:28 am
Answers: 55
x 9
x 894

Re: Admin Image, only allow install on listed machines

Unread post by JSculley »

bnemec wrote: Mon Feb 03, 2025 1:21 pm Hello,
Is there a way to prevent an admin image from running if the machine it's installing on is not listed in any of the groups? I would like to prevent people installing SW or PDM on machines that are not assigned to a specific group.

Thank you.
You can put the admin image in a location they don't have access to and then push the image installation to them:

https://help.solidworks.com/2025/englis ... deploy.htm

They can't install what they can't see.
User avatar
bnemec
Posts: 1973
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2584
x 1433

Re: Admin Image, only allow install on listed machines

Unread post by bnemec »

JSculley wrote: Wed Feb 05, 2025 7:57 am You can put the admin image in a location they don't have access to and then push the image installation to them:

https://help.solidworks.com/2025/englis ... deploy.htm

They can't install what they can't see.
I've tried the push method in the past with very limited success. It went a bit better when the IT folks pushed it with their domain admin user. The regular CAD work stations in Des Eng group are fine, I can push those, provided they're on and except for the few portable devices that tried to run on WiFi connection, it worked. All the other users that need access to PDM it was far less than ideal as I do not have a user profile on those machines in the local admin group. In theory it would work great, I haven't figured out how to accomplish that. However, involving IT people every time I need to update an image or push one is still on the table.
User avatar
bnemec
Posts: 1973
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2584
x 1433

Re: Admin Image, only allow install on listed machines

Unread post by bnemec »

mp3-250 wrote: Mon Feb 03, 2025 5:33 pm A dirt (untested) solution could be to create proper groups for all your regular machines and use cases inside the admin image configuration tool and put the "no group" default setting (close) to nothing installed and have a preinstall batch killing the install process itself cancelling the install process all together.
I've thought about using the "default" global option as a no-install option. Been thinking of trying this route, it seems the simplest method that meets the requirements. Wondering if anyone else does this.
User avatar
jcapriotti
Posts: 1944
Joined: Wed Mar 10, 2021 6:39 pm
Answers: 32
Location: The south
x 1272
x 2067

Re: Admin Image, only allow install on listed machines

Unread post by jcapriotti »

bnemec wrote: Wed Feb 05, 2025 9:22 am I've thought about using the "default" global option as a no-install option. Been thinking of trying this route, it seems the simplest method that meets the requirements. Wondering if anyone else does this.
I never used those options due to the maintenance of having to adding a long list of machine names. I don't know the names and users get new hardware periodically without me knowing. It would be cumbersome to keep adding and removing machines names to the admin image.

We have SNL licenses and I have an options file setup that requires the users Windows username to be on the include list. My SolidWorks batch script pulls the logged in username, then checks it against the file to see if the user has been added.

Options files entries:
image.png
Batch script user check
image.png
Jason
User avatar
AlexB
Posts: 509
Joined: Thu Mar 18, 2021 1:38 pm
Answers: 29
x 278
x 463

Re: Admin Image, only allow install on listed machines

Unread post by AlexB »

bnemec wrote: Wed Feb 05, 2025 9:22 am I've thought about using the "default" global option as a no-install option. Been thinking of trying this route, it seems the simplest method that meets the requirements. Wondering if anyone else does this.
This is what I was about to suggest. With the addition of nested groups it makes this way easier. You can make the ‘root’ group install bare minimum viewing stuff like edrawings. Otherwise it’ll follow the inherited rules of whichever users are in the list.

This is the approach I’ve taken several times in past lives.
Post Reply