PowerShell: Difference between revisions
iwu |
Search files |
||
Line 1: | Line 1: | ||
== Search files == | |||
<source lang="powershell"> | |||
PS C:\Users\MHan> Get-ChildItem -Recurse -Include *.* | Select-String "text to search for" | |||
</source> | |||
== Check version == | == Check version == | ||
Revision as of 14:53, 15 February 2021
Search files
PS C:\Users\MHan> Get-ChildItem -Recurse -Include *.* | Select-String "text to search for"
Check version
PS C:\Users\MHan> $PSversionTable
Name Value
---- -----
PSVersion 5.0.10586.1417
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.10586.1417
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1