add user Description
This commit is contained in:
parent
e17cdd2d0b
commit
da552201e6
@ -5,11 +5,13 @@ setLogLevel=3
|
||||
DefVar $ProductId$
|
||||
DefVar $ProductName$
|
||||
DefVar $local_user$
|
||||
DefVar $local_desc$
|
||||
DefVar $Group$
|
||||
DefVar $SearchResult$
|
||||
DefVar $flag_active$
|
||||
DefVar $val_userpasswd$
|
||||
DefVar $val_username$
|
||||
DefVar $val_userdesc$
|
||||
DefVar $val_groupmember$
|
||||
DefVar $val_expires$
|
||||
DefVar $UserExists$
|
||||
@ -97,6 +99,10 @@ comment "val_username"
|
||||
comment "description: admin username"
|
||||
set $local_user$= GetProductProperty("val_username", "locsupp")
|
||||
|
||||
comment "val_userdesc"
|
||||
comment "description: admin user description"
|
||||
set $local_desc$= GetProductProperty("val_userdesc", "Local Support")
|
||||
|
||||
comment "val_groupmember"
|
||||
comment "description: Groupemembership"
|
||||
set $UserGroup$= GetProductProperty("val_groupmember", "Administratoren")
|
||||
@ -122,7 +128,7 @@ net user $local_user$ >nul 2>&1 && echo yes || echo no
|
||||
"$PsGetSidExe$" /accepteula S-1-5-32-547
|
||||
|
||||
[DosInAnIcon_makeadmin]
|
||||
NET USER $local_user$ $val_userpasswd$ /ADD /comment:"Local User created by opsi-package" /fullname:"Local User by Opsi" /passwordchg:no /passwordreq:yes
|
||||
NET USER $local_user$ $val_userpasswd$ /ADD /comment:"Local User created by opsi-package" /fullname:"$local_desc$" /passwordchg:no /passwordreq:yes
|
||||
NET LOCALGROUP $Group$ /ADD $local_user$
|
||||
|
||||
[DosInAnIcon_alter_pw]
|
||||
|
@ -30,6 +30,15 @@ description: Benutzer aktiv
|
||||
values: ["off", "on"]
|
||||
default: ["off"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: val_userdesc
|
||||
multivalue: False
|
||||
editable: True
|
||||
description: Beschreibung des lokalen User
|
||||
values: ["locsupp"]
|
||||
default: ["locsupp"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: val_username
|
||||
|
Loading…
Reference in New Issue
Block a user