dfirhub

GoogleDrive_Metadata

Appsv1.1

Author: Chad Tilbury

description

Google Drive Metadata

paths

2 paths
AppsGoogle Drive Backup and Sync Metadata
C:\Users\%user%\AppData\Local\Google\Drive\

Older version of Google Drive

AppsGoogle Drive for Desktop Metadata
C:\Users\%user%\AppData\Local\Google\DriveFS\

Metadata folder the same for both newer Google Drive for Desktop and older Google File Stream application

paths use Windows environment syntax

collection commands

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

#Requires -RunAsAdministrator

$ErrorActionPreference = "SilentlyContinue"
$DestBase = "D:\Evidence"

# Function to handle directory creation and copying
function Collect-Artifact {
    param (
        [string]$SourcePath,
        [string]$FolderName
    )
    $FullDest = Join-Path -Path $DestBase -ChildPath $FolderName
    if (-not (Test-Path -Path $FullDest)) {
        New-Item -ItemType Directory -Path $FullDest -Force | Out-Null
    }
    Copy-Item -Path $SourcePath -Destination $FullDest -Recurse -Force
}

# 1. Google Drive Backup and Sync Metadata
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Google\Drive\"
Collect-Artifact -SourcePath "$UserPath\*" -FolderName "Google_Drive_Backup_and_Sync_Metadata"

# 2. Google Drive for Desktop Metadata
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Google\DriveFS\"
Collect-Artifact -SourcePath "$UserPath\*" -FolderName "Google_Drive_for_Desktop_Metadata"

Write-Host "Collection complete!" -ForegroundColor Green

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

references

included in collections