XYplorer

Author: Andrew Rathbun

description

XYplorer

paths

4 paths
paths use Windows environment syntax

collection commands

# PowerShell Artifact Collection Script
# Target: XYplorer
# Run as Administrator

#Requires -RunAsAdministrator

$ErrorActionPreference = "Continue"
$SourceRoot = "C:"
$DestBase   = "D:\Evidence"
$Summary = @{ Copied = 0; Missed = 0; Errors = 0 }

function Collect-Artifact {
    param(
        [Parameter(Mandatory)][string]$SourceDir,
        [Parameter(Mandatory)][string]$FolderName,
        [string]$FileMask = "*"
    )
    # Expand wildcards in any path segment (e.g. 'Program Files*',
    # 'ScreenConnect Client*'). robocopy itself does not glob the source.
    $sources = @(Get-Item -Path $SourceDir -ErrorAction SilentlyContinue |
        Where-Object { $_.PSIsContainer })
    if ($sources.Count -eq 0) {
        $Summary.Missed++
        return
    }
    $FullDest = Join-Path -Path $DestBase -ChildPath $FolderName
    $null = New-Item -ItemType Directory -Force -Path $FullDest -ErrorAction SilentlyContinue
    foreach ($src in $sources) {
        robocopy $src.FullName "$FullDest" "$FileMask" /E /COPY:DAT /R:0 /W:0 /NP /NFL /NDL /NJH /NJS 2>$null | Out-Null
        if ($LASTEXITCODE -le 7) { $Summary.Copied++ } else { $Summary.Errors++ }
    }
}

# Iterate every user profile under the source drive
Get-ChildItem "$SourceRoot\Users" -Directory -ErrorAction SilentlyContinue |
    Where-Object { $_.Name -notin @('All Users', 'Default', 'Default User', 'Public') } |
    ForEach-Object {
        $UserName = $_.Name
        # XYplorer - .ini file
        $UserPath = "$($_.FullName)\AppData\Roaming\XYplorer"
        Collect-Artifact -SourceDir $UserPath -FileMask "XYplorer.ini" -FolderName "XYplorer_ini_file_$UserName"
        # XYplorer - .ini file for each respective pane
        $UserPath = "$($_.FullName)\AppData\Roaming\XYplorer\Panes\*"
        Collect-Artifact -SourceDir $UserPath -FileMask "pane.ini" -FolderName "XYplorer_ini_file_for_each_respective_pane_$UserName"
        # XYplorer - AutoBackup folder
        $UserPath = "$($_.FullName)\AppData\Roaming\XYplorer\AutoBackup"
        Collect-Artifact -SourceDir $UserPath -FolderName "XYplorer_AutoBackup_folder_$UserName"
        # XYplorer - .dat files
        $UserPath = "$($_.FullName)\AppData\Roaming\XYplorer"
        Collect-Artifact -SourceDir $UserPath -FileMask "*.dat" -FolderName "XYplorer_dat_files_$UserName"
    }

Write-Host ("Collection complete. Copied: {0}  Missed: {1}  Errors: {2}" -f $Summary.Copied, $Summary.Missed, $Summary.Errors) -ForegroundColor Green

Save as .ps1 and run as Administrator. Use: powershell -ExecutionPolicy Bypass -File script.ps1

notes

XYplorer is a third-party Windows File Explorer replacement.

By default, XYplorer has a left and right pane. Each pane will have it's own respective .ini file which displays the last 5 folders browsed as well as current tabs opened at the time of the program's exit.

Within XYplorer.ini, [mruBrowse] will list the last 5 folders browsed. [mruGoto] will list the tabs that were opened at the time of the program's exit.

Within each pane's pane.ini file, there will be a section labeled [History] where one can see the last 5 folders browsed, be default. It appears one can change the Count=X value where X is the amount of folders browsed that are recorded here.

While using Everything by VoidTools, I observed the following files were modified upon the program's exit:

C:\Users\%user%\AppData\Roaming\XYplorer\lastini.dat

C:\Users\%user%\AppData\Roaming\XYplorer\action.dat

C:\Users\%user%\AppData\Roaming\XYplorer\tag.dat

C:\Users\%user%\AppData\Roaming\XYplorer\fvs.dat

C:\Users\%user%\AppData\Roaming\XYplorer\ks.dat

C:\Users\%user%\AppData\Roaming\XYplorer\udc.dat

C:\Users\%user%\AppData\Roaming\XYplorer\Catalogs\catalog.dat

C:\Users\%user%\AppData\Roaming\XYplorer\Panes\2\pane.ini

C:\Users\%user%\AppData\Roaming\XYplorer\Panes\1\pane.ini

C:\Users\%user%\AppData\Roaming\XYplorer\XYplorer.ini

This means there might be something useful in each one of these files. The *.dat will grab all of those .dat files and the other targets will cover the .ini files.

included in collections