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
Solved

rename computer names from Windows Server 2008?

Posted on 2014-01-08
3
276 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
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 500 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

789 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