o'reilly - windows powershell cookbook oct 2007

586 760 0
o'reilly - windows powershell cookbook oct 2007

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... Microsoft .PowerShell. Core\FileSystem::C:\ Mode -d -d -d -d -d -d -d -d -d -d a -ar-s -a -a -a - LastWriteTime 11/2/2006 4:36 AM 5/8 /2007 8:37 PM 11/29/2006 2:47 PM 11/28/2006 2:10 PM 10/7/2006 4:30 PM 5/21 /2007 6:02 PM 4/2 /2007 7:21 PM 5/20 /2007 4:59 PM 5/21 /2007 7:26 PM 5/21 /2007 8:55 PM 1/7/2006 10:37 PM 11/29/2006 1:39 PM 1/7/2006 10:37 PM 5/1 /2007 8:43 PM 4/2 /2007 7:46 PM Length Name -$ WINDOWS. ~BT Blurpark Boot... ships with Windows Try them both on your own machine Structured Commands (Cmdlets) In addition to supporting traditional Windows executables, PowerShell introduces a powerful new type of command called a cmdlet (pronounced command-let) All cmdlets are named in a Verb-Noun pattern, such as Get-Process, Get-Content, and Stop-Process 6 | A Guided Tour of Windows PowerShell PS >Get-Process -Name lsass... expression syntax and PowerShell- focused examples • PowerShell s automatic and default variables • PowerShell s standard verbs • Administrator-friendly NET classes and their uses • Administrator-friendly WMI classes and their uses • Administrator-friendly COM objects and their uses • NET string formatting syntax and PowerShell- focused examples • NET DateTime formatting syntax and PowerShell- focused examples... T-1 4 | A Guided Tour of Windows PowerShell Figure T-1 Windows PowerShell, ready for input Example T-1 Entering many standard DOS and UNIX-style file manipulation commands produces the same results you get when you use them with any other Windows shell PS PS PS PS C:\Documents and Settings\Lee> function Prompt { "PS >" } >pushd >cd \ >dir Directory: Microsoft .PowerShell. Core\FileSystem::C:\ Mode -d... majority of this book requires only a working installation of Windows PowerShell If you do not yet have PowerShell installed, you may obtain it by following the download link at http://www.microsoft.com /PowerShell This link provides download instructions for PowerShell on Windows XP, Windows Server 2003, and Windows Vista For Windows Server 2008, PowerShell comes installed as an optional component that... Tour of Windows PowerShell Tour 0 TOUR A Guided Tour of Windows PowerShell 1 Introduction Windows PowerShell promises to revolutionize the world of system management and command-line shells From its object-based pipelines, to its administrator focus, to its enormous reach into other Microsoft management technologies, PowerShell drastically improves the productivity of administrators and power-users... a simple matter of launching PowerShell. exe rather than cmd.exe—the shells begin to diverge as you explore the intermediate and advanced functionality, but you can be productive in PowerShell immediately To launch Windows PowerShell Click Start ➝ All Programs ➝ Windows PowerShell 1.0 ➝ Windows PowerShell or alternatively, Click Start ➝ Run, and then type PowerShell A PowerShell prompt window opens... documentation does require permission We appreciate, but do not require, attribution An attribution usually includes the title, author, publisher, and ISBN For example: Windows PowerShell Cookbook by Lee Holmes Copyright 2007 Lee Holmes, 97 8-0 -5 9 6-5 284 9-2 .” If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at permissions@oreilly.com Comments and... table lists the glue and enablers that we, as Windows scripters, have had available to us over the years Glue Enabler Cmd.exe batch language Command-line tools (OS, ResKit, Support Tools) WSH Command-line tools (OS, ResKit, Support Tools) Automation-enabled COM objects (WMI, ADSI) Windows PowerShell Command-line tools (OS, ResKit, Support Tools Automation-enabled COM objects (WMI, ADSI) NET Framework... from writing a script and consulting documentation Not so when working with objects in Windows PowerShell Type this at a Windows PowerShell prompt: $objShell = New-Object –com Shell.Application $objShell | Get-Member It does a scripter good, does it not? That Lee Guy Hopefully my rambling has convinced you that Windows PowerShell is a good thing and that it’s worth your time to learn it Now, why do I think . information contained herein. This book uses RepKover ™ , a durable and flexible lay-flat binding. ISBN-10: 0-5 965 2-8 4 9-3 ISBN-13: 97 8-0 -5 9 6-6 5284 9-2 [M] v Table of Contents Foreword . . . . . . . . . . . . . h1" alt="" Windows PowerShell Cookbook ™ Other Microsoft .NET resources from O’Reilly Related titles Windows PowerShell Quick Reference Windows Server 2008: The Definitive Guide Windows Vista Administration Windows. or sim- ply flip to the page you need. Try it today for free. Windows PowerShell Cookbook ™ Lee Holmes Beijing • Cambridge • Farnham • Köln • Paris • Sebastopol • Taipei • Tokyo Windows PowerShell

Ngày đăng: 31/03/2014, 20:22

Từ khóa liên quan

Mục lục

  • Windows PowerShell Cookbook

    • Table of Contents

    • Foreword

      • Glue, Enablers, and a WSH

      • That Lee Guy

      • Preface

        • Who This Book Is For

        • How This Book Is Organized

          • Part 1: Tour

          • Part 2: Fundamentals

          • Part 3: Common Tasks

          • Part 4: Administrator Tasks

          • Part 5: References

          • What You Need to Use This Book

          • Conventions Used in This Book

          • Code Examples

            • Obtaining Code Examples

            • Using Code Examples

            • Comments and Questions

            • Acknowledgments

            • Part I

              • A Guided Tour of Windows PowerShell

                • Introduction

                • An Interactive Shell

                • Structured Commands (Cmdlets)

                • Deep Integration of Objects

                • Administrators As First-Class Users

Tài liệu cùng người dùng

Tài liệu liên quan