Jump to content

Recommended Posts

Posted (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 by mac_shinobi
Posted

Assuming it's a domain member you can just use netdom:

 

 

netdom /renamecomputer oldcomputername /newname:newcomputername /userD:domain\username /passwordD:ReallySecret /force /reboot

  • Thanks 1
Posted
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 ?

Posted
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)
  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...