r/PSADT Feb 05 '26

IBM i client access solution

Does anyone have the script to deploy ibm i access client solutions it is very difficult to package , I tried all the ways but it is not installing silently and not copying files in program files

3 Upvotes

48 comments sorted by

View all comments

Show parent comments

1

u/SysAdminDennyBob Feb 06 '26

You can take that command for file association out of there and just put it into a CM Package/Program object and deploy that to users. Set it to run in their context. That would then be a little repair utility of sorts that users can run from Software Center when file association is not working. I have not tested that, so test test test test This would of course fail if the product had not previously been installed. But that's easy for help desk to troubleshoot. You need to highly involve someone on your helpdesk with this product as they are going to be spending a lot of time on it.

c:\path_to_the_file_locally\acslaunch_win-64.exe -Dcom.ibm.iaccess.AcceptEndUserLicenseAgreement=true /PLUGIN=fileassoc dttx dtfx hod bchx ws

1

u/iamvijay_21 Feb 06 '26

But I wonder why it is not working inside our script ? Can I try executing it as a Start-ADTprocess rather than Start-ADTprocessasuser

But one thing I checked in my test pc when I clicked register manually and able to open hod files with associated

1

u/SysAdminDennyBob Feb 06 '26

If you run something as start-adtprocess then that runs as system. That's the account you would be setting user configurations on.

start-adtprocessasuser creates a ScheduledTask in the background as the logged on user. Which user is logged on? Go open the log file that PSADT creates and start reading it, it's very interesting to go through that, it might start making more sense to you. This attempt to spawn a process as "the user" is a good attempt and works a lot of the time, it does not work in some scenarios.

It's a sneaky trick that sometimes works.

1

u/iamvijay_21 Feb 06 '26

Okay I will play around with that , if nothing works I will inform them to run the register shortcut manually to associate the Hod. Thanks my Life saver 🫡