Skip to content

GetDecryptionInfoFromLogFile.ps1 only searches current IME log #22

Description

@SMSAgentSoftware

The script only searches the current (latest) IME log - sometimes the download info may have aged out of the current log into a rolled over log.

The code updates below will search all IME logs:

function ExtractIntuneAppDetailsFromLogFile()
{
    $IMELogs = Get-ChildItem -Path $env:ProgramData\Microsoft\IntuneManagementExtension\Logs -Filter IntuneManagementExtension*.log -Recurse -ErrorAction SilentlyContinue
    foreach ($IMELog in $IMELogs)
    {
        $agentLogPath = $IMELog.FullName
        $stringToSearch = "<![LOG[Response from Intune = {".ToLower()

        Get-Content $agentLogPath | ForEach-Object {
        ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions