Win Powershell Command 5676
Win Powershell Command 5676
0 commands
a
Get-Acl
Set-Acl
Active Directory
Get-Alias
gal
Import-Alias
ipal
New-Alias
nal
Set-Alias
sal
Get-AuthenticodeSignature
Set-AuthenticodeSignature
b
Begin
BITS
c
Set-Location cd/chdir/sl Set the current working location
Get-ChildItem
dir/ls/gci Get child items (contents of a folder or registry key)
Clear-Host
clear/cls Clear the screen
Clear-Item
cli
Remove content from a variable or an alias
Get-Command
gcm
Retrieve basic information about a command
Measure-Command
Measure running time
Trace-Command
Trace an expression or command
Add-Computer
Add a computer to the domain
Checkpoint-Computer
Create a system restore point (XP)
Remove-Computer
Remove the local computer from a workgroup or domain
Restart-Computer
Restart the operating system on a computer
Restore-Computer
Restore the computer to a previous state
Stop-Computer
Stop (shut down) a computer
Reset-ComputerMachinePassword Reset the machine account password for the computer
Test-ComputerSecureChannel
Test and repair the secure channel to the domain
Add-Content
ac
Add to the content of the item
Get-Content cat/type/gc Get content from item (specific location)
Set-Content
sc
Set content in the item (specific location)
Clear-Content
clc
Remove content from a file/item
Get-Command
gcm
Get basic information about cmdlets
Invoke-Command
icm
Run command
Enable-ComputerRestore
Enable System Restore on a drive
Disable-ComputerRestore
Disable System Restore on a drive
Get-ComputerRestorePoint
Get the restore points on the local computer
Test-Connection
Ping one or more computers
ConvertFrom-CSV
Convert object properties (in CSV format) into CSV objects
ConvertTo-CSV
Convert .NET Framework objects into CSV variable-length
strings
ConvertTo-Html
Convert the input into an HTML table
ConvertTo-Xml
Convert the input into XML
ConvertFrom-SecureString
Convert a secure string into an encrypted standard string
ConvertTo-SecureString
Convert an encrypted standard string into a secure string
Copy-Item
copy/cp/ci
Copy an item from a namespace location
Export-Counter
Export Performance Counter data to log files
Get-Counter
Get performance counter data
Import-Counter
Import performance counter log files
Get-Credential
Get a security credential (username/password)
Get-Culture
Get region information (language and keyboard layout)
d
Get-ChildItem
Dir/ls/gci Get child items (contents of a folder or registry key)
Get-Date
Get current date and time
Set-Date
Set system time on the host system
Remove-Item Del/erase/rd/rm/rmdir
Delete an item
Compare-Object diff/compare
Compare the properties of objects
Do
Loop while a condition is True
e
End
Function END block
Get-Event
Get events in the PowerShell event queue
New-Event
Create a new event
Remove-Event
Delete events from the event queue
Unregister-Event
Cancel an event subscription
Wait-Event
Wait until a particular event is raised
Clear-EventLog
Delete all entries from an event log
Get-Eventlog
Get event log data (2003)
Limit-EventLog
Limit the size of the event log
New-Eventlog
Create a new event log and a new event source
Remove-EventLog
Delete an event log
Show-EventLog
Display an event log
Write-EventLog
Write an event to an event log
Get-WinEvent
Get event log data (Vista+)
Get-EventSubscriber
Get event subscribers
Register-EngineEvent
Subscribe to PowerShell events
Register-ObjectEvent
Subscribe to .NET events
Register-WmiEvent
Get-ExecutionPolicy
Set-ExecutionPolicy
Export-Alias
epal
Export-Clixml
Export-Console
Export-Csv
epcsv
Exit-PSSession
Exit
f
ForEach-Object
ForEach
For
Format-Custom
Format-List
Format-Table
Format-Wide
Export-FormatData
Get-FormatData
foreach
fc
fl
ft
fw
g
Get-Item
Get-ChildItem
gi
Get a file/registry object (or any other namespace object)
dir/ls/gci Get child items (contents of a folder or registry key)
h
Get-Help
Add-History
Clear-History
Get-History
Invoke-History
Get-Host
Clear-Host
Read-Host
Write-Host
Get-HotFix
help
i
if
Conditionally perform a command
Import-Clixml
Import a clixml file and rebuild the PS object
Import-Csv
ipcsv
Take values from a CSV list and send objects down the pipeline
Invoke-Command
Run commands on local and remote computers
Invoke-Expression
iex
Run a PowerShell expression
Get-Item
gi
Get a file object or get a registry (or other namespace)
object
Invoke-Item
ii
Invoke an executable or open a file (START)
New-Item
md/mkdir/ni Create a new item in a namespace
Remove-Item rm/del/erase/rd/ri/rmdir
Remove an item
Set-Item
si
Change the value of an item
Clear-ItemProperty clp
Remove the property value from a property
Copy-ItemProperty cpp
Copy a property along with it's value
Get-ItemProperty
gp
Retrieve the properties of an object
Move-ItemProperty
mp
Move a property from one location to another
New-ItemProperty
Set a new property
Remove-ItemProperty
rp
Remove a property and its value
Rename-ItemProperty rnp
Renames a property at its location
Set-ItemProperty
sp
Set a property at the specified location to a specified value
j
Get-Job
gjb
Get PowerShell background jobs that are running
Receive-Job
rcjb
Get PowerShell background job results
Remove-Job
rjb
Delete a PowerShell background job
Start-Job
sajb
Start a PowerShell background job
Stop-Job
spjb
Stop a PowerShell background job
Wait-Job
wjb
Wait for a background job
k
Stop-Process
kill/spps Stop a running process
l
Update-List
Add and remove items from a collection
Get-Location
pwd / gl
Get and display the current location
Pop-Location
popd
Set the current working location from the stack
Push-Location
pushd
Push a location to the stack
Set-Location cd/chdir/sl Set the current working location
m
Send-MailMessage
Send an email message
Add-Member
Add a member to an instance of a PowerShell object
Get-Member
gm
Enumerate the properties of an object
Get-Module
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
mv/move/mi Move an item from one location to another
o
Compare-Object diff/compare Compare the properties of objects
Group-Object
group Group objects that contain the same value
Measure-Object
Measure the properties of an object
New-Object
Create a new .Net object
Select-Object
select Select properties of objects
Sort-Object
Where-Object
Out-Default
Out-File
Out-GridView
Out-Host
Out-Null
Out-Printer
Out-String
sort
ogv
oh
lp
p
Param
Script Parameters
Powershell
Launch a PowerShell session
Convert-Path
cvpa
Convert a ps path to a provider path
Join-Path
Combine a path and child-path
Resolve-Path
rvpa
Resolves the wildcards in a path
Split-Path
Return part of a path
Test-Path
Return true if the path exists, otherwise return false
Get-Pfxcertificate
Get pfx certificate information
Pop-Location
popd
Set the current working location from the stack
Push-Location
pushd
Push a location to the stack
Process
Function PROCESS block
Get-Process
ps/gps
Get a list of processes on a machine
Debug-Process
Attach a debugger to a running process
Start-Process start/saps Start one or more processes
Stop-Process
kill/spps Stop a running process
Wait-Process
Wait for a process to stop
Enable-PSBreakpoint ebp
Enable a breakpoint in the current console
Disable-PSBreakpoint dbp
Disable a breakpoint in the current console
Get-PSBreakpoint gbp
Get the currently set breakpoints
Set-PSBreakpoint sbp
Set a breakpoint on a line, command, or variable
Remove-PSBreakpoint rbp
Delete breakpoints from the current console
Get-PSDrive
gdr
Get drive information (DriveInfo)
New-PSDrive
mount/ndr Install a new drive on the machine
Remove-PSDrive
rdr
Remove a provider/drive from its location
Get-PSProvider
Get information for the specified provider
Set-PSdebug
Turn script debugging on or off
Enter-PSSession etsn
Start an interactive session with a remote computer
Exit-PSSession exsn
End an interactive session with a remote computer
Export-PSSession epsn
Import commands and save them in a PowerShell module
Get-PSSession
gsn
Get the PSSessions in the current session
Import-PSSession ipsn
Import commands from another session
New-PSSession
nsn
Create a persistent connection to a local or remote computer
Remove-PSSession
rsn
Close PowerShell sessions
Disable-PSSessionConfiguration Deny access to PS session configuration
Enable-PSSessionConfiguration Enable PS session configuration
Get-PSSessionConfiguration Get the registered PS session configuration
Register-PSSessionConfiguration Create and register a new PS session configuration
Set-PSSessionConfiguration Change properties of a registered session configuration
Unregister-PSSessionConfiguration Delete registered PS session configuration
New-PSSessionOption
Advanced options for a PSSession
Add-PsSnapIn
asnp
Add snap-ins to the console
Get-PsSnapin
gsnp
List PowerShell snap-ins on this computer
Remove-PSSnapin
rsnp
Remove PowerShell snap-ins from the console
q
Quest AD cmdlets
r
Get-Random
Get a random number
Read-Host
Read a line of input from the host console
Remove-Item rm/del/erase/rd/ri/rmdir
Remove an item
Rename-Item
ren/rni
Change the name of an existing item
Rename-ItemProperty
Rename a property of an item
Run/Call
&
Run a command (call operator)
s
Select-Object
select
Select-XML
Send-MailMessage
Get-Service
gsv
New-Service
Restart-Service
Resume-Service
Set-Service
Start-Service
sasv
Stop-Service
spsv
Suspend-Service
Sort-Object
sort
Set-StrictMode
Start-Sleep
sleep
Switch
ConvertFrom-StringData
Select-String
Tee-Object
t
tee
New-Timespan
Trace-Command
Get-Tracesource
Set-Tracesource
Start-Transaction
Complete-Transaction
Get-Transaction
Use-Transaction
Undo-Transaction
Start-Transcript
Stop-Transcript
Add-Type
Update-TypeData
u
Get-Uiculture
Get-Unique
Update-Formatdata
Update-Help
Update-Typedata
gu
v
Clear-Variable
Get-Variable
New-Variable
Remove-Variable
Set-Variable
clv
gv
nv
rv
set/sv
w
New-WebServiceProxy
Where-Object
where/?
Where
While
Write-Debug
Write-Error
Write-Host
Write-Output
write/echo
Write-Progress
Write-Verbose
Write-Warning
Set-WmiInstance
Invoke-WmiMethod
iwmi
Get-WmiObject
gwmi
Remove-WmiObject
rwmi
Connect-WSMan
Disconnect-WSMan
Test-WSMan
Invoke-WSManAction
Disable-WSManCredSSP
authentication
Enable-WSManCredSSP
Get-WSManCredSSP
New-WSManInstance
Get-WSManInstance
Set-WSManInstance
Remove-WSManInstance
Set-WSManQuickConfig
New-WSManSessionOption
Zipfile
#
. (source)
& (call)
%
?
$variable = "value"
@(...)