Trying to Learn PowerShell

The first command I would like to try and remember is Get-Command

Get-Command Get-Service -Syntax

Syntax adds a how-to feature that allows you to see the different parameters that can be used with the command.

Compress-Archive compresses a file into a zip file.

Compress-Archive -Path c:\temp -DestinationPath c:\temp\myfile.zip

To expand the archive do the following:

Expand-Archive -Path c:\temp\myfile.zip -DestinationPath c:\temp\powershell

Example of Get-Help

Get-Help Get-Process -Full

Get-Content C:\Temp\misc.txt | Measure-Object -word | Select-Object words

Leave a comment

search previous next tag category expand menu location phone mail time cart zoom edit close