Jump to content

commandline parameter /AddAdminRights?


syntax_13

Recommended Posts

I am using the "settings" part of wihu to give a user an interactive option to create a new primary user.

I pre-fill the dialog boxes with defaults for username/password/etc. That way, if no user input is detected, the program will continue and create a default user.

Is there a commandline parameter to enable "Add administrator rights to new user", or is it better to use the .ini file for setting these defaults?

If so, then how would i add a user to the Administrator group?

Another question, is it possible to remove/hide/disable the "load" button?

Link to comment
Share on other sites


Is there a commandline parameter to enable "Add administrator rights to new user", or is it better to use the .ini file for setting these defaults?

Although there is already such an option I added /group=Administrators|Users to add primary user to specified group.

An alternative way is to define a new user in [users] sections and set this to default:

[users]
default = 0
user.0=Primary User
group.0 = 1; Add Admin rights

I also added /DisableLoadMenu=0|1 to prevent a user from loading external INI files.

Benjamin Kalytta

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...