Pages

Monday, 24 August 2026

Test2

table {

    border: 1px solid #1C6EA4;

    background-color: #eeeeee;

    width: 100%;

    text-align: center; /* Center align all text */

    border-collapse: collapse;

}

table td, table th {

    border: 1px solid #AAAAAA;

    padding: 3px 2px;

    text-align: center; /* Ensure cells and headers are centered */

}

table tbody td {

    font-size: 13px;

}

table thead {

    background: #0297e1;

    border-bottom: 2px solid #444444;

}

table thead th {

    font-size: 15px;

    font-weight: bold;

    color: #FFFFFF;

    border-left: 2px solid #D0E4F5;

}

table thead th:first-child {

    border-left: none;

}

Wednesday, 13 May 2026

Test

   $AppList = Get-InstalledApplication -Name 'Air Explorer'        

        ForEach ($App in $AppList)

        {

        If($App.UninstallString)

        {

        $UninstPath = $($App.UninstallString).Replace('"','')     

        If(Test-Path -Path $UninstPath)

        {

        Write-Log -Message "Found $($App.DisplayName) $($App.DisplayVersion) and a valid uninstall string, now attempting to uninstall."

        Execute-Process -Path $UninstPath -Parameters '/S'

        Start-Sleep -Seconds 5

        }

        }

        }

Monday, 9 February 2026

detection script

# ===============================
# Detection Script - Visio Usage
# ===============================

$daysThreshold = 90
$prefetchPath = Join-Path $env:SystemRoot 'Prefetch'

# Common Visio C2R paths
$visioExePaths = @(
    "$env:ProgramFiles\Microsoft Office\root\Office16\VISIO.EXE",
    "$env:ProgramFiles(x86)\Microsoft Office\root\Office16\VISIO.EXE"
)

# ---- Check if Visio is installed ----
$visioInstalled = $false
foreach ($path in $visioExePaths) {
    if (Test-Path -LiteralPath $path) {
        $visioInstalled = $true
        break
    }
}

if (-not $visioInstalled) {
    Write-Output "Compliant: Visio is not installed."
    exit 0
}

# ---- Check Prefetch usage ----
try {
    $prefetchFiles = Get-ChildItem -Path $prefetchPath -Filter "VISIO.EXE-*.pf" -ErrorAction Stop
} catch {
    $prefetchFiles = $null
}

if (-not $prefetchFiles) {
    Write-Output "Compliant: Visio installed but Prefetch file not found. Usage cannot be determined."
    exit 0
}

# ---- Determine last usage ----
$lastRunTime = ($prefetchFiles | Sort-Object LastWriteTime -Descending | Select-Object -First 1).LastWriteTime
$daysSinceLastRun = [int](New-TimeSpan -Start $lastRunTime -End (Get-Date)).TotalDays

if ($daysSinceLastRun -le $daysThreshold) {
    Write-Output "Compliant: Visio used $daysSinceLastRun day(s) ago."
    exit 0
} else {
    Write-Output "Non-Compliant: Visio last used $daysSinceLastRun day(s) ago (Threshold: $daysThreshold)."
    exit 1
}

Test2

table {     border: 1px solid #1C6EA4;     background-color: #eeeeee;     width: 100%;     text-align: center; /* Center align all text */  ...

Search This Blog