Solved

rename computer names from Windows Server 2008?

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
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…

810 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