?
Solved

rename computer names from Windows Server 2008?

Posted on 2014-01-08
3
Medium Priority
?
286 Views
Last Modified: 2014-06-18
is it possible to rename computer names without actually loggin into the workstations to change the computer names? is it possible to change it from the server end?

Thanks
Clipboard01.jpg
0
Comment
Question by:cadnyc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 57

Expert Comment

by:Mike Kline
ID: 39766636
What OS are the computers that need to be renamed?  You can do it via powershell using the rename-computer cmdlet, more on that here

http://technet.microsoft.com/en-us/library/hh849792.aspx

Thanks

Mike
0
 
LVL 53

Expert Comment

by:Will Szymkowski
ID: 39766903
This can also be accomplished using the "netdom" command as well. The syntax is below...

netdom renamecomputer server1 /newname:server2.domain.com /userd:administrator /passwordd:* /Force:01 /Reboot:01

Open in new window


To get netdom you need to have RSAT installed on a workstation or you need to be on the domain controller.

Will.
0
 
LVL 12

Accepted Solution

by:
ktaczala earned 2000 total points
ID: 39767019
Here's a VBS Script I use ON THE SERVER
change the last line to fit your info.
Save it as vbs file
And yes netdom has to be available

'On Error Resume Next
'open the file system object
Set oFSO = CreateObject("Scripting.FileSystemObject")
set WSHShell = wscript.createObject("wscript.shell")
Dim sNewCname     'Variable to hold Computer Name you enter in the inputbox
Dim sOldCname        'computers current name
'First param is message text, second is message title
sOldCname = InputBox("Enter computers current name","Windows Server Netdom Rename Script")
sNewCname = InputBox("Enter computers new name","Windows Server Netdom Rename Script")
Call WSHShell.Run("cmd.exe /K netdom renamecomputer " & sOldCname & " /newname:" & sNewCname & " /userd:DOMAIN\ADMINISTRATOR /passwordd:PASSWORD /usero:DOMAIN\ADMINISTRATOR /passwordo:PASSWORD /force /reboot:30 ")
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question