PowerShell Language Reference

[ PowerShell  VBScript  HTA  AutoIt  KiXtart  Batch  Windows Command Lines  Other Command Line Utilities  ]


    cmdlets

  • Add-Content - Appends content to a specified item or file. 
  • Add-History - Appends entries to the session history. 
  • Add-Member - Adds a user-defined custom member to an instance of a Windows Pow... 
  • Add-PSSnapin - Adds one or more Windows PowerShell snap-ins to the current conso... 
  • Clear-Content - Deletes the contents of a item, such as deleting the text from a ... 
  • Clear-ItemProperty - Deletes the value of a property but it does not delete the proper... 
  • Clear-Variable - Deletes the value of a variable. 
  • Compare-Object - Compares two sets of objects. 
  • Convert-Path - Converts a path from a Windows PowerShell path to a Windows Power... 
  • ConvertTo-Html - Creates an HTML page that represents an object or a set of object... 
  • ConvertTo-SecureString - Converts encrypted standard strings to secure strings. It can als... 
  • Copy-Item - Copies an item from one location to another within a namespace. 
  • Copy-ItemProperty - Copies a property and value from a specified location to another ... 
  • Export-Alias - Exports information about currently-defined aliases to a file. 
  • Export-Clixml - Creates an XML-based representation of an object or objects and s... 
  • Export-Console - Exports the configuration of the current console to a file so tha... 
  • Export-Csv - Creates a comma-separated values (CSV) file that represents the i... 
  • ForEach-Object - Performs an operation against each of a set of input objects. 
  • Format-Custom - Uses a customized view to format the output. 
  • Format-List - Formats the output as a list of properties in which each property... 
  • Format-Table - Formats the output as a table. 
  • Format-Wide - Formats objects as a wide table that displays only one property o... 
  • Get-Acl - Gets the security descriptor for a resource, such as a file or re... 
  • Get-Alias - Gets the aliases for the current session. 
  • Get-AuthenticodeSignature - Gets information about the Authenticode signature in a file. 
  • Get-ChildItem - Gets the items and child items in one or more specified locations... 
  • Get-Command - Gets basic information about cmdlets and about other elements of ... 
  • Get-Content - Gets the content of the item at the specified location. 
  • Get-Credential - Gets a credential object based on a user name and password. 
  • Get-Culture - Gets information about the regional settings on a computer. 
  • Get-Date - Gets the current date and time. 
  • Get-EventLog - Gets information about local event logs or the entries stored in ... 
  • Get-ExecutionPolicy - Gets the current execution policy for the shell. 
  • Get-Help - Displays information about Windows PowerShell cmdlets and concept... 
  • Get-History - Gets a list of the commands entered during the current session. 
  • Get-Host - Gets a reference to the current console host object. Displays Win... 
  • Get-Item - Gets the item at the specified location. 
  • Get-ItemProperty - Retrieves the properties of a specified item. 
  • Get-Location - Gets information about the current working location. 
  • Get-Member - Gets information about objects or collections of objects. 
  • Get-PfxCertificate - Gets information about .pfx certificate files on the computer. 
  • Get-Process - Gets the processes that are running on the local computer. 
  • Get-PSDrive - Gets information about Windows PowerShell drives. 
  • Get-PSProvider - Gets information about the specified Windows PowerShell provider. 
  • Get-PSSnapin - Gets the Windows PowerShell snap-ins on the computer. 
  • Get-Service - Gets the services on the local computer. 
  • Get-TraceSource - Gets the Windows PowerShell components that are instrumented for ... 
  • Get-UICulture - gets information about the current user interface culture for Win... 
  • Get-Unique - Returns the unique items from a sorted list. 
  • Get-Variable - Gets the variables in the current console. 
  • Get-WmiObject - Gets instances of WMI classes or information about available clas... 
  • Group-Object - Groups objects that contain the same value for specified properti... 
  • Import-Alias - Imports an alias list from a file. 
  • Import-Clixml - Imports a CLIXML file and creates corresponding objects within Wi... 
  • Import-Csv - Imports comma-separated value (CSV) files in the format produced ... 
  • Invoke-Expression - Runs a Windows PowerShell expression that is provided in the form... 
  • Invoke-History - Runs commands from the session history. 
  • Invoke-Item - Invokes the provider-specific default action on the specified ite... 
  • Join-Path - Combines a path and child-path into a single path. The provider s... 
  • Measure-Command - Measures the time it takes to run script blocks and cmdlets. 
  • Measure-Object - Measures characteristics of objects and their properties. 
  • Move-Item - Moves an item from one location to another. 
  • Move-ItemProperty - Moves a property from one location to another. 
  • New-Alias - Creates a new alias. 
  • New-Item - Creates a new item in a namespace. 
  • New-ItemProperty - Sets a new property of an item at a location. 
  • New-Object - Creates an instance of a .Net or COM object. 
  • New-PSDrive - Installs a new WIndows PowerShell drive. 
  • New-Service - Creates a new entry for a Windows Service in the registry and the... 
  • New-TimeSpan - Creates a TimeSpan object. 
  • New-Variable - Creates a new variable. 
  • Out-Default - Send the output to the default formatter and the default output c... 
  • Out-File - Sends output to a file. 
  • Out-Host - Sends output to the command line. 
  • Out-Null - Deletes output instead of sending it to the console. 
  • Out-Printer - Sends output to a printer. 
  • Out-String - Sends objects to the host as a series of strings. 
  • Pop-Location - Changes the current location to the location most recently pushed... 
  • Push-Location - Pushes the current location onto the stack. 
  • Read-Host - Reads a line of input from the console. 
  • Remove-Item - Deletes the specified items. 
  • Remove-ItemProperty - Deletes the property and its value from an item. 
  • Remove-PSDrive - Removes a Windows PowerShell drive from its location. 
  • Remove-PSSnapin - Removes Windows PowerShell snap-ins from the current console. 
  • Remove-Variable - Deletes a variable and its value. 
  • Rename-Item - Renames an item in a Windows PowerShell provider namespace. 
  • Rename-ItemProperty - Renames a property of an item. 
  • Resolve-Path - Resolves the wildcard characters in a path and displays the path ... 
  • Restart-Service - Stops and then starts one or more services. 
  • Resume-Service - Resumes one or more suspended (paused) services. 
  • Select-Object - Selects specified properties of an object or set of objects. It c... 
  • Select-String - Identifies patterns in strings. 
  • Set-Acl - Changes the security descriptor of a specified resource, such as ... 
  • Set-Alias - Creates or changes an alias (alternate name) for a cmdlet or othe... 
  • Set-AuthenticodeSignature - Uses an authenticode signature to sign a Windows PowerShell scrip... 
  • Set-Content - Writes or replaces the content in an item with new content. 
  • Set-Date - Changes the system time on the computer to a time that you specif... 
  • Set-ExecutionPolicy - Changes the user preference for the execution policy of the shell... 
  • Set-Item - Changes the value of an item to the value specified in the comman... 
  • Set-ItemProperty - Sets the value of a property at the specified location. 
  • Set-Location - Sets the current working location to a specified location. 
  • Set-PSDebug - Turns script debugging features on and off, sets the trace level ... 
  • Set-Service - Changes the display name, description, or starting mode of a serv... 
  • Set-TraceSource - Configures, starts, and stops a trace of Windows PowerShell compo... 
  • Set-Variable - Sets the value of a variable. Creates the variable if one with th... 
  • Sort-Object - Sorts objects by property values. 
  • Split-Path - Returns the specified part of a path. 
  • Start-Service - Starts one or more stopped services. 
  • Start-Sleep - Suspend shell, script, or runspace activity for the specified per... 
  • Start-Transcript - Creates a record of all or part of a Windows PowerShell session i... 
  • Stop-Process - Stops one or more running processes. 
  • Stop-Service - Stops one or more running services. 
  • Stop-Transcript - Stops a transcript. 
  • Suspend-Service - Suspends (pauses) one or more running services. 
  • Tee-Object - Pipes object input to a file or variable, then passes the input a... 
  • Test-Path - Determines whether all elements of a path exist. 
  • Update-FormatData - Updates and appends format data files. 
  • Update-TypeData - Updates the current extended type configuration by reloading the ... 
  • Where-Object - Creates a filter that controls which objects will be passed along... 
  • Write-Debug - Writes a debug message to the host display. 
  • Write-Error - Writes an object to the error pipeline 
  • Write-Host - Displays objects by using the host user interface 
  • Write-Output - Writes objects to the success pipeline. 
  • Write-Progress - Displays a progress bar within a Windows PowerShell command windo... 
  • Write-Verbose - Writes a string to the verbose display of the host. 
  • Write-Warning - Writes a warning message. 
  • Statements

  • Else - Executes a group of statements if a condition is not true 
  • ElseIf - Specifies additional conditional actions in an "if" statement 
  • If - Executes a group of statements based on a condition 
  • Variables

  • $$ - Contains the last token of last line input into the shell. 
  • $? - Contains that success/fail status of the last operation. 
  • $^ - Contains the first token of the last line input into the shell. 
  • $Args - Used in creating functions that require parameters 
  • $DebugPreference - The action to take when data is written via write-debug in a scri... 
  • $Error - The error object is saved here if an error occurs 
  • $ErrorActionPreference - The action to take when data is written via write-error in a scri... 
  • $false - Boolean FALSE  
  • $foreach - Refers to the enumerator in a foreach loop.  
  • $HistorySize - Number of entries saved in the command history. 
  • $HOME - The user's home directory 
  • $Host - Information about the currently executing host 
  • $Input - Input piped to a function or code block 
  • $LastExitCode - The exit code of the last native application to run 
  • $Match - A hash table consisting of items found by the –match operator. 
  • $MshHome - The directory where msh is installed 
  • $MyInvocation - Information about the currently script or command-line 
  • $null - A null object 
  • $OFS - Output Field Separator, used when converting an array to a string... 
  • $PSCommandPath - The paths where .cmdlet and .cmdletprovider files may be found. 
  • $ShellID - The identifier for the shell.  
  • $StackTrace - Contains detailed stack trace information about the last error 
  • $true - Boolean TRUE 

 

iTripoli prides itself on providing top notch customer service

Find answers or open a ticket to ask directly, when opening a ticket we will suggest relavant articles to help you get answers as quickly and accurately as possible. Visit our support center now!

Please visit our full support center to find answers quickly or submit questions or feedback.