Difference between revisions of "Global Knowledge PowerShell Training"
(→Notes) |
(→Notes) |
||
Line 26: | Line 26: | ||
help dir -ShowWindow | help dir -ShowWindow | ||
+ | |||
+ | The "-WhatIf" option will allow you to "Dry Run" a command that might modify something on the system. | ||
+ | |||
+ | The "-Confirm" option allows for a Y/N query per item for any command that MODIFIES the system. | ||
+ | |||
get-command | get-command |
Revision as of 18:58, 8 June 2015
General Information about PowerShell
Notes
Different versions of PowerShell are available for different OS's. Microsoft is using PowerShell as a way to drive people to upgrade to the latest version of Windows. Newer versions of Powershell work better with Newer versions of Microsoft Windows.
Two versions of the Powershell interface.
- Console
- Basic Command-Line
- Maximum support for PowerShell
- Minimal editing capabilities
- ISE
- Script Editor and Console Combination
- Some PowerShell features not supported
- Rich editing cap
- Third Party hosting apps/Editors
- Variable Features and Pricing
- PowerGUI
help dir -Online
help dir -ShowWindow
The "-WhatIf" option will allow you to "Dry Run" a command that might modify something on the system.
The "-Confirm" option allows for a Y/N query per item for any command that MODIFIES the system.
get-command
get-command | measure-object
get-command | out-gridview
Show-Command Get-ChildItem
The "back tick" character (above the TAB key) is the "Line Continued Below" reference.
help dir `
-ShowWindow
is the same as
help dir -ShowWindow