Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 411 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
411
Dung lượng
5,72 MB
Nội dung
Steve Seguis Learn to: • Master WindowsPowerShell2 without complicated jargon • Automate Windows Server ® administration tasks • Use the new features of Windows P ow erShell 2 • Debug scripts, remotely invoke c ommands, and more WindowsPowerShell ™ 2 Making Everything Easier! Visit the companion Web site at www.dummies.com/go/ powershell2fd to find code files for the code listings used in the book and a bonus chapter about exception handling Open the book and find: • Tips for personalizing PowerShell • All about cmdlets • How to use Windows Management Instrumentation (WMI) • Things to watch for in value conversions • How to internationalize a script • Debugging tools and how to use them • Network configuration tips • Ten common mistakes to avoid • How to take advantage of this new feature in Windows 7 Steve Seguis is a Microsoft Windows systems engineer with more than 12 years of experience managing small- to large-scale Windows environments. He was a Microsoft MVP forWindows Server - Admin Frameworks from 2004–2007, and is a contributing technical editor forWindows IT Pro. Programming Languages/General $29.99 US / $35.99 CN / £21.99 UK ISBN 978-0-470-37198-5 Go to Dummies.com ® for videos, step-by-step examples, how-to articles, or to shop! Get the power to use WindowsPowerShell2 on any Windows system — right here! You’ve heard about WindowsPowerShell 2, the Windows scripting environment that’s changing how we think about Windows scripting. This fun and friendly guide gives you a solid understanding of what it is and how to use it, with plenty of real-world examples so you can put the information to good use right away. Your boss will think you’re a genius! • View from the top — get an overview of WindowsPowerShell2 and examine the syntax, structure, and core functionality • Look deeper — manipulate strings, work with data structures like arrays and hashtables, and use Windows Management Instrumentation • The need for speed — see how WindowsPowerShell speeds things up by letting you run commands on a remote computer or run multiple commands at once • In the real world — learn to apply scripts to specific needs • It does more — use WindowsPowerShell2 to manage network configurations, gather hardware info, connect to printers, and more WindowsPowerShell ™ 2 Seguis spine=.816” [...]... Command Shell 22 Adding color to your world 22 Getting size-specific with your windows 22 A window by any other name 24 Changing Your PowerShell Profile 24 Making the WindowsPowerShell ISE Work for You 27 Customizing the ISE 28 Adding your own functions to the ISE menu 28 Creating Aliases 30 x WindowsPowerShell2ForDummies Deleting... running with WindowsPowerShell as quickly as possible, then this book is for you! About This Book WindowsPowerShell2ForDummies is an introductory guide to this relatively new and fascinating Windows scripting environment that’s revolutionizing the way programmers think about Windows scripting Before WindowsPowerShell 2, there was WindowsPowerShell 1.0 (what a shocker!) WindowsPowerShell2 takes... to read the Monad Manifesto as it originally appeared in 20 02, you can view it on the WindowsPowerShell team blog (http://blogs.msdn com /powershell/ archive /20 07/03/19/monad-manifesto-theorigin-of -windows- powershell. aspx) A little bit on WindowsPowerShell 1.0 WindowsPowerShell brings together the best parts of interacting with the traditional Windows Shell along with the power of writing WSH scripts... to use WindowsPowerShell already, stop talking and tell me how!” Because WindowsPowerShell2 15 16 Part I: Getting a Bird’s-Eye View of PowerShell2 doesn’t ship with any of the Windows operating systems except Windows 7, you’ll generally need to install it first Luckily, this task is relatively pain-free, so stick with me for a few seconds WindowsPowerShell2 is a replacement forWindows PowerShell. .. 21 6 Invoking commands remotely 21 7 Creating a persistent connection 21 8 Running remote background jobs 21 9 Understanding policies, profiles, and precedence 22 1 xiii xiv Windows PowerShell2 For Dummies Chapter 16: Making Your Script Speak Different Languages 22 3 Seeing the Importance of Internationalizing Scripts 22 4 Giving Your Scripts Different Tongues 22 4... briefly what this book is not, it’s not an all-inclusive, everythingyou’ll-ever-want-to-know-about -Windows PowerShell reference As you read this book, however, you’ll realize how truly powerful WindowsPowerShell is, because the book covers all the most important things you need to know This book is written to Windows PowerShell2 CTP3 Windows PowerShell2 has already come a long way since it was first... if, for some reason, you type the code manually and it doesn’t work correctly Again, this book is written to Windows PowerShell2 CTP3 If there are any changes to Windows PowerShell2 in releases after CTP3, I will put that up as errata on the WindowsPowerShell2ForDummies Web site (www .dummies com/go /powershell2 fd), so if something in this book doesn’t work quite right, check the Web site for any... 20 9 Using Background Jobs 21 0 Enabling WinRM 21 0 Starting a new job 21 0 Getting results 21 1 Waiting for a job 21 3 Terminating a job 21 4 Bringing a job to a grinding halt 21 4 Running Commands Remotely 21 5 Using WindowsPowerShell everywhere 21 5 Getting what you need for remote commands 21 6 Speaking PowerShell. .. internationalization features 22 5 Understanding cultures 22 6 Putting it all together 22 6 Sharing Scripts with Others 22 9 Chapter 17: Smashing Those Bugs 23 1 Finding Out Where the Bugs Come From 23 1 Guarding against unexpected input 23 2 Watching out for incorrect logic 23 2 Expecting the unexpected: System errors 23 3 Understanding the... you have some Windows administration under your belt If you don’t, don’t worry; you still find plenty of useful information in this book Finally, although the title of this book is WindowsPowerShell2For Dummies, I know that you’re not a dummy (but I bet that guy who’s staring at you for having a ForDummies book in your hand is) I know that you’re a smart 3 4 WindowsPowerShell2ForDummies individual . world 22 Getting size-speci c with your windows 22 A window by any other name . . . 24 Changing Your PowerShell Pro le 24 Making the Windows PowerShell ISE Work for You 27 Customizing the ISE 28 Adding. READ. For general information on our other products and services, please contact our Customer Care Department within the U.S. at 87 7-7 6 2- 2974, outside the U.S. at 31 7-5 7 2- 3993, or fax 31 7-5 7 2- 40 02. For. - Admin Frameworks from 20 04 20 07, and is a contributing technical editor for Windows IT Pro. Programming Languages/General $29 .99 US / $35.99 CN / 21 .99 UK ISBN 97 8-0 -4 7 0-3 719 8-5 Go to Dummies. com ® for