Some Suggestions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • btbtbt
    Forum Member
    • Jul 2010
    • 7

    Some Suggestions

    1- First Idea:


    PC_Users = System.GetAllUsers()

    and it will get all the users of the pc with each privilege (Administrator, Power User, User, Guest)

    example: the PC_Users will get all the users and store it in PC_Users as:

    Bahaa Administrator
    Eko Administrator
    Tako Power User
    kiven Guest


    and it will get the username as: PC_Users[1].Name
    will be as the example mentioned "Bahaa"

    and its privilege as: PC_Users[1].Privilege
    will be as the example mentioned "Administrator"


    and it will get the username as: PC_Users[3].Name
    will be as the example mentioned "Tako"

    and its privilege as: PC_Users[3].Privilege
    will be as the example mentioned "Power User"



    and to list all the users in one variable let it be: PC_Users.Name
    and to list all the users Privilege in one variable let it be as: PC_Users.Privilege
    and to get 1 line could be PC_Users.GetAllUsers[1]
    as it will get the first username with his privilege as:
    "Bahaa Administrator"

    and to get 1 line could be PC_Users.GetAllUsers[4]
    as it will get the first username with his privilege as:
    "kiven Guest"




    2- Second Idea:

    And another thing to get the Groups of the users: for example...

    PC_Groups = System.GetAllGroups()
    which will list the Groups of the users listed by the privilages and store it in a variable PC_Groups .


    example:


    PC_Groups = System.GetAllGroups()
    will store the following values in the variable PC_Groups as:

    Administrators: Bahaa ,Eko
    Power Users: Tako
    Guests: Kiven


    and the programmer could get each one as:


    PC_Groups.Administrators[1] -- (gets the first administrator as "Bahaa")
    PC_Groups.Administrators[2] -- (gets the Second administrator as "Eko")
    PC_Groups.PowerUsers[1] -- (gets the first Power User as "Tako")
    PC_Groups.PowerUsers[2] -- (gets the second power user as "" if not available, and "xxxxx" if available)
    PC_Groups.Guests[1] -- (gets the first Guest user as "Kiven")
    PC_Groups.Guests[2] -- (gets the first Guest user as "" if not available and "xxxxxx" if available)
    PC_Groups.Guests[3] -- (will get the first Guest user as "" if not available and "xxxxxx" if available)
    etc...



    also the programmer can get all the administrators together:

    example:
    PC_Groups.Administrators -- (will get the first administrator as "Bahaa, Eko")


    as he can get all the Power Users together:

    example:
    PC_Groups.PowerUsers -- (will get the first administrator as "Tako, Charle, Emmy")



    and finally he can get all the Guests together:

    example:
    PC_Groups.Guests -- (will get the first administrator as "Kiven, Ibram, Mike")



    3- Third Idea:

    System.SetCurrentUser("New Username", "UserGroup", "Password", Boolean);
    -the first argument is the New Username (changed the current username to another new username).
    -the second argument is the Privilege of the current user, which could be Administrator, Power User, User or Guest.
    -the third argument is New Password to the current User, if it's set to "" then it should not change the current password of the current user.
    -the fourth argument is Boolean which could be true to enable the UAC ot false to Disable the UAC for that new user. (for Windows Vista, seven and windows 8).



    4- Fourth Idea:

    System.SetUserName("New Username", "UserGroup", "Password", Boolean);
    Changes the username of another user to a new username:
    -the first argument is the New Username of that other user.
    -the second argument is the Privilege of that user, which could be Administrator, Power User, User or Guest.
    -the third argument is New Password to that User, if it's set to "" then it should not change the current password of the current user.
    -the third argument is Boolean which could be true to enable the UAC ot false to Disable the UAC for that user. (for Windows Vista, seven and windows 8).



    5- Fifth Idea:

    System.CreateNewUser("New user", "Password", "UserGroup", Boolean);

    Creates a new User:
    -the first argument is the new username.
    -the second argument is the password of that new user, if it's set to "" then it means the password disabled (no password is required to log on to this user).
    -the third argument is the privilege of that new user.
    -the fourth argument is Boolean which could be true to enable the UAC ot false to Disable the UAC for that new user. (for Windows Vista, seven and windows 8).



    6- Sixth Idea:


    System.DeleteUser("Username");

    Delets a specified user


    That's enough for now, and I hope it's very clear... and I hope it'll be made in the next close version very soon please.
Working...
X