Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi!

i'm a newbie user of wmi, and i'm using it for my code project and i need to rename the current computer name, and i don't know where to start and what to do. can anyone do some coding for me.it'll be a big help.

thanks lot!

regards,
anaidyou
Posted

1 solution

You can use the Rename method to rename a computer.
have a look there-MSDN-[Rename Method of the Win32_ComputerSystem Class][^]
and Take a look at given links for more references
Programmatically renaming a computer using C#[^]
 
Share this answer
 
v2
Comments
anaidy0u 17-Aug-11 11:20am    
thanks RaviRanjankr, i'll try to work on it :)

and btw will that be the same in renaming NetConnectionID?? for LAN?
RaviRanjanKr 18-Aug-11 15:21pm    
Sorry I've not any Idea about NetConnectionID for LAN. :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900