Transcription of PowerShell Basic Cheat Sheet - Rambling Cookie …
{{id}} {{{paragraph}}}
BasicsCmdletCommands built into shell written in .NETF unctionsCommands written in PowerShell languageParameterArgument to a Cmdlet/Function/ScriptAliasShortcut for a Cmdlet or FunctionScriptsText files with .ps1 extensionApplicationsExisting windows programsPipelines |Pass objects Get-process word | Stop-ProcessCtrl+cInterrupt current commandLeft/rightNavigate editing cursorCtrl+left/rightNavigate a word at a timeHome / EndMove to start / end of lineUp/downMove up and down through historyInsertToggles between insert/overwrite modeF7 Command history in a windowTab / Shift-TabCommand line completionScriptsSet-ExecutionPolicy -ExecutionPolicy BypassSet execution policy to allow all scripts."\\c-is-ts-91\c$\scripts\ "Run script in current scope&"\\c-is-ts-91\c$\scripts\ "Run script in script scope.\ script in script scope$profileYour personal profile that runs at launchHelpGet-CommandGet all commandsGet-Command -Module RGHSGet all commands in RGHS moduleGet-Command Get-p*Get all commands starting with get-pGet-help get-processGet help for commandGet-Process | Get-MemberGet members of the object Get-Process| format-list -properties *Get-Process as list with all properties Writing output and reading input"This displays a string"String is written directly to outputWrite-Host "color" -ForegroundColor Red -NoNewLineString with colors, no new line at end$age = Read-host "Please enter your age"Set $ag
Basics Cmdlet Commands built into shell written in .NET Functions Commands written in PowerShell language Parameter Argument to a Cmdlet/Function/Script
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}