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
![Smile :)](./images/smilies/icon_e_smile.gif)
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$
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$
Code: Alles auswählen
Set $user$ = administrator
Code: Alles auswählen
Set $user$ = "administrator"