Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Need Help?

Need Help?

Scheduled Pinned Locked Moved C#
databasehelptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chathura
    wrote on last edited by
    #1

    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:(

    H L 2 Replies Last reply
    0
    • C Chathura

      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:(

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      You can use SetComputerNameEx to change the computer name and NetRenameMachineInDomain to change the name in the domain. You can also simply call NetRenameMachineInDomain but you must supply a coputer name for the lpNewMachineName 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-----

      1 Reply Last reply
      0
      • C Chathura

        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:(

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups