Latest Posts

Powershell Basic commands with Description


Powershell cmdlets

Description

$Psversiontable Check Powershell version
Get-Help Displays help about Windows PowerShell cmdlets and concepts
Update-help Downloads the newest help files for Windows PowerShell modules and installs them on your computer
Get-Process List the Process running on PC
Get-Services List the list of services running on PC
Get-command Gets all commands that are installed on the computer, including cmdlets, aliases, functions, workflows, filters, scripts, and applications
New-Alias Make a new alias.
Get-alias Gets the aliases of Powershell cmdlets.
Import-alias Imports an alias list from a file
Export-alias Exports information about currently defined aliases to a file.
Set-alias The Set-Alias cmdlet creates or changes an alias (alternate name) for a cmdlet
Out-File Sends output to a File.
Get-eventlog Gets the events in an event log, or a list of the event logs, on the local or remote computers.
Get-NetFirewallRule Display a list of all Windows Firewall rules.
Set-ItemProperty Creates or changes the value of a property of an item. You also use Set-ItemProperty to create and change registry values and data.
New-Item Creates a new item and sets its value.New-Item is used to create files and folders. In the registry, New-Item creates registry keys and entries.
Get-Item Gets the item at the specified location.
Set-Item Changes the value of an item to the value specified in the command.The file system provider does not support this action.
Copy-Item The Copy-Item cmdlet copies an item from one location to another location in the same namespace. For example, it can copy a file to a folder, but it cannot copy a file to a certificate drive.
Clear-Item Deletes the contents of an item, but does not delete the item.
Rename-Item The Rename-Item cmdlet changes the name of a specified item. This cmdlet does not affect the content of the item being renamed.
Remove-Item The Remove-Item cmdlet deletes one or more items. Because it is supported by many providers, it can delete many different types of items, including files, directories, registry keys, variables, aliases, and functions.
Move-Item The Move-Item cmdlet moves an item, including its properties, contents, and child items, from one location to another location. The locations must be supported by the same provider. For example, it can move a file or subdirectory from one directory to another or move a registry subkey from one key to another. When you move an item, it is added to the new location and deleted from its original location.
Invoke-Item The Invoke-Item cmdlet performs the default action on the specified item. For example, it runs an executable file or opens a document file in the application associated with the document file type. The default action depends on the type of item and is determined by the Windows PowerShell provider that provides access to the data.
New-ItemProperty Creates a new property for an item and sets its value. For example, you can use New-ItemProperty to create and change registry values and data, which are properties of a registry key.
Get-ItemProperty The Get-ItemProperty cmdlet gets the properties of the specified items. For example, you can use Get-ItemProperty to get the value of the LastAccessTime property of a file object. You can also use Get-ItemProperty to view registry entries and their values.
Set-ItemProperty The Set-ItemProperty cmdlet changes the value of the property of the specified item. You can use the cmdlet to establish or change the properties of items. For example, you can use Set-ItemProperty to set the value of the IsReadOnly property of a file object to true.
You also use Set-ItemProperty to create and change registry values and data. For example, you can add a new registry entry to a key and establish or change its value.
Copy-ItemProperty The Copy-ItemProperty cmdlet copies a property and value from a specified location to another location. For example, you can use Copy-ItemProperty to copy one or more registry entries from one registry key to another registry key
Clear-ItemProperty The Clear-ItemProperty cmdlet deletes the value of a property, but it does not delete the property. You can use this cmdlet to delete the data from a registry value.
Rename-ItemProperty The Rename-ItemProperty cmdlet changes the name of a specified item property. The value of the property is not changed. For example, you can use Rename-ItemProperty to change the name of a registry entry.
Remove-ItemProperty The Remove-ItemProperty cmdlet deletes a property and its value from an item. You can use it to delete registry values and the data that they store.
Compare-object Compares two sets of objects.
Export-Csv The Export-Csv cmdlet makes it easy to export data as a comma-separated values (CSV) file.
Export-Clixml The Export-CliXml cmdlet creates an XML-based representation of an object or objects and stores it in a file.
ConvertTo-Html ConvertTo-Html cmdlet makes it very easy to view Windows PowerShell output in a Web page
Get-Content The Get-Content cmdlet gets the content of the item at the location specified by the path, such as the text in a file. It reads the content one line at a time and returns a collection of objects , each of which represents a line of content.
Sort-Object Sorts objects by property values.The Sort-Object cmdlet sorts objects in ascending or descending order based on the values of properties of the object.
Select-Object The Select-Object cmdlet selects specified properties of an object or set of objects. It can also select unique objects, a specified number of objects, or objects in a specified position in an array.
Get-Location Gets information about the current working location or a location stack
Get-History Gets a list of the commands entered during the current session
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s