Renaming computers remotely

Soldato
Joined
31 Dec 2003
Posts
4,750
Location
Stoke on Trent
Hi all

Does anyone know if Quest migration tool allows you to rename windows computers remotely?

I am attempting this using a vb script and powers hell script and wondering if it would be easier to pay for a tool

Thanks!
 
jsut remote to it and rename it?

is it in a domain? how many do you need to do? who cares what a workstation is called? why can't to tell someone what to do in the office?
 
Cheers lizard king I have a script which uses netdom but running into some issues with it which made me wonder, spend time to troubleshoot it or buy software which could make my life easier. I think I will persist to troubleshoot a little first though as its quite fun for starters :-)

To ed: over 800 all different sites across the world and renaming to standardise
 
Post your script up, maybe someone can help :)
There are a few tools out there that can rename them but i think there more aimed at doing it individually.

Have a look at FOG, i'm pretty sure it can automatically name PC's to a standard, would take a fair amount of setting up but the end result will be a set and forget!
 
OK thanks for the offer, never thought of asking for help but I need it! Dunno if this is the right forum for a script or not, but here goes:

Code:
for /f "tokens=1,2 skip=1" %a in ('find /i "%computername%" c:\scripts\names.txt') do psexec \\%a -u username -p password netdom renamecomputer %a /newname: b /userD:username /passwordd:password /usero:user passwordo:password /reboot:60
 
Current issue I have with that for loop is that it's not reading the string correctly, it's reading it as "---------"

I'm not using powershell because I havn't found a script that can do what I want using it.
 
Not reading the string from names.txt correctly? Can you post names.txt? I'm guessing there is more to this script to define %computername%?
 
no, I'm inheriting the script, I don't define computername variable, that is the script in it's entirety. The contents of names.txt is just test then a tab then test2
 
OK thanks for the offer, never thought of asking for help but I need it! Dunno if this is the right forum for a script or not, but here goes:

Code:
for /f "tokens=1,2 skip=1" %a in ('find /i "%computername%" c:\scripts\names.txt') do psexec \\%a -u username -p password netdom renamecomputer %a /newname: b /userD:username /passwordd:password /usero:user passwordo:password /reboot:60

Skip=2 works for me - doesn't look like it should but it does
 
Back
Top Bottom