Jump to content

Windows Defender Install


Recommended Posts

Hey Guys,

Hopefully this is a fairly easy fix... I have a *very* short lil' script (one in a series of scripts) that I am using to install Windows Defender. The install is working fine...

However, after the installation, WindowsDefender does and automatic update, then a scan, then shows a results window...

All of this is fine... however, after the scan (which takes ~2 minutes to run), I can't get my script to close the 'Results' window.

Help? :-)

Here is my script:

Run("msiexec /quiet /n /i WindowsDefender1593.msi")
WinWaitActive("Windows Defender", "Your computer is running normally.", 240)
WinClose("Windows Defender", "Your computers is running normally.")

Here is the 'AutoIT Window Info' from the 'results' window that I want to close after the scan:

Press CTRL-ALT-F to freeze the display.

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<
Title:  Windows Defender
Class:  msascui_class
Size:   X: 137  Y: 69   W: 750  H: 600

>>>>>>>>>>> Mouse Details <<<<<<<<<<<
Screen: X: 527  Y: 87
Cursor ID:  2

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<
RGB:    Hex: 0x005BF2   Dec: 23538

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<
Size:
Control ID:
ClassNameNN:
Text:

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<


>>>>>>>>>>> Visible Window Text <<<<<<<<<<<
Protection against malicious and unwanted software
Banner Panel
Back
Forward
Home
Scan
Scan options
History
Tools
Help
Help options
Summary View Panel
No unwanted or harmful software detected.
Your computer is running normally.
Scan statistics
(Quick scan)
Start time:
11:59 AM
Time elapsed:
00:01:30
Objects scanned:
24564
Object:
 
Status
Last scan:
Today at 11:59 AM. (Quick scan).
Scan schedule:
Daily around 2:00 AM.
Real-time protection:
On
Definition version:
1.14.1836.1 created on 11/15/2006 at 4:23 PM.

>>>>>>>>>>> Hidden Window Text <<<<<<<<<<<
&Stop Scan
Software Explorer Panel
Software Explorer
View or manage important security-related areas of the computer. <a href="Help://">Using Software Explorer</a> 
Software Explorers List Panel
Software Explorers Details Panel
Re&fresh
Chec&k for Updates Now
Percent complete:
 
Scan Results View Panel
Scan Results
0 items detected
Help prevent the spread of harmful and potentially unwanted software. <A HREF="view://Settings">Join Microsoft SpyNet</A>. 
&Select an action to apply:
Remove &All
Apply Ac&tions
Scan View Panel
Select scan options
How do you want Windows Defender to scan your computer?
&Quick scan
&Full system scan
Scan selected &drives and folders
S&elect...
S&can Now
Scan Progress View Panel
Scan statistics
(Quick scan)
Start time:
11:59 AM
Time elapsed:
00:01:30
Percent complete:
 
Objects scanned:
24564
Object:
HKLM\SOFTWARE\CLASSES\CLSID\{00020420-0000-0000-C000-000000000046}

TIA,

--jeff

Link to comment
Share on other sites

Hey Guys,

Hopefully this is a fairly easy fix... I have a *very* short lil' script (one in a series of scripts) that I am using to install Windows Defender. The install is working fine...

However, after the installation, WindowsDefender does and automatic update, then a scan, then shows a results window...

All of this is fine... however, after the scan (which takes ~2 minutes to run), I can't get my script to close the 'Results' window.

Help? :-)

Here is my script:

Run("msiexec /quiet /n /i WindowsDefender1593.msi")
WinWaitActive("Windows Defender", "Your computer is running normally.", 240)
WinClose("Windows Defender", "Your computers is running normally.")
From the WinClose help file section:

Remarks

This function sends a close message to a window, the result depends on the window (it may ask to save data, etc.). To force a window to close, use the WinKill function. If multiple windows match the criteria, the window that was most recently active is closed.

Cheers

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

Are you sure it's "computers" and not "computer"?

ah that's a good one and most certainly the problem.... ;)

Cheers

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

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...