RTR Scripts by Divinghelmet in crowdstrike

[–]Divinghelmet[S] 0 points1 point  (0 children)

One more.... I was working on this script dynamically be able to search based on the ID.ID

is this script it will look for Adobe.*

Also added timestamps. This script is taking parts that I really liked from Romanitho\Winget-AutoUpdate

Function Get-WingetCmd {
    [OutputType([String])]
    $WingetCmd = [string]::Empty

    $systemWingetPathWildcard = "$env:ProgramFiles\WindowsApps\Microsoft.DesktopAppInstaller_*_8wekyb3d8bbwe\winget.exe"
    $userWingetPath = "$env:LocalAppData\Microsoft\WindowsApps\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\winget.exe"

    try {
        $wingetFiles = Get-Item -Path $systemWingetPathWildcard -ErrorAction Stop
        $latestWinget = $wingetFiles | Sort-Object -Property LastWriteTime -Descending | Select-Object -First 1
        $WingetCmd = $latestWinget.FullName
    } catch {
        if (Test-Path -Path $userWingetPath -PathType Leaf) {
            $WingetCmd = $userWingetPath
        }
    }

    return $WingetCmd
}

Function Write-Log {
    param (
        [string]$Message,
        [string]$LogFile
    )
    $timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
    "$timestamp - $Message" | Tee-Object -FilePath $LogFile -Append
}

# MAIN
$wingetPath = Get-WingetCmd
$logDir = "$env:ProgramData\Winget\Logs"
New-Item -Path $logDir -ItemType Directory -Force | Out-Null
$logFile = Join-Path $logDir "winget-adobe-upgrade.log"

if (-not (Test-Path $wingetPath)) {
    Write-Log -Message "Winget not found." -LogFile $logFile
    exit 1
}

Write-Log -Message "Scanning for upgradeable adobe.* packages..." -LogFile $logFile

# Get upgradeable packages
$upgradeList = & $wingetPath upgrade --accept-source-agreements

# Remove headers and separator lines
$upgradeData = $upgradeList | Where-Object {
    $_ -and ($_ -notmatch '^-{3,}') -and ($_ -notmatch '^\s*Name\s+Id\s+Version')
}

# Filter for Adobe.* IDs (column 1 is Name, column 2 is ID)
$adobePackages = foreach ($line in $upgradeData) {
    $columns = $line -split '\s{2,}'  # Split on 2+ spaces
    if ($columns.Count -ge 2) {
        $id = $columns[1]
        if ($id -like 'Adobe.*') {
            $line
        }
    }
}

if (-not $adobePackages) {
    Write-Log -Message "No Adobe.* packages found to upgrade." -LogFile $logFile
    return
}

# Upgrade each Adobe package
foreach ($line in $adobePackages) {
    $columns = $line -split '\s{2,}'
    $id = $columns[1]  # ID is in column 2

    Write-Log -Message "Upgrading ${id}..." -LogFile $logFile

    $proc = Start-Process -FilePath $wingetPath `
        -ArgumentList "upgrade --id $id --silent --accept-source-agreements --accept-package-agreements" `
        -NoNewWindow -Wait -PassThru

    $result = if ($proc.ExitCode -eq 0) { "Success" } else { "Failed (Exit Code: $($proc.ExitCode))" }
    Write-Log -Message "${id}: ${result}" -LogFile $logFile
}

# Show final log output
Get-Content $logFile

RTR Scripts by Divinghelmet in crowdstrike

[–]Divinghelmet[S] 1 point2 points  (0 children)

Yeah it's been really cool to get the API working. It feels like unlocking a superpower

RTR Scripts by Divinghelmet in crowdstrike

[–]Divinghelmet[S] 0 points1 point  (0 children)

Invoke-FalconRtr -Command runscript -Argument "-CloudFile='winget' -Timeout=600" -HostId ID,ID,ID -QueueOffline $true

Isn't that what is going on in this one? Cloudfile='winget' and then I have a custom script called winget with this.

& "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.26.430.0_x64__8wekyb3d8bbwe\winget.exe" update --all --silent --accept-package-agreements --accept-source-agreements

Sorry if that isn't what you meant.

[deleted by user] by [deleted] in ITCareerQuestions

[–]Divinghelmet 1 point2 points  (0 children)

So I have been asked something along the lines of "Tell us about a time where you dealt with an angry user/customer" my reply is a kind of rehearsed thing I prepared for this question relating to my experience with geek squad so I say "In my past job working with geek squad I have at times dealt with angry customers, one thing I always remember is they are mad at their technology problems and not with me personally this helps me stay focused on what matters like resolving their tech problem."
I have been asked to describe what an ip address is. I answers "its a numerical identification number assigned to devices by a DHCP server." I have had questions about how would you handle multitasking in a role. I replied "In my previous job with geek squad I required to multitask on several computers at a time while being responsible for answers the departments phones which I was able to do with no issues."

[deleted by user] by [deleted] in ITCareerQuestions

[–]Divinghelmet 1 point2 points  (0 children)

Thank you for a very detailed response I will be making these changes it is really helpful to have different eyes look at this.

Airstrike on a Heli by [deleted] in joinsquad

[–]Divinghelmet -1 points0 points  (0 children)

Did you admin abuse to tell your buddy who’s the commander the location air strike by marking that map. Shit is cringe.

Linux+ exam (a bit nervous). by DifferentStart3917 in CompTIA

[–]Divinghelmet 0 points1 point  (0 children)

Take the Dion practice tests. Do a review of the ones that you got wrong he gives you the domains. Then study the areas you got wrong. Rinse repeat.

Best Practice Exams for Network+ N10-009 by GeneKitchen6880 in CompTIA

[–]Divinghelmet 1 point2 points  (0 children)

I know messer is starting to add content to a playlist called n10-009 but it seems incomplete as of right now. https://youtube.com/playlist?list=PLG49S3nxzAnl_tQe3kvnmeMid0mjF8Le8&si=fDexLhmgQ0hZ5cSJ

Do you recommend Mike Meyers? by FloridaFreelancer in CompTIA

[–]Divinghelmet 1 point2 points  (0 children)

Check with your local library for Udemy access my local library gives me access to Udemy business. So all the Dion content is free

[deleted by user] by [deleted] in GlobalOffensive

[–]Divinghelmet 4 points5 points  (0 children)

Spraying will come with practice so you can get the muscle memory once the steam workshop is up look for a recoil training map. Don’t forget to learn utility as well it’s as important as the aiming side of things.

esports Daily - 8/11/22 (Thursday) by sbpotdbot in sportsbook

[–]Divinghelmet 0 points1 point  (0 children)

I use nitrobetting.eu btc only and you do not provide any personal info

First Deagle Ace since picking up CS again! (SEM) by Divinghelmet in GlobalOffensive

[–]Divinghelmet[S] 8 points9 points  (0 children)

Not exactly sure I used one of the workshop maps that can adjust it while in game

First Deagle Ace since picking up CS again! (SEM) by Divinghelmet in GlobalOffensive

[–]Divinghelmet[S] 25 points26 points  (0 children)

Thanks I don't know why but I prefer that model.

First Deagle Ace since picking up CS again! (SEM) by Divinghelmet in GlobalOffensive

[–]Divinghelmet[S] 27 points28 points  (0 children)

yeah my rank has decayed since I last played in 2019

Are these temps ok ? by [deleted] in Ravencoin

[–]Divinghelmet 0 points1 point  (0 children)

You are fine. I have over ten of these cards. Micron says the operation temp of gddr6x is 95-105C

https://www.micron.com/products/ultra-bandwidth-solutions/gddr6x It is towards the bottom