如何开始使用 PowerShell? [英] How to get started with PowerShell?

查看:46
本文介绍了如何开始使用 PowerShell?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我玩过 PowerShell V1 的早期测试版之一,但自从它成为金牌"后就没有使用过.开始使用 PowerShell 的最佳方式是什么?

I played with one of the early beta versions of PowerShell V1, but haven't used it since it went "gold". What is the best way to get started using PowerShell?

我应该使用哪个版本的 PowerShell(V1.0 与 2.0 CTP)?你用 PowerShell 做什么?是否有任何工具可以更轻松地使用 PowerShell(即开发环境)?

Which version of PowerShell should I be using (V1.0 vs 2.0 CTP's)? What are you using PowerShell for? Are there any tools that make using PowerShell easier (that is, development environments)?

推荐答案

对于学习 PowerShell,有许多很棒的资源

For learning PowerShell, there are a number of great resources

  1. Technet 虚拟实验室(介绍Windows PowerShell)
  2. PowerShellCommunity.org - 论坛、博客、脚本存储库
  3. irc.freenode.net 上的 powershell

  4. PowerShell 播客 - PowerScripting.net 和 Get-Scripting.blogspot.com

对于 IDE 风格的环境,您有 PowerShell Analyzer(免费)和 PowerGUI(免费)、PowerShell Plus(商业)、PrimalScript(商业)和 Admin Script Editor(商业).

For IDE style environments, you have PowerShell Analyzer (free) and PowerGUI (free), PowerShell Plus (commercial), PrimalScript (commercial), and Admin Script Editor (commerical).

我尽可能使用 PowerShell.现在,我正在查看 Psake,一个基于 PowerShell 的构建脚本环境.我使用 if 来管理我的 Active Directory、Hyper-V、Twitter、一些键盘自动化(在 winforms 应用程序中托管 PowerShell 以获取击键)以及大量其他东西.我必须检查的另一个很酷的项目是 PSExpect 用于测试.我还将它用于数据库访问 - 监视应用程序对数据库中的行所做的更改.它也集成到我的网络监控解决方案中.

I use PowerShell for everything that I can. Right now, I'm looking at Psake, a PowerShell based build script environment. I use if for managing my Active Directory, Hyper-V, Twitter, some keyboard automation (hosting PowerShell in a winforms app to grab keystrokes), and a ton of other stuff. Another cool project I have to check out is PSExpect for testing. I also use it for database access - monitoring changes made to rows in a database by applications. It is also integrated in to my network monitoring solution.

我还希望将 PowerShell 用作我正在处理的项目的脚本引擎.

I am also looking to use PowerShell as a scripting engine for a project I am working on.

编辑:如果你只是在学习 PowerShell,我会专注于 V1.当您感觉更舒服时,请查看 CTP,但从 CTP 到实际发布为 V2 的内容可能会发生很多变化,以使其成为您的学习工具.XP SP3、Server 2003、Vista 和 Server 2008 以及适用于 Win7 和 Server 2008 R2 的包装盒中已推出版本 2.你在 V1 中学到的东西仍然对你有用,但现在我将专注于 V2,因为有一个卓越的功能集.

EDIT: If you are just learning PowerShell, I would focus on V1. As you get more comfortable, take a look at the CTP, but too much can change from the CTP to what is actually released as V2 to make that your learning tool. Version 2 is out and available from XP SP3, Server 2003, Vista, and Server 2008 and in the box for Win7 and Server 2008 R2. What you learned for V1 will still serve you well, but now I would concentrate on V2, as there is a superior feature set.

祝你好运!

这篇关于如何开始使用 PowerShell?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆