Creating Windows Users

W

Wayne Gibson

Hi,
Was wondering if anybody could help.
I need to write a management utility to create new users on windows 2000 and
Windows xp machines.
They aren't networked, but several people will be using the machine.

And I want to be able to disable certain aspects of Windows 2000 or Windows
XP. So the machine doesn't get tampered with..
So I would like to disable the Control Panel, disable modify the registry
settings and a few more..

I have seen a program called wintweaks, which will write to the other users
registry settings..
But haven't seen any examples of how this done, anybody got any ideas?

Also has anybody seen or got any examples of how to create a new user?

Thanks

Wayne Gibson
 
J

John Phillips

Wayne,

The best course of action to accomplish what I think you're trying to
accomplish is to check out the documentation for the NetUserAdd() (and
friends), LsaAddAccountRights(), and LsaRemoveAccountRights() functions.

As for writing to another user's registry hive, one can just adjust values
in HKU\<sid>.

Or use LogonUser() and RegOpenCurrentUser().
 
L

Loskutov Eugene

Wayne Gibson said:
Hi,
Was wondering if anybody could help.
I need to write a management utility to create new users on windows 2000 and
Windows xp machines.
They aren't networked, but several people will be using the machine.
To create new user you should use "net user" command.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top