Solved

rename computer names from Windows Server 2008?

Posted on 2014-01-08
3
271 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Do email signature updates give you a headache?

Constantly trying to correctly format email signatures? Spending all of your time at every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

Join & Write a Comment

Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
OfficeMate Freezes on login or does not load after login credentials are input.
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 give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

772 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now