diff --git a/Sandbox Scripts/prepare.ps1 b/Sandbox Scripts/prepare.ps1 index 5961a5d..d6d2df9 100644 --- a/Sandbox Scripts/prepare.ps1 +++ b/Sandbox Scripts/prepare.ps1 @@ -11,7 +11,6 @@ $pwPattern = [regex] "[A-z 0-9 \-]{1,251}\((?[A-z0-9]{1,251})\)\.zip"; $files = Get-ChildItem; $passwords = [Regex]::Matches($files, $pwPattern); -$passwords.groups.Value | ForEach-Object {Write-Output $_ } -Get-ChildItem | Where-Object { $_.name -match $pwPattern} | ForEach-Object {Write-Output $_.group } +$passwords.groups | Where-Object {$_.Name -match "PW"} | ForEach-Object {Write-Output $_.Value } Write-Output Done; \ No newline at end of file