Execute script on macOS with avoid macOS user password prompt

Hi All,

I'm looking to execute some application installation in silent mode.

Currently, the main issue is avoiding macOS user password prompt by pop-up dialogs with the user's password.

The main idea (of the solution, I suggest) - is providing a macOS username & password as script parameters (inside the script).

I've tried several ways including AppleScript usage, based on providing a username & password, and "with administrator privileges"...

Also - AppleScript usage, based on application run (like: tell application "Terminal")...

Tried - shell scripts...

No success!

Not sure if I'm doing this is correct enough, or if the selected solution is correct at all.

The maximum that I've got: is silent execution stuck (all over attempts - pop the user password dialog).

Thanks a lot!

Execute script on macOS with avoid macOS user password prompt
 
 
Q