Seite 1 von 1
How do i make this work ?
Verfasst: 28 Nov 2016, 17:15
von Radek
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
Re: How do i make this work ?
Verfasst: 28 Nov 2016, 17:35
von andré
Try it this way:
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$
edit: removed space between GetProductProperty and bracket
Re: How do i make this work ?
Verfasst: 28 Nov 2016, 18:16
von Radek
andré hat geschrieben:Try it this way:
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$
edit: removed space between GetProductProperty and bracket
I have already tried this. But thanks for an advice.
Re: How do i make this work ?
Verfasst: 29 Nov 2016, 06:56
von Radek
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 ?
Verfasst: 09 Dez 2016, 11:20
von ueluekmen
I think, that the line:
should be: