• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1153
  • Last Modified:

Running ipconfig using batch files

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?
0
markdemanbey
Asked:
markdemanbey
1 Solution
 
mkosmaCommented:
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:

[autorun]
open=ipc.bat

hope this does the trick!
0
 
CleanupPingCommented:
markdemanbey:
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 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now