Jump to content

[Windows Update] Automatic update a pc with IE.au3


Iznogoud
 Share

Recommended Posts

Hello,

I am thinking a while about making a script wich will fully update a Windows Xp pc with Windows Update.

I was thinking to do this with IE.au3 and with something like a case situation.

For an example a loop wich looks up the name of the active window and some text inside it and match it to a case wich must excist.

Like opening the default website: http://www.update.microsoft.com/windowsupd...ault.aspx?ln=nl

Search for the text and if text match with Welcome let it click the buttin Quick.

The only problem is that i can't find out a way to let the script click the button Quick or Start, depending on the language of your Windows.

Another problem what i found is that the text Welcome is always available whenever and wherever you are in the update process.

Does someone have any idea how i can update new installed pc's with Windows Update?

Maybe using by a 3rd party program?

Link to comment
Share on other sites

I can recommend c't Offline Update,

Read about it here:

http://www.heise-online.co.uk/security/features/print/80682

DL it here (link to latest version):

http://www.heise.de/ct/projekte/offlineupd...ctupdate472.zip

They've got an english forum on it here:

http://www.heise-online.co.uk/security/for...um-108322/list/

It separates the download and the update phase, allowing you to safely DL from WSUS

with another computer, which avoids exposing your (still vulnerable) computer

to the big bad outside net.

wim

Edited by whim
Link to comment
Share on other sites

Wouldn't be difficult in IE.au3.... except that there are a lot of Frames you need to drill into.

Once you get to the right frame, clicking on the express button is as easy as

$oExpress = _IEGetObjByID($oFrame, "aExpress")

_IEAction($oExpress, "action")

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

Wouldn't be difficult in IE.au3.... except that there are a lot of Frames you need to drill into.

Once you get to the right frame, clicking on the express button is as easy as

$oExpress = _IEGetObjByID($oFrame, "aExpress")

_IEAction($oExpress, "action")

Dale

Maybe to much to ask, but could do it for the first button?

If i know where to look for i can search for it by myself. And how do i control the page wich will show that there are no updates?

I am trying but AutoIT at hisself is no problem for me as wich i can find the answers myself, but IE.au3 is very new to me and i would like to learn how to find the specific keys / objects.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...