Link to home
Create AccountLog in
Avatar of kentrg11
kentrg11

asked on

Fine SSID in registry and rename the key on remote computer

Hi guys ,
Im trying to  create a small program in C# sharp  that will prompt a user for a username and computer name.  It will need to get the SID of the user entered. Then go into the registry of a provided computer and rename the key to .bak

Any hits would be appreciated , im fairly new to C$ and not sure where to start.
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Hi kentrg11,

Try this tutorial

http://www.codingvision.net/miscellaneous/c-edit-registry-keys-or-values/

and a pretty old article but good point to start
http://www.codeproject.com/Articles/3389/Read-write-and-delete-from-registry-with-C

Let me know if you need more help with it.

Regards,
Chinmay.
Hi,

One thing you need to consider is the security!

All computers doesn't allow you to peep in to the registry unless you have Admin previliges! Moreover, if you just take the computer name, then what is the scope of search?

I mean  - Local LAN/WAN!
Avatar of kentrg11
kentrg11

ASKER

thanks ill have a look.
its a domain environment and only admins should be able to do it
can you point me in the right direction in regards to obtaining the SID of the username that's been entered.
I will need to query AD somehow and return the correct SID. Then rename it
ASKER CERTIFIED SOLUTION
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
1