forked from davehull/Kansa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
125 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<# | ||
.SYNOPSIS | ||
Get-AMHealthStatusStack.ps1 | ||
Returns the following fields: | ||
AntispywareEnabled, AntispywareSignatureAge, | ||
AntispywareSignatureVersion, AntivirusEnabled, AntivirusSignatureAge, | ||
AntivirusSignatureVersion, BehaviorMonitorEnabled, Enabled, | ||
EngineVersion, IoavProtectionenabled, Name, NisEnabled, | ||
NisEngineVersion, NisSignatureVersion, OnAccessProtectionEnabled, | ||
ProductStatus, RealTimeScanDirection, RtpEnabled, SchemaVersion, | ||
Version | ||
Requires: | ||
Process data matching *AMHealthStatus.tsv in pwd logparser.exe in path | ||
.NOTES | ||
DATADIR AMHealthStatus | ||
#> | ||
|
||
if (Get-Command logparser.exe) { | ||
$lpquery = @" | ||
SELECT count ( | ||
AntispywareEnabled, | ||
AntispywareSignatureAge, | ||
AntispywareSignatureVersion, | ||
AntivirusEnabled, | ||
AntivirusSignatureAge, | ||
AntivirusSignatureVersion, | ||
BehaviorMonitorEnabled, | ||
Enabled, | ||
EngineVersion, | ||
IoavProtectionenabled, | ||
Name, | ||
NisEnabled, | ||
NisEngineVersion, | ||
NisSignatureVersion, | ||
OnAccessProtectionEnabled, | ||
ProductStatus, | ||
RealTimeScanDirection, | ||
RtpEnabled, | ||
SchemaVersion, | ||
Version) AS CNT, | ||
AntispywareEnabled, | ||
AntispywareSignatureAge, | ||
AntispywareSignatureVersion, | ||
AntivirusEnabled, | ||
AntivirusSignatureAge, | ||
AntivirusSignatureVersion, | ||
BehaviorMonitorEnabled, | ||
Enabled, | ||
EngineVersion, | ||
IoavProtectionenabled, | ||
Name, | ||
NisEnabled, | ||
NisEngineVersion, | ||
NisSignatureVersion, | ||
OnAccessProtectionEnabled, | ||
ProductStatus, | ||
RealTimeScanDirection, | ||
RtpEnabled, | ||
SchemaVersion, | ||
Version | ||
FROM | ||
*AMHealthStatus.tsv | ||
GROUP BY | ||
AntispywareEnabled, | ||
AntispywareSignatureAge, | ||
AntispywareSignatureVersion, | ||
AntivirusEnabled, | ||
AntivirusSignatureAge, | ||
AntivirusSignatureVersion, | ||
BehaviorMonitorEnabled, | ||
Enabled, | ||
EngineVersion, | ||
IoavProtectionenabled, | ||
Name, | ||
NisEnabled, | ||
NisEngineVersion, | ||
NisSignatureVersion, | ||
OnAccessProtectionEnabled, | ||
ProductStatus, | ||
RealTimeScanDirection, | ||
RtpEnabled, | ||
SchemaVersion, | ||
Version | ||
ORDER BY | ||
CNT ASC | ||
"@ | ||
|
||
& logparser -stats:off -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery" | ||
|
||
} else { | ||
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName) | ||
"${ScriptName} requires logparser.exe in the path." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters