如下操做都是在powershell 4.0版本操做
查看windows powershell版本命令:$PSVersionTable
1,更新powershell help
前提:能Internet上網,並以管理員權限打開Powershell ise
命令:update-helpgit
幫助是開源的
Microsoft的PowerShell幫助文件是開源材料,可從http://github.com/powershell
得到。那是查看最新資源的好地方,最新資源可能還沒有編譯爲PowerShell能夠下載和顯示的幫助文件。github
2,使用幫助系統查找命令
help logshell
3,查找命令範例(以Get-EventLog爲例)windows
help Get-EventLog -Exampleside
4,雙屏顯示命令幫助(以Get-EventLog爲例)
help Get-EventLog -ShowWindowblog
5,在線查詢幫忙資源
help Get-EventLog -onlineit