Solved

WIndows XP Product Key Change

Posted on 2008-10-22
7
390 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
  • 3
  • 3
7 Comments
 
LVL 95

Expert Comment

by:Lee W, MVP
Comment Utility
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
Comment Utility
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 95

Expert Comment

by:Lee W, MVP
Comment Utility
Use PSEXEC to run it against a list of PCs.
http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:nicepenfriend
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks for your reply I will check it and let you know it works or not.
0
 
LVL 95

Expert Comment

by:Lee W, MVP
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

The way I use Experts Exchange to assist me in analyzing and diagnosing a problem is I first enter a Verbose Question at Experts Exchange like: Office 2007 will hang when opening and saving files I then launch WordPad (any text editor will do) an…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now