Jump to content

localgroup add - language independent


Recommended Posts

Guest fiversen
Posted

Hello,

 

in my installation process of my programm,

sometimes I need a new user.

A user which is member of 'Power User'.

 

In the script,

I create the user

> net user Tester Password /add

 

and add the user to 'Power User'

>net localgroup "Power User" Tester /add

 

This is OK.

 

But I need this on a lot of different Windows Languages,

and the groups have different names

- in Germany: Hauptbenutzer,

.....

 

With the API function

- NetLocalGroupAddMembers(..., ...)

I have the same problem.

 

I saw,

in a ADs example - they also work the name 'Administrators'.

 

But I need language independent localgroup-names.

 

So long

Frank Iversen

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...