Seite 1 von 1

Passing additional variables to the preloader?

Verfasst: 14 Nov 2008, 17:53
von wardenik
Hi,

Is it possible somehow to add some 'pre defined' parameters for an winnt script from OPSI configed?
I.e. I want to add the user to some groups automatically after installation, which can be done via a command line, but obviously the script has to know the username (and it has to be run with administrator privileges or before logging in).

Or do I have to extend the JAVA applet for this functionality?

Re: Passing additional variables to the preloader?

Verfasst: 14 Nov 2008, 18:41
von d.oertel
Hi,

you may define product properties wich can be edited client specific via opsi-configed.
Have for a example a look at our javavm product which have properties like java15=on/off.
These properties could also be free difined strings (like the product key in winxppro)
Have look at the opsi-manual Chapter 4.3.2.1 how to define these properties.
Use the opsi-winst command 'inivar' to read theses properties at runtime.

One other possible solution for your problem could be to create a ini-file
with a hash
client name=user name
and fetch the correct user name for the client while runtime with the opsi-winst command
GetvalueFromInifile

Does this help ?

regards
detlef oertel

Re: Passing additional variables to the preloader?

Verfasst: 18 Nov 2008, 12:26
von wardenik
thanks!
the properties feature was exactly the thing I was looking for :)
great job!