Hello everyone,
I need to build a tool to make installation of a new windows7 workstation easier.
It has to change to computername the username and the password.
And if it's possible set the licencekey.
I dont know where to start can anyone help me?
With regards.
Loading
Sander GroenPosted Aug 24, 2010, 7:09 AM
Let's give it a try :)
Manikavelu VelayuthamPosted Aug 24, 2010, 6:27 AM
Sander GroenPosted Aug 24, 2010, 6:07 AM
This is what i have right now and i get namespace errors.
Manikavelu VelayuthamPosted Aug 24, 2010, 5:35 AM
Example:
ObjectQuery oQuery = new System.Management.ObjectQuery("select MACAddress, IPAddress from Win32_NetworkAdapterConfiguration");
ManagementObjectSearcher oSearcher = new ManagementObjectSearcher(oQuery);
ManagementObjectCollection oObjColl = oSearcher.Get();
Above code is used to get the MAC address of a machine. Like this you can get or set the value of any computer.