RabbieBurns Posted June 8, 2010 Posted June 8, 2010 I issued a computer today and I forgot to rename it before I did so. Is there a way I can remotely rename it, using psexec or something ?
mac_shinobi Posted June 8, 2010 Posted June 8, 2010 (edited) create a vbscript that will rename a local computer and then use win32_process to execute said vbscript on the remote computer ( the vbscript will have to be somewhere where computers can access it ie sysvol or the likes ) http://www.computerperformance.co.uk/vbscript/wmi_process_start.htm#Example_1_-_Launching_Processes_on_a_Remote_Machine_ maybe use psexec to execute said vbscript or what ever script you want to do the task Never tested wmi on windows 7 so not sure of implications or if it will work etc - hopefully should be the same Edited June 8, 2010 by mac_shinobi
srochford Posted June 8, 2010 Posted June 8, 2010 Assuming it's a domain member you can just use netdom: netdom /renamecomputer oldcomputername /newname:newcomputername /userD:domain\username /passwordD:ReallySecret /force /reboot 1
RabbieBurns Posted June 8, 2010 Author Posted June 8, 2010 Assuming it's a domain member you can just use netdom: netdom /renamecomputer oldcomputername /newname:newcomputername /userD:domain\username /passwordD:ReallySecret /force /reboot Will that work with windows 7 too ?
srochford Posted June 8, 2010 Posted June 8, 2010 I think that netdom isn't installed on a machine by default (it's part of RSAT) but I'm pretty sure it works (we use it locally for renaming the machines and I know the help for the command shows that you can use it remotely) 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now