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!
 
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
 
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.
 
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
 
Back
Top Bottom