Unsolved
This post is more than 5 years old
2 Posts
0
17637
May 11th, 2006 19:00
VBScript for reseting bios passwords and setting ONLY hard drives to be enabled for boot
*** Edit *** I can't figure out how to post code on this site. Oops. If anyone could tell me how, i'll post the code.
I spent a lot of time looking for VBScripts that did what I needed, and failed repeatedly so I finally put this together. I figured I'd offer it up to the community since I learned how most of this worked from scripts out there. Yes, I realize the code is a mess, and I agree its pretty archaic. If someone cares to clean it up feel free. I have it packaged with a few .cmd and .bat files that check connectivity and runs it in a for loop off a list of hostnames as well. If someone desires a full copy of it feel free to email: james.e.kirkpatrick@us.army.mil
Usages:
cscript //nologo master.vbs
Functionality:
1. Displays Hostname, Model, Time, Data, Bios Ver, Service Tag
2. Tries to set and to blank in order to change the boot order
3. Sets the boot order so ONLY Internal HDD, Hard-Disk Drive C:, or Internal SATA Harddrive can be boot from. Sets position to 1.
4. Displays the Status and Position of each possible boot device
5. Turns the config password back on to
The script needs beautified but it works.
Tested against: C600, C840, D600, D610, D620, GX260, GX270, GX400, GX620, P3X0, P650
Output looks like this:
Computer Name: yourcomputername
Date: 5/11/2006
Time: 4:11:11 PM
Model: Precision WorkStation 650
Service Tag: 8JDWM21
BIOS Version: A04
Time: 4:11:11 PM
Model: Precision WorkStation 650
Service Tag: 8JDWM21
BIOS Version: A04
Tried to Disable Diskette Drive
Boot Position: 3
Boot Status: Off
Tried to Enable Hard-Disk Drive C:
Boot Position: 1
Boot Status: On
Tried to Disable IDE CD-ROM Device
Boot Position: 2
Boot Status: Off
Boot Position: 3
Boot Status: Off
Tried to Enable Hard-Disk Drive C:
Boot Position: 1
Boot Status: On
Tried to Disable IDE CD-ROM Device
Boot Position: 2
Boot Status: Off
Message Edited by Jekirkpatrick on 05-11-200603:25 PM
No Events found!


Jekirkpatrick
2 Posts
0
November 9th, 2006 19:00
1. This does not RESET your bios password. Its poor wording on my part. You are REQUIRED to blank out the password prior to changing certain bios settings, boot order being one of them. Thus, you must know your old password, and I've simply added in the capability to use this script to change the password while you're at it.
2. If you do not know your bios password, you can call Dell's support number, give them the service tag and another number out of the bios (forget which)... They SHOULD be able to generate the default password for that bios.
3. I've updated these scripts in a nice little pack with Alive.exe and have them set up to run in loops. Basically you can give it a list of 1000 names and it will try and ping each box, then if it gets a reply, it will run a the script against that machine. If no response, it will move on to the next one in the list.
If anyone has someplace they want to host the scripts, let me know. It would be alot better than me having to frequently mail them out to people.
Thank you,
Jim Kirkpatrick