Professional Documents
Culture Documents
10 Commands of Power Shell
10 Commands of Power Shell
Get-Module:
This command displays a list of modules that are available on your
system. PowerShell modules contain reusable cmdlets, functions, and
scripts.
New-Object:
Create a new instance of a .NET Framework or COM object, which can
be useful for various tasks, such as interacting with external libraries.
Measure-Object:
Use this cmdlet to calculate statistics on a set of objects, such as counting,
averaging, summing, or finding the minimum and maximum values.
Test-Path:
Determine whether a file or directory exists at a specified location. This
command is helpful for conditional logic in scripts.
Get-EventLog:
Retrieve entries from the Windows event logs, which can be helpful for
monitoring and troubleshooting system events.
Add-Content:
Append content to an existing file, which can be useful for logging or
updating configuration files.
Export-Csv:
Convert objects into CSV (Comma-Separated Values) format, making it
easy to export data for reporting or analysis.