Running ipconfig using batch files

Posted on 2003-04-01
Medium Priority
Last Modified: 2012-06-22
Hi there.

I need to run

ipconfig /setclassid "Local Area Connection" LAPTOP

on about 180 imaged laptops, the images having the run command disabled at source (even for admins).

I also need to run

ipconfig /release
ipconfig /renew

after this command.  I figured that a .bat file would probably be the best way, but I'm unsire of the syntax.  Any ideas?
Question by:markdemanbey
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

Accepted Solution

mkosma earned 80 total points
ID: 8247341
BAT file is simple.  Probably you want to release before you setclassid and renew, so I would create a file (say IPC.BAT) as follows:

ipconfig /release
ipconfig /setclassid "Local Area Connection" LAPTOP
ipconfig /renew

Now, if the run command is disabled, presumably you cannot get into windows explorer either.  There's a variety of things to try to work around the security restrictions -- here's a couple ideas that come to mind:

1. right click on the XP desktop, see if it let's you select New then Shortcut, and create a shortcut to "A:\ipc.bat" or wherever you put the file.

2. Burn a CDROM containing ipc.bat and a file called AUTORUN.INF containing the following two lines:


hope this does the trick!

Expert Comment

ID: 9065763
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

777 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