This script works like a charm, but every time I put in the silent switches the script does not run. Am i missing something? It does not error out it just does not run the updates. If I take out the switches I recieve the normal GUI interface for the update. Thanks!
Is there anyway to get around the path to the EXE? for example i want to not have to download all the exes to the local machine. This would cut time down a little. Thanks
Instead of this Case "Latitude D420" : ExeToRun = "D420_A06.EXE" : NewBIOSVersion="A06"
Can we do something like Case "Latitude D420" : ExeToRun = "\\Server\Share\D420_A06.EXE" : NewBIOSVersion="A06"
I have tried just modifying it like i did above but it doesnt work. Im sorry but im not a vbs guy.
There is a PathtoScript variable created based on the script's location. It would appear that if you put the script and BIOS EXE's on a network share, it should run fine from there. I think you are trying to run a local script to a remote location and the PathToScript variable is breaking that.
Hi guys,
I was wondering if I could get a little help. I can across this article a couple of years ago but had the same issues listed about not being able to run the BIOS installs silent. I just checked back on it and I see tiggerah had posted a change to the script line that should get everything to work properly. The problem is this still doesn't work for me and I'm pulling my hair out as to figure out why. The script works fine when running normally and I get prompted for the proper BIOS install, but as soon as I replace the line with the switches it simply ceases to do anything. Here is part of the script I was testing with; I'm simply running it from a folder on the desktop with the BIOS revision .exe in the same folder. I also have the laptop at A04 BIOS revision:
Case "Latitude D810" : ExeToRun = "D810_A05.EXE" : NewBIOSVersion="A05"
Case Else : ExeToRun = "NA"
End Select
If ExeToRun = "NA" Then
MsgBox "We do not currently provide a BIOS upgrade for a " & Model & vbcrlf & vbcrlf & "If this is an older model system, please excess the equipment.",0,DlgTitle
Wscript.Quit(1)
ElseIf BIOSRev = NewBIOSVersion Then
MsgBox "The current BIOS[" & BIOSRev & "] for this " & Model & " is up-to-date and does not require an upgrade.",0,DlgTitle
Wscript.Quit(1)
End If
ExeStr = PathToScript & "\" & ExeToRun
WshShell.Run ExeStr & " -NOPAUSE", 1, False
Wscript.Quit(0)
Am I just overlooking something simple, such as how I'm running the script or my test setup? The above script should install unattended AND reboot automatically correct? I appreciate any information that can help.
jcjacques
4 Posts
2513
0
Posted October 23rd, 2010 04:00
Found you a solution of this problem? I have the same problem at present... Thank you.