block by roachhd a3a0d5c1dd119292f0f6

PowerShell Commands - links go nowhere :smile:


PowerShell commands | PowerShell |


[Get-Acl][1] Get permission settings for a file or registry key [Set-Acl][2] Set permissions [Active Directory][3] Account, Computer, Group and User cmdlets [Get-Alias][4] gal Return alias names for Cmdlets [Import-Alias][5] ipal Import an alias list from a file [New-Alias][6] nal Create a new alias. [Set-Alias][7] sal Create or change an alias [Get-AuthenticodeSignature][8] Get the signature object associated with a file [Set-AuthenticodeSignature][9] Place a signature in a .ps1 script or other file b [Begin][10] Function BEGIN block [BITS][11] Background Intelligent Transfer Service cmdlets c [Set-Location][12] cd/chdir/sl Set the current working location [Get-ChildItem][13] dir/ls/gci Get child items (contents of a folder or registry key) [Clear-Host][14] clear/cls Clear the screen [Clear-Item][15] cli Remove content from a variable or an alias [Get-Command][16] gcm Retrieve basic information about a command [Measure-Command][17] Measure running time [Trace-Command][18] Trace an expression or command [Add-Computer][19] Add a computer to the domain [Checkpoint-Computer][20] Create a system restore point (XP) [Remove-Computer][21] Remove the local computer from a workgroup or domain [Restart-Computer][22] Restart the operating system on a computer [Restore-Computer][23] Restore the computer to a previous state [Stop-Computer][24] Stop (shut down) a computer [Reset-ComputerMachinePassword][25] Reset the machine account password for the computer [Test-ComputerSecureChannel][26] Test and repair the secure channel to the domain [Add-Content][27] ac Add to the content of the item [Get-Content][28] cat/type/gc Get content from item (specific location) [Set-Content][29] sc Set content in the item (specific location) [Clear-Content][30] clc Remove content from a file/item [Get-Command][16] gcm Get basic information about cmdlets [Invoke-Command][31] icm Run command [Enable-ComputerRestore][32] Enable System Restore on a drive [Disable-ComputerRestore][33] Disable System Restore on a drive [Get-ComputerRestorePoint][34] Get the restore points on the local computer [Test-Connection][35] Ping one or more computers [ConvertFrom-CSV][36] Convert object properties (in CSV format) into CSV objects [ConvertTo-CSV][37] Convert .NET Framework objects into CSV variable-length strings [ConvertTo-Html][38] Convert the input into an HTML table [ConvertTo-Xml][39] Convert the input into XML [ConvertFrom-SecureString][40] Convert a secure string into an encrypted standard string [ConvertTo-SecureString][41] Convert an encrypted standard string into a secure string [Copy-Item][42] copy/cp/ci Copy an item from a namespace location [Export-Counter][43] Export Performance Counter data to log files [Get-Counter][44] Get performance counter data [Import-Counter][45] Import performance counter log files [Get-Credential][46] Get a security credential (username/password) [Get-Culture][47] Get region information (language and keyboard layout) d [Get-ChildItem][13] Dir/ls/gci Get child items (contents of a folder or registry key) [Get-Date][48] Get current date and time [Set-Date][49] Set system time on the host system [Remove-Item][50] Del/erase/rd/rm/rmdir Delete an item [Compare-Object][51] diff/compare Compare the properties of objects [Do][52] Loop while a condition is True e [End][10] Function END block [Get-Event][53] Get events in the PowerShell event queue [New-Event][54] Create a new event [Remove-Event][55] Delete events from the event queue [Unregister-Event][56] Cancel an event subscription [Wait-Event][57] Wait until a particular event is raised [Clear-EventLog][58] Delete all entries from an event log [Get-Eventlog][59] Get event log data (2003) [Limit-EventLog][60] Limit the size of the event log [New-Eventlog][61] Create a new event log and a new event source [Remove-EventLog][62] Delete an event log [Show-EventLog][63] Display an event log [Write-EventLog][64] Write an event to an event log [Get-WinEvent][65] Get event log data (Vista+) [Get-EventSubscriber][66] Get event subscribers [Register-EngineEvent][67] Subscribe to PowerShell events [Register-ObjectEvent][68] Subscribe to .NET events [Register-WmiEvent][69] Subscribe to a WMI event [Get-ExecutionPolicy][70] Get the execution policy for the shell [Set-ExecutionPolicy][71] Change the execution policy (user preference) [Export-Alias][72] epal Export an alias list to a file [Export-Clixml][73] Produce a clixml representation of PowerShell objects [Export-Console][74] Export console configuration to a file [Export-Csv][75] epcsv Export to Comma Separated Values (spreadsheet) [Exit-PSSession][76] Exit Exit PowerShell (or exit a script) f [ForEach-Object][77] foreach Loop through each item in the pipeline ( % ) [ForEach][78] Loop through each item in a collection [For][79] Loop through items that match a condition [Format-Custom][80] fc Format output using a customized view [Format-List][81] fl Format output as a list of properties, each on a new line [Format-Table][82] ft Format output as a table [Format-Wide][83] fw Format output as a table listing one property only [Export-FormatData][84] Save formatting data from the current session [Get-FormatData][85] Get the formatting data in the current session g [Get-Item][86] gi Get a file/registry object (or any other namespace object) [Get-ChildItem][13] dir/ls/gci Get child items (contents of a folder or registry key) h [Get-Help][87] help Open the help file [Add-History][88] Add entries to the session history [Clear-History][89] clhy Delete entries from the session history [Get-History][90] history/h/ghy Get a listing of the session history [Invoke-History][91] r/ihy Invoke a previously executed Cmdlet [Get-Host][92] Get host information (PowerShell Version and Region) [Clear-Host][14] clear/cls Clear the screen [Read-Host][93] Read a line of input from the host console [Write-Host][94] Write customized output to the host/screen [Get-HotFix][95] Get Installed hotfixes i [if][96] Conditionally perform a command [Import-Clixml][97] Import a clixml file and rebuild the PS object [Import-Csv][98] ipcsv Take values from a CSV list and send objects down the pipeline [Invoke-Command][31] Run commands on local and remote computers [Invoke-Expression][99] iex Run a PowerShell expression [Get-Item][86] gi Get a file object or get a registry (or other namespace) object [Invoke-Item][100] ii Invoke an executable or open a file (START) [New-Item][101] md/mkdir/ni Create a new item in a namespace [Remove-Item][50] rm/del/erase/rd/ri/rmdir Remove an item [Set-Item][102] si Change the value of an item [Clear-ItemProperty][103] clp Remove the property value from a property [Copy-ItemProperty][104] cpp Copy a property along with it’s value [Get-ItemProperty][105] gp Retrieve the properties of an object [Move-ItemProperty][106] mp Move a property from one location to another [New-ItemProperty][107] Set a new property [Remove-ItemProperty][108] rp Remove a property and its value [Rename-ItemProperty][109] rnp Renames a property at its location [Set-ItemProperty][110] sp Set a property at the specified location to a specified value j [Get-Job][111] gjb Get PowerShell background jobs that are running [Receive-Job][112] rcjb Get PowerShell background job results [Remove-Job][113] rjb Delete a PowerShell background job [Start-Job][114] sajb Start a PowerShell background job [Stop-Job][115] spjb Stop a PowerShell background job [Wait-Job][116] wjb Wait for a background job k [Stop-Process][117] kill/spps Stop a running process l [Update-List][118] Add and remove items from a collection [Get-Location][119] pwd / gl Get and display the current location [Pop-Location][120] popd Set the current working location from the stack [Push-Location][121] pushd Push a location to the stack [Set-Location][12] cd/chdir/sl Set the current working location m [Send-MailMessage][122] Send an email message [Add-Member][123] Add a member to an instance of a PowerShell object [Get-Member][124] gm Enumerate the properties of an object [Get-Module][125] gmo Get the modules imported to the session Import-Module ipmo Add a module to the session New-Module nmo Create a new dynamic module (only in memory) Remove-Module rmo Remove a module from the current session [Move-Item][126] mv/move/mi Move an item from one location to another o [Compare-Object][51] diff/compare Compare the properties of objects [Group-Object][127] group Group objects that contain the same value [Measure-Object][128] Measure the properties of an object [New-Object][129] Create a new .Net object [Select-Object][130] select Select properties of objects [Sort-Object][131] sort Sort objects by property value [ Where-Object][132] Filter the objects passed along the command pipeline [Out-Default][133] Send output to default [Out-File][134] Send output to a file [Out-GridView][135] ogv Send output to an interactive table [Out-Host][136] oh Send output to the host [Out-Null][137] Send output to null [Out-Printer][138] lp Send the output to a printer [Out-String][139] Send objects to the host as strings p [Param][140] Script Parameters [Powershell][141] Launch a PowerShell session [Convert-Path][142] cvpa Convert a ps path to a provider path [Join-Path][143] Combine a path and child-path [Resolve-Path][144] rvpa Resolves the wildcards in a path [Split-Path][145] Return part of a path [Test-Path][146] Return true if the path exists, otherwise return false [Get-Pfxcertificate][147] Get pfx certificate information [Pop-Location][120] popd Set the current working location from the stack [Push-Location][121] pushd Push a location to the stack [Process][10] Function PROCESS block [Get-Process][148] ps/gps Get a list of processes on a machine Debug-Process Attach a debugger to a running process [Start-Process][149] start/saps Start one or more processes [Stop-Process][117] kill/spps Stop a running process [Wait-Process][150] Wait for a process to stop [Enable-PSBreakpoint][151] ebp Enable a breakpoint in the current console [Disable-PSBreakpoint][152] dbp Disable a breakpoint in the current console [Get-PSBreakpoint][153] gbp Get the currently set breakpoints [Set-PSBreakpoint][154] sbp Set a breakpoint on a line, command, or variable [Remove-PSBreakpoint][155] rbp Delete breakpoints