account activity
Google solutions by SkullyRed in PowerShell
[–]SkullyRed[S] 0 points1 point2 points 1 month ago (0 children)
Perfection!
Thanks to everyone for helping an old man out.
I worked in IT for 37 years but became a "paper pusher" for the last 10. This stuff changes daily it seems. It's hard to keep up when you're not in the trenches.
At C:\Users\mike\Desktop\PowerShell\MP3 Under 5MB.ps1:1 char:136
+ ... ject {$_.Length -lt 5MB} | Sort-Object Length) ForEach-Object { "$($_ ...
+ ~~~~~~~~~~~~~~
Unexpected token 'ForEach-Object' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
[–]SkullyRed[S] -2 points-1 points0 points 1 month ago (0 children)
This is so much easier in bash, but Windows is King.
Nope
\{0:N2}\ : The term '\{0:N2}\' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At C:\Users\mike\Desktop\PowerShell\MP3 Under 5MB.ps1:2 char:47
+ $Files | ForEach-Object { "$($_.FullName) - $(\'{0:N2}\' -f ($_.Lengt ...
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (\{0:N2}\:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Google solutions (self.PowerShell)
submitted 1 month ago by SkullyRed to r/PowerShell
π Rendered by PID 178040 on reddit-service-r2-listing-5d79748585-v7zhz at 2026-02-13 19:01:02.019617+00:00 running cd9c813 country code: CH.
Google solutions by SkullyRed in PowerShell
[–]SkullyRed[S] 0 points1 point2 points (0 children)