Skip to content

Commit

Permalink
Merge branch 'next'
Browse files Browse the repository at this point in the history
  • Loading branch information
davehull committed Jul 23, 2014
2 parents af69242 + fa731e9 commit 97722ac
Show file tree
Hide file tree
Showing 31 changed files with 125 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Analysis/Net/Get-ARPStack.ps1
Expand Up @@ -28,7 +28,7 @@ if (Get-Command logparser.exe) {
ct ASC
"@

& logparser -q:on -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"
& logparser -stats:off -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/Net/Get-DNSCacheStack.ps1
Expand Up @@ -24,7 +24,7 @@ if (Get-Command logparser.exe) {
ct ASC
"@

& logparser -q:on -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"
& logparser -stats:off -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
Expand Up @@ -60,7 +60,7 @@ if (Get-Command logparser.exe) {
ct desc
"@

& logparser -q:on -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery
& logparser -stats:off -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/Net/Get-NetstatForeign16sStack.ps1
Expand Up @@ -55,7 +55,7 @@ if (Get-Command logparser.exe) {
Cnt, Process desc
"@

& logparser -q:on -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery
& logparser -stats:off -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/Net/Get-NetstatForeign24sStack.ps1
Expand Up @@ -55,7 +55,7 @@ if (Get-Command logparser.exe) {
Cnt, Process desc
"@

& logparser -q:on -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery
& logparser -stats:off -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/Net/Get-NetstatForeignIpPortProcesStack.ps1
Expand Up @@ -54,7 +54,7 @@ if (Get-Command logparser.exe) {
ct desc
"@

& logparser -q:on -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery
& logparser -stats:off -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/Net/Get-NetstatForeignIpProcess.ps1
Expand Up @@ -51,7 +51,7 @@ if (Get-Command logparser.exe) {
ct desc
"@

& logparser -q:on -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery
& logparser -stats:off -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/Net/Get-NetstatListenerStack.ps1
Expand Up @@ -42,7 +42,7 @@ if (Get-Command logparser.exe) {
Cnt, Process desc
"@

& logparser -q:on -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery
& logparser -stats:off -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/Net/Get-NetstatStack.ps1
Expand Up @@ -62,7 +62,7 @@ if (Get-Command logparser.exe) {
ct desc
"@

& logparser -q:on -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery
& logparser -stats:off -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/asep/Get-ASEPImagePathLaunchStringMD5Stack.ps1
Expand Up @@ -30,7 +30,7 @@ if (Get-Command logparser.exe) {
ct ASC
"@

& logparser -q:on -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"
& logparser -stats:off -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
Expand Up @@ -36,7 +36,7 @@ if (Get-Command logparser.exe) {
ct ASC
"@

& logparser -q:on -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"
& logparser -stats:off -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
Expand Up @@ -31,7 +31,7 @@ if (Get-Command logparser.exe) {
ct ASC
"@

& logparser -q:on -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"
& logparser -stats:off -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/asep/Get-ASEPImagePathLaunchStringStack.ps1
Expand Up @@ -29,7 +29,7 @@ if (Get-Command logparser.exe) {
ct ASC
"@

& logparser -q:on -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"
& logparser -stats:off -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
Expand Up @@ -30,7 +30,7 @@ if (Get-Command logparser.exe) {
ct ASC
"@

& logparser -q:on -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"
& logparser -stats:off -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/asep/Get-SvcFailAllStack.ps1
Expand Up @@ -36,7 +36,7 @@ if (Get-Command logparser.exe) {
ct ASC
"@

& logparser -q:on -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery
& logparser -stats:off -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/asep/Get-SvcFailCmdLineStack.ps1
Expand Up @@ -25,7 +25,7 @@ if (Get-Command logparser.exe) {
ct ASC
"@

& logparser -q:on -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery
& logparser -stats:off -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/asep/Get-SvcFailStack.ps1
Expand Up @@ -40,7 +40,7 @@ if (Get-Command logparser.exe) {
ct ASC
"@

& logparser -q:on -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery
& logparser -stats:off -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/asep/Get-SvcTrigStack.ps1
Expand Up @@ -32,7 +32,7 @@ if (Get-Command logparser.exe) {
ct ASC
"@

& logparser -q:on -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery
& logparser -stats:off -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
95 changes: 95 additions & 0 deletions Analysis/config/Get-AMHealthStatusStack.ps1
@@ -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."
}
2 changes: 1 addition & 1 deletion Analysis/config/Get-LocalAdminStack.ps1
Expand Up @@ -24,7 +24,7 @@ if (Get-Command logparser.exe) {
ct ASC
"@

& logparser -q:on -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"
& logparser -stats:off -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/log/Get-LogUserAssistValueByDate.ps1
Expand Up @@ -27,7 +27,7 @@ if (Get-Command logparser.exe) {
KeyLastWriteTime DESC
"@

& logparser -q:on -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"
& logparser -stats:off -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/log/Get-LogUserAssistValueStack.ps1
Expand Up @@ -25,7 +25,7 @@ if (Get-Command logparser.exe) {
ct ASC
"@

& logparser -q:on -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"
& logparser -stats:off -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/process/Get-HandleProcessOwnerStack.ps1
Expand Up @@ -28,7 +28,7 @@ if (Get-Command logparser.exe) {
ct ASC
"@

& logparser -q:on -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"
& logparser -stats:off -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/process/Get-PrefetchListingLastWriteTime.ps1
Expand Up @@ -25,7 +25,7 @@ if (Get-Command logparser.exe) {
LastWriteTimeUtc Desc
"@

& logparser -q:on -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery
& logparser -stats:off -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/process/Get-PrefetchListingStack.ps1
Expand Up @@ -26,7 +26,7 @@ if (Get-Command logparser.exe) {
ct
"@

& logparser -q:on -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery
& logparser -stats:off -i:tsv -fixedsep:on -dtlines:0 -rtp:-1 $lpquery

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/process/Get-ProcsWMICLIMD5Stack.ps1
Expand Up @@ -28,7 +28,7 @@ if (Get-Command logparser.exe) {
Cnt ASC
"@

& logparser -q:on -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"
& logparser -stats:off -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/process/Get-ProcsWMICmdlineStack.ps1
Expand Up @@ -24,7 +24,7 @@ if (Get-Command logparser.exe) {
ct ASC
"@

& logparser -q:on -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"
& logparser -stats:off -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/process/Get-ProcsWMIProcessNameStack.ps1
Expand Up @@ -24,7 +24,7 @@ if (Get-Command logparser.exe) {
ct ASC
"@

& logparser -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"
& logparser -stats:off -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/process/Get-ProcsWMISortByCreationDate.ps1
Expand Up @@ -27,7 +27,7 @@ if (Get-Command logparser.exe) {
ProcessId ASC
"@

& logparser -q:on -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"
& logparser -stats:off -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion Analysis/process/Get-ProcsWMITempExePath.ps1
Expand Up @@ -34,7 +34,7 @@ if (Get-Command logparser.exe) {
ProcessId ASC
"@

& logparser -q:on -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"
& logparser -stats:off -i:tsv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery"

} else {
$ScriptName = [System.IO.Path]::GetFileName($MyInvocation.ScriptName)
Expand Down
2 changes: 1 addition & 1 deletion kansa.ps1
Expand Up @@ -763,7 +763,7 @@ function Set-KansaPath {
}
}
if (-not($found)) {
$env:path = $env:path + ";$pwd\Analysis\ASEP;$pwd\Analysis\Meta;$pwd\Analysis\Net;$pwd\Analysis\Process;$pwd\Analysis\Log;"
$env:path = $env:path + ";$pwd\Analysis\ASEP;$pwd\Analysis\Config;$pwd\Analysis\Meta;$pwd\Analysis\Net;$pwd\Analysis\Process;$pwd\Analysis\Log;"
}
}

Expand Down

0 comments on commit 97722ac

Please sign in to comment.