Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Modify system settings in VBScript


  • Please log in to reply

#1
jweinraub

jweinraub

    Member

  • Member
  • PipPip
  • 21 posts
I am trying to make a VBScript here in my office that can be used to automate certain tasks on our laptops.

Mainly, I want the script to change the IP to a static IP (10.1.1.1 for this example) and mask to 255.255.0.0.

if a wireless adapter exists, disable it.

change the system wallpaper (for all users) too myWallpaper.bmp

additionally, if possible, check if the Firewall is enabled. If it is, advise user toi disable it (or actually turn it off).

and check if a certain program exists (program files\myapp\foobar.exe). if it does, figure out hte version number. then i can do additional steps if its less than a version, or if non existent, advise user.

(the user in this case is an administrator that sets up the laptops for field work).

thanks a bunch
  • 0

Advertisements


#2
inoxx.net

inoxx.net

    Member

  • Member
  • PipPip
  • 16 posts
I don't think plain VBScript is the right thing to use.
  • 0

#3
jweinraub

jweinraub

    Member

  • Topic Starter
  • Member
  • PipPip
  • 21 posts
yea i quickly gave up on that idea. i am now trying to do it in C#....i can get figure out which wallpaper is showing, the hostname, and ip. i can not get net mask, or to show if the IP is Static or set by DHCP.

nor do i know how to change the networking stuff, changing wallpaper i reckon isnt too difficult.

and checking for version number i got figured out too.

my laptop at work doesnt have the visual studio, but my desktop does, and that is home :-)
  • 0

#4
stu_design

stu_design

    Member

  • Member
  • PipPipPip
  • 217 posts
you could do it in vb....
but watver serves u fancy
  • 0

#5
jweinraub

jweinraub

    Member

  • Topic Starter
  • Member
  • PipPip
  • 21 posts
vb.net for vb6? i lost my vb6 disc, but on .net isnt it just the same thing more or less? i tend to prefer case - sensitivity and brackets when i code, but syntax for the things i need to do is about the same. i just cant figure out how to get the subnet mask and determine if it is DHCP/or static, or even change it for that matter (not user supplied program will issue what i need).
  • 0

#6
Guest_Mosaic1_*

Guest_Mosaic1_*
  • Guest
Have you looked at the iphlpapi.dll ?

check this site for VB:
http://www.andreavb....topic_3462.html
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP