Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Need a script to change the name of a computer

07 Feb 2012   #11
Cancerous

Windows 7 Professional 32bit
 
 

I'm doing it using wsname.exe now.

Code:
for /f "delims=" %a in ('c:\windows\system32\webfetch.exe websiteurl.php') do @set VMHOST=%a

wsname.exe /N:%VMHOST%
That works
Not it's just a matter of getting it to work with sysprep


My System SpecsSystem Spec
.
Reply

 Need a script to change the name of a computer




Thread Tools




Similar help and support threads
Thread Forum
Can a script be written to change all IE settings across a network?
Hello, we are running a 2012 server. We are on a domain. We recently received notification that advanced settings in IE need to be updated specifically in order to use their website. And something to do with a SSL. Is there a way to change all IE settings on all of the computers connected to our...
Browsers & Mail
Visual Basic Script Change
Someone who knows Visual Basic Scripting, help me with a script that was handed to me, but it's not complete and can use a few adjustments to it. The script is a little advanced, just a forewarning :)
Software
how to change his script?
how to change his script?
General Discussion
Script to change power settings
Greetings, I am attempting to temporarily disable hibernate and make sure the monitor doesn't go off while I am running a script to complete system configuration. control powercfg.cpl -monitor-timeout-ac 30 control powercfg.cpl -monitor-timeout-dc 30 control powercfg.cpl /hibernate off
Performance & Maintenance
Change default program through script
Hi guys, I'm in a new IT job for a computer lab and I'm picking up skills for maintaining it as I go along. I need to change the default program for a filetype on all machines in the lab. If I just log on as admin and change it under my account, the change doesn't persist for the non-admin...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:39.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App