Hi, i am having problems with this. Can you please help me ?
DefVar $passwd$
DefVar $user$
Set $passwd$ = GetProductProperty ("password","test")
Set $user$ = administrator
[Actions]
DosBatch_1 $user$ $passwd$
[DosBatch_1]
net user %1 %2
I am new to opsi i am thankful for any help thanks
How do i make this work ?
Re: How do i make this work ?
Try it this way:
edit: removed space between GetProductProperty and bracket
Code: Alles auswählen
[Actions]
DefVar $passwd$
DefVar $user$
Set $passwd$ = GetProductProperty("password","test")
Set $user$ = administrator
DosBatch_1
[DosBatch_1]
net user $user$ $passwd$
Re: How do i make this work ?
andré hat geschrieben:Try it this way:
edit: removed space between GetProductProperty and bracketCode: Alles auswählen
[Actions] DefVar $passwd$ DefVar $user$ Set $passwd$ = GetProductProperty("password","test") Set $user$ = administrator DosBatch_1 [DosBatch_1] net user $user$ $passwd$
I have already tried this. But thanks for an advice.
Re: How do i make this work ?
Okay now it does look like i am stupied, but i have really tried it exectly the same way and it didnt worked.... Now it does work. Thanks man.
Re: How do i make this work ?
I think, that the line:
should be:
Code: Alles auswählen
Set $user$ = administrator
Code: Alles auswählen
Set $user$ = "administrator"
opsi support - uib gmbh
For productive opsi installations we recommend support contracts.
http://www.uib.de
For productive opsi installations we recommend support contracts.
http://www.uib.de