PowerShell equivalent to grep -f
I’m looking for the PowerShell equivalent to grep –file=filename. If you don’t know grep, filename is a text file where each line has … Read more
I’m looking for the PowerShell equivalent to grep –file=filename. If you don’t know grep, filename is a text file where each line has … Read more
There are a number of different ways to output messages. What is the effective difference between outputting something via Write-Host, Write-Output, or [console]::WriteLine? … Read more
I would like to calculate an MD5 checksum of some content. How do I do this in PowerShell? 19 Answers 19
What would a PowerShell script be to return versions of the .NET Framework on a machine? My first guess is something involving WMI. … Read more
I’ve found some interesting behaviour in PowerShell Arrays, namely, if I declare an array as: $array = @() And then try to add … Read more
If I have an instance of PowerShell ISE running and I install something that modifies the PATH or I modify it in any … Read more
I would like to delete only the files that were created more than 15 days ago in a particular folder. How could I … Read more
I have developed a PowerShell function that performs a number of actions involving provisioning SharePoint Team sites. Ultimately, I want the function to … Read more
I can express my need with the following scenario: Write a function that accepts a string to be run as a native command. … Read more
I’d like to run an external process and capture it’s command output to a variable in PowerShell. I’m currently using this: $params = … Read more