fuscob Posted August 24, 2009 Posted August 24, 2009 (edited) So in XP and Vista, I use NETDOM after imaging to join the computer to the domain and then rename the computer (and its AD account) if necessary.I noticed that Win7 didn't work with the old copy of NETDOM that I used for XP and Vista, but I see that a copy gets installed when you install the RSAT (Remote Server Administration Tools).However, if you take the RSAT copy and move it to another machine that does not have RSAT installed, it doesn't work - when you launch it, it just exits without any output. (As a matter of fact, even if you move it to a different machine that does have RSAT installed, it still doesn't work!)I would use the PowerShell cmdlet Add-Computer, but I need to rename the computer in the same operation without restarting, which I was able to do under XP and Vista with NETDOM (NETDOM ADD and then NETDOM RENAMECOMPUTER).Any ideas, or has anyone else experienced this issue? If you add your machines to the domain post-imaging, how are you doing it? Edited August 24, 2009 by fuscob
cluberti Posted August 24, 2009 Posted August 24, 2009 Windows 7 no longer uses netdom, it instead has a PowerShell cmdlet called "Add-Computer".
fuscob Posted August 24, 2009 Author Posted August 24, 2009 Windows 7 no longer uses netdom, it instead has a PowerShell cmdlet called "Add-Computer".Yes, I mentioned that in my first post, but Add-Computer does not offer the ability to rename the computer, as NETDOM did.
Yoko Posted August 24, 2009 Posted August 24, 2009 I do this with a script:Install RSAT (After you have extracted the tools):start /w pkgmgr /n:%SystemDrive%\Install\RSAT\Windows6.1-KB958830-x86.xmlEnable some RSAT tools (including NETDOM)start /w pkgmgr /iu:RemoteServerAdministrationTools-Roles-AD-DS-SnapIns;RemoteServerAdministrationTools-Roles-AD-DS;RemoteServerAdministrationTools-Roles-AD;RemoteServerAdministrationTools-Roles;RemoteServerAdministrationToolsI essentially do the same as you except I use a VB script to rename the computer.
cluberti Posted August 24, 2009 Posted August 24, 2009 Yes, I mentioned that in my first post, but Add-Computer does not offer the ability to rename the computer, as NETDOM did.So you did - not sure how I missed it. Anyway, I'd probably suggest looking into using powershell a bit, as this is fairly easily done in powershell.
fuscob Posted August 25, 2009 Author Posted August 25, 2009 So you did - not sure how I missed it. Anyway, I'd probably suggest looking into using powershell a bit, as this is fairly easily done in powershell.Yes, I've found all of those solutions - believe it or not, I actually do some research before I post Unfortunately, they require the computer to be restarted before the new name can be applied, which doesn't work out for me.With NETDOM, I use NETDOM ADD to add the machine with its current name, and then give the user the option to rename the computer (and its corresponding Active Directory account) with NETDOM RENAMECOMPUTER.I do this with a script:Install RSAT (After you have extracted the tools):start /w pkgmgr /n:%SystemDrive%\Install\RSAT\Windows6.1-KB958830-x86.xmlEnable some RSAT tools (including NETDOM)start /w pkgmgr /iu:RemoteServerAdministrationTools-Roles-AD-DS-SnapIns;RemoteServerAdministrationTools-Roles-AD-DS;RemoteServerAdministrationTools-Roles-AD;RemoteServerAdministrationTools-Roles;RemoteServerAdministrationToolsI essentially do the same as you except I use a VB script to rename the computer.Thanks, I might try that method. I'll post back with my results.
jpmorgan Posted December 9, 2009 Posted December 9, 2009 Windows 7 and Vista both have their own NETDOM.EXE, for 32-bit and 64-bit.You have to install:Install RSAT (After you have extracted the tools): (took me awhile to find the link)http://www.microsoft.com/downloads/details...;displaylang=enstart /w pkgmgr /n:%SystemDrive%\Install\RSAT\Windows6.1-KB958830-x86.xmlEnable some RSAT tools (including NETDOM)start /w pkgmgr /iu:RemoteServerAdministrationTools-Roles-AD-DS-SnapIns;RemoteServerAdministrationTools-Roles-AD-DS;RemoteServerAdministrationTools-Roles-AD;RemoteServerAdministrationTools-Roles;RemoteServerAdministrationToolsYou will then have a "c:\windows\system32\netdom.exe" that supports the 'older' Netdom syntax.HOWEVER, IF YOU MOVE THE 'NETDOM.EXE" FROM THE 'SYSTEM32' SUB-DIR IT WILL NOT WORK???!!IT WILL JUST 'EXIT' UPON EXECUTION??BUT , if you WANT to move it, which i did. you have to do 'something' EXTRA.To whatever sub-dir you move the RSAT NETDOM.EXE to :1) FOR EXAMPLE, create a sub-dir called : %temp%\EN-US2) COPY /Y "%SYSTEMROOT%\SYSTEM32\EN-US\NETDOM.EXE.MUI" "%TEMP%\EN-USThen if you execute NETDOM.EXE from "%TEMP%" you should 'see' the familiar 'help'messages..NOTE: I have not, as of Dec 8, 2009 actually TESTED the FULL 'moved' NETDOM.EXE functionality, but WILL in the next day or so,. ALSO, someone made the comment that if it was moved' to another compouter it would not work also, I will verify that statement also.Hope this helps, as i DONT like the Powershell approach..J P Morgan james_p_morgan@hotmail.com
cluberti Posted December 9, 2009 Posted December 9, 2009 Looks like there's a new version of wsname available as of November 24th:http://mystuff.clarke.co.nz/MyStuff/wsname.asp
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now