Need Help?
-
I am trying to make a autometed image which will be image a new computer and add that computer domain. To do that I need to get avialble computer name from my database and change the current name and then add the computer to domain. I know how to add computer to domain but I don't know home to change the computer name. Can any one help me PL: CJ:(
-
I am trying to make a autometed image which will be image a new computer and add that computer domain. To do that I need to get avialble computer name from my database and change the current name and then add the computer to domain. I know how to add computer to domain but I don't know home to change the computer name. Can any one help me PL: CJ:(
You can use
SetComputerNameEx
to change the computer name andNetRenameMachineInDomain
to change the name in the domain. You can also simply callNetRenameMachineInDomain
but you must supply a coputer name for thelpNewMachineName
parameter. See the PSDK for more details.-----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----
-
I am trying to make a autometed image which will be image a new computer and add that computer domain. To do that I need to get avialble computer name from my database and change the current name and then add the computer to domain. I know how to add computer to domain but I don't know home to change the computer name. Can any one help me PL: CJ:(
That mite work on good ol' win9x, but it wont with any NT based OS, as you will have duplicate SID (see MCSE docs whereever they may be) on the network and the domain controller will refuse to use then. Maybe there is some other way, perhaps look at the the Deployment sections in one of the Resourse Kits. Good luck :) leppie::AllocCPArticle("Zee blog");
Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.