Learn Windows PowerShell in a Month of Lunches (3rd Edition) cover

Learn Windows PowerShell in a Month of Lunches (3rd Edition)

No rating yet
Chapters
28
ISBN
9787115470980

Tags

Summary

Learn Windows PowerShell in a Month of Lunches (3rd Edition) is translated from Learn Windows PowerShell in a Month of Lunches (3rd Edition) by Don Jones and Jeffery Hicks, published by Posts & Telecom Press and translated by Song YunJian. PowerShell is both a scripting language and a management shell: it can accept and execute commands interactively and can also manage Windows servers such as Exchange, IIS, and SharePoint, as well as online services such as Azure and Office 365, through scripts. This book is a tutorial designed for busy IT professionals; according to the authors' design, readers need spend only one hour a day, such as at lunchtime, for one month to raise their Windows task automation to a new level. The book has 28 chapters, starting from what PowerShell is and covering the help system, running commands, providers, pipelines and objects, formatted output, filtering and comparison, remoting (one-to-one and one-to-many), WMI (Windows Management Instrumentation), background jobs, batch processing, security and credentials, variables, input and output, scripting and parameterization, and using regular expressions to parse text, with a cheat sheet at the end. The 3rd edition mainly explains features of PowerShell v3 and later, and also includes v5 features such as PowerShellGet; the book targets Windows 7, Windows Server 2008 R2, and later operating system environments, offers ideas usable across platforms, and emphasizes hands-on experiments.

Editor's review

很多 Windows 管理员学习 PowerShell 之所以半途而废,原因通常有两个:一是把它当成一门编程语言猛啃语法,二是被官方文档淹没,却始终没做出能用的脚本。这本书的写法恰好避开了这两个问题。两位作者 Don Jones 与 Jeffery Hicks 都是多年的 PowerShell MVP,也是长期从事 PowerShell 培训的讲师;他们贯彻“每天午餐一小时、一月搞定”的学习方法,把 28 个短章节安排得循序渐进:先让你在命令行里跑起来,再讲清管道与对象这两个 PowerShell 的灵魂,随后转向远程管理、WMI、后台作业等真实的运维场景。每章末尾配有动手实验和复习实验,看完就能立刻在测试机上验证。第 3 版跟进到 PowerShell v3 到 v5,涵盖 PowerShellGet、远程配置等实用特性,译者宋沄剑本身也是长期从事自动化运维的一线工程师。对想摆脱手工点鼠标、走向脚本化与自动化的 Windows 运维人员来说,它是一本可以当成课程表来用的入门与进阶合体之书。

Who it's for

A good fit for

  • 刚接手 Windows 服务器、希望用脚本替代重复手工操作的系统管理员
  • 有一定命令行基础、想系统掌握管道、对象与远程管理的运维工程师
  • 需要为 Exchange、IIS、Azure 等平台编写自动化脚本的 IT 支持人员
  • 想以固定节奏入门的 PowerShell 自学者或企业内训班学员

Not a good fit for

  • 已能熟练编写 PowerShell 高级函数与模块、寻求底层原理剖析的资深开发者
  • 完全没有 Windows 使用环境、只打算学 Python 或 Bash 的读者
  • 希望直接照抄现成生产级脚本、不愿动手做实验的人

Reading tips

  1. 按书中设计每天一章、约一小时推进,务必在测试机或虚拟机上完成每章实验。
  2. 重点吃透管道与对象两章,可先用 Get-Member、Get-Command 反复探查输出对象结构。
  3. 读到远程处理与后台作业时,搭两台虚拟机构造域环境,练习一对多执行与凭据管理。
  4. 学完后把日常重复性工作写成脚本并归档,配合书末备忘清单长期复盘查阅。

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Chapter 1 Background Introduction
  2. Chapter 2 Getting Started with PowerShell
  3. Chapter 3 Using the Help System
  4. Chapter 4 Running Commands
  5. Chapter 5 Using Providers
  6. Chapter 6 The Pipeline: Connecting Commands
  7. Chapter 7 Extending Commands
  8. Chapter 8 Objects: Another Name for Data
  9. Chapter 9 Going Deeper into the Pipeline
  10. Chapter 10 Formatting and How to Use It Correctly
  11. Chapter 11 Filtering and Comparing
  12. Chapter 12 Putting It All Together
  13. Chapter 13 Remoting: One-to-One and One-to-Many
  14. Chapter 14 Windows Management Instrumentation
  15. Chapter 15 Multitasking with Background Jobs
  16. Chapter 16 Working with Multiple Objects at Once
  17. Chapter 17 Security Alert
  18. Chapter 18 Variables: A Place to Store Stuff
  19. Chapter 19 Input and Output
  20. Chapter 20 Remote Control Made Easy
  21. Chapter 21 So You Call This a Script
  22. Chapter 22 Optimizing Parameterized Scripts
  23. Chapter 23 Advanced Remote Control Configuration
  24. Chapter 24 Parsing Text Files with Regular Expressions
  25. Chapter 25 Additional Tips, Tricks, and Techniques
  26. Chapter 26 Using Other People's Scripts
  27. Chapter 27 Never Stop Learning
  28. Chapter 28 PowerShell Cheat Sheet

FAQ

这本书和网上常见的《Windows PowerShell实战指南(第2版)》有什么差别?
两者是同一套书的不同版次。第3版译文对应英文原书 3rd Edition,内容更新到 PowerShell v3 至 v5,新增 PowerShellGet 等特性;第2版篇幅与章节结构相近但技术内容较早。选购时请以 ISBN 9787115470980 为准。
零基础、没写过脚本能看懂吗?
可以。作者专为“繁忙的 IT 专业人士”设计,从什么是 Shell、如何输入命令讲起,不预设编程经验,每章只有一小时体量,并配动手实验,按节奏读完即可上手写简单脚本。
书里的内容适用于 PowerShell 7 吗?
本书成书时以 Windows PowerShell v3~v5 为主。管道、对象、提供程序、远程处理等核心概念在 PowerShell 7 中仍然通用,但部分模块兼容性与命令差异需查阅官方文档,书中示例建议在 Windows PowerShell 5.1 环境先跑通。
需要准备什么实验环境?
一台 Windows 7 或 Windows Server 2008 R2 及以上的机器即可开始,建议使用虚拟机快照方便反复实验;练习远程处理时最好准备两台机器并配置 WinRM,避免直接在生产环境中试错。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

More by the same author

Top rated in the same category