You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was having trouble getting this to run. After switching from -tsv to -csv it began working properly:
C:\Users<user>\Desktop\Kansa-master\Kansa-master\Modules\Log\Get-AppCompatCache - Original.ps1 :
AppCompatCacheParser.exe not found on CSC-DURAM-VM2
At line:1 char:1
`<#
.SYNOPSIS
Get-AppCompatCache.ps1
When run via Kansa.ps1 with -Pushbin flag, this module will copy
AppCompatCacheParser.exe to the remote system, then run
AppCompatCacheParser.exe --csv $AppCompatCacheParserOutputPath on the remote system,
and return the output data as a powershell object.
I was having trouble getting this to run. After switching from -tsv to -csv it began working properly:
`<#
.SYNOPSIS
Get-AppCompatCache.ps1
When run via Kansa.ps1 with -Pushbin flag, this module will copy
AppCompatCacheParser.exe to the remote system, then run
AppCompatCacheParser.exe --csv $AppCompatCacheParserOutputPath on the remote system,
and return the output data as a powershell object.
AppCompatCacheParser.exe can be downloaded from http://ericzimmerman.github.io/
.NOTES
Kansa.ps1 directives
OUTPUT CSV
BINDEP .\Modules\bin\AppCompatCacheParser.exe
#>
#Setup Variables
$suppress = New-Item -Name "ACCP-$ ($Runtime)" -ItemType Directory -Path $env:Temp -Force
$AppCompatCacheParserOutputPath = $ ($env:Temp + "\ACCP-$ ($Runtime)")
$AppCompatCacheParserPath = ($env:SystemRoot + "\AppCompatCacheParser.exe")
$Runtime = ([String] (Get-Date -Format yyyyMMddHHmmss))
if (Test-Path ($AppCompatCacheParserPath)) {
#Run AppCompatCacheParser.exe
$suppress = & $AppCompatCacheParserPath --csv $AppCompatCacheParserOutputPath
#Output the data.
Import-Csv -Delimiter "`t" "$AppCompatCacheParserOutputPath*.csv"
} else {
Write-Error "AppCompatCacheParser.exe not found on $env:COMPUTERNAME"
}`
The text was updated successfully, but these errors were encountered: