PowerShell: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
Line 3: Line 3:
P> Test-NetConnection -ComputerName island.doodle.com -Port 443
P> Test-NetConnection -ComputerName island.doodle.com -Port 443
</syntaxhighlight>
</syntaxhighlight>


== Search files ==
== Search files ==
Line 9: Line 10:
PS C:\Users\MHan> Get-ChildItem -Recurse -Include *.* | Select-String "text to search for"
PS C:\Users\MHan> Get-ChildItem -Recurse -Include *.* | Select-String "text to search for"
</syntaxhighlight>
</syntaxhighlight>


== Check version ==
== Check version ==
Line 26: Line 28:


</syntaxhighlight>
</syntaxhighlight>
== Remove a folder and everything underneath ==
<syntaxhighlight lang="powershell">
P> Remove-Item -Path "C:\Users\micha\testing" -Recurse -Force
</syntaxhighlight>


== Comparison with Linux commands ==
== Comparison with Linux commands ==
{| class="wikitable"
{| class="wikitable"
|+
|+

Navigation menu