Jump to content

Incroyable HULK

Patron
  • Posts

    1,279
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Canada

Posts posted by Incroyable HULK

  1. Already done! Check the front page.

    This post has been edited by Incroyable HULK: Apr 13 2006, 07:00 AM

    i think the KB911565 should be updated on the first page

    my windows XP sp2 update shows that and when i went to microsoft homepage i have found a new one a v2 version of that file the WindowsMedia10-KB911565-v2-x86-ENU.exe

    it has even a new release date Date Published: 4/11/2006

    Well anyone can verify and confirm

    Thanx

    You are correct. See my update post for updated information. Hopefully Incroyable Hulk will have the front page updated shortly.

  2. I'd be interested in knowing how you join a domain without needing to reboot though. Manual or otherwise.

    Well, we are currently adding those new computer manually and we always change the name and then adding them to the domain and it works without a reboot (clean install on Windows XP SP2). It may occasionally fails (about 1 time on 10 attemps) for unknown reasons but most of the times it works.

    This code will be part of a HTA Wizard at the end of our unattended Installation to perform some additional task like adding the inventory tag, updating the Intranet, Etc.

    I don't want to always add the computer to the domain that's why I want to do it this way (instead of adding them on the domain during the unattended install).

    What if I use my wizard to Create the computer account first on the domain? Would that work?

  3. Hello all,

    I want to rename a computer and then join the domain WITHOUT a reboot. Since I am able to do so manually, I figured it would also be possible thru scripting...

    My code works BUT The Account created on the domain uses the old computer

    name (the DNS Name field is using the new name).

    post-15410-1144596404_thumb.png

    RENAME METHOD 1 (using the registry, may be compatible with Win2K)

    Set shell = CreateObject("WScript.Shell")
    Shell.RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName\ComputerName", NewName
    Shell.RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\NV Hostname", NewName

    OR RENAME METHOD 2 (WinXP Only)

    Set objWMIService = GetObject("Winmgmts:root\cimv2")
    For Each objComputer in objWMIService.InstancesOf("Win32_ComputerSystem")
    objComputer.rename(NewName, NULL, NULL)
    Next

    JOIN DOMAIN (WinXP Only?)

    Const JOIN_DOMAIN			 = 1
    Const ACCT_CREATE = 2
    Const ACCT_DELETE = 4
    Const WIN9X_UPGRADE = 16
    Const DOMAIN_JOIN_IF_JOINED = 32
    Const JOIN_UNSECURE = 64
    Const MACHINE_PASSWORD_PASSED = 128
    Const DEFERRED_SPN_SET = 256
    Const INSTALL_INVOCATION = 262144

    strDomain = "AD"
    strPassword = "password"
    strUser = "username"

    Set objNetwork = CreateObject("WScript.Network")
    strComputer = objNetwork.ComputerName
    Set objComputer = GetObject ("winmgmts:\\" & strComputer & _
    "\root\cimv2:Win32_ComputerSystem.Name='" & strComputer & "'")
    objComputer.JoinDomainOrWorkGroup(strDomain, strPassword, strDomain & _
    "\" & strUser, NULL, 1 + 2)

    Should I create the account on the domain before joining?

    Do I have to use the MoveHere method of ADSI to apply the new name to the account or there is a better way?

    Any help appreciated

×
×
  • Create New...