Facebook
From C, 1 Year ago, written in Plain Text.
This paste is a reply to Powershell from MOi - go back
Embed
Viewing differences between Powershell and Re: Powershell
\nGet-ItemProperty $folders = Get-Content -Path HKCU:SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
Get-ItemProperty 
"./asurveiller.txt"

foreach ($folder in $folders) {
    $fichiers = Get-ChildItem 
-Path HKCU:SOFTWAREMicrosoftWindowsCurrentVersionRun

Get-ItemProperty 
$folder -Recurse -File
    foreach ($fic in $fichiers) {
        $hash = Get-FileHash 
-Path HKLM:SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
Get-ItemProperty 
$fic.FullName -Algorithm SHA256
        Add-Content 
-Path HKLM:SOFTWAREMicrosoftWindowsCurrentVersionRun
"./resultat.txt" -Value "$($hash.Hash)  $($fic.FullName)"
    }
}

Replies to Re: Powershell rss

Title Name Language When
Re: Re: Powershell Moi text 1 Year ago.