Solved

WIndows XP Product Key Change

Posted on 2008-10-22
7
435 Views
Last Modified: 2012-05-05
Hi,

I need script which can change Windows XP product key on more than 100+ PC's can someone provide me any vbscript which can help me to do this activity.

Thanks and Regards,

Anurag
0
Comment
Question by:nicepenfriend
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 96

Expert Comment

by:Lee W, MVP
ID: 22774771
I assume you mean a volume license product key - in which case, see the sample scripts in this Microsoft article:
http://support.microsoft.com/kb/328874
0
 

Author Comment

by:nicepenfriend
ID: 22774812
I have this script but what I would change in this script so that it will change automatically on more than 100+ pc's
0
 
LVL 96

Expert Comment

by:Lee W, MVP
ID: 22774948
Use PSEXEC to run it against a list of PCs.
http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

Author Comment

by:nicepenfriend
ID: 22774969
Thanks for your reply but how to use psexec command with this script if I do manually then it would take long time to run this script for more than 100 pc's

Can we bind psexec in script so that it will read pc name from some txt file and change it on pc's
0
 
LVL 8

Accepted Solution

by:
MatthiasVance earned 125 total points
ID: 22775059
You can use the following code, adjust to your needs.

Place all computer names in a text file (no blank lines, otherwise it will run locally) and adjust the command, you can use %%a wherever you need the computer name.

Kind regards,

Matthias Vance
@ECHO OFF
for /f %%a in (exec.txt) do echo Computer: %%a && <yourcommand>

Open in new window

0
 

Author Comment

by:nicepenfriend
ID: 22775104
Thanks for your reply I will check it and let you know it works or not.
0
 
LVL 96

Expert Comment

by:Lee W, MVP
ID: 22779037
Did you read the link I posted on PSEXEC?  Because it includes - very near the top - an explanation of usage.  In that explanation, it details one of the command line parameters:
"@file      Directs PsExec to run the command on each computer listed in the text file specified."

You would run PSEXEC, providing it with a text file containing a list of all machines, and the command to run on the remote machine.

You describe your ability as "Advanced on this subject" -  figured it wasn't necessary to explain in such minute detail...
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had a hard drive that you can't boot into, but need to change the registry? Here is the solution! This article guides you through accessing and editing a registry of a non-primary drive. To read registry information on a non-prim…
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question