Windows PowerShellTM Scripting Guide

Get practical guidance for using Windows PowerShell to manage Windows Vista and Windows Server 2008. Written by Ed Wilson, a leading scripting expert and trainer at Microsoft, this reference offers a task-based approach to help you find the information you need for day-to-day tasks. With more than...

Descripción completa

Detalles Bibliográficos
Autor principal: Wilson, Ed (-)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Sebastopol : Microsoft Press 2009.
Edición:1st edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627466606719
Tabla de Contenidos:
  • Cover; Copyright Page; Dedication; Contents at a Glance; Table of Contents; Acknowledgments; Introduction; Is This Book for Me?; About the Companion CD; System Requirements; Technical Support; Chapter 1: The Shell in Windows PowerShell; Installing Windows PowerShell; Verifying Installation with VBScript; Deploying Windows PowerShell; Interacting with the Shell; Introducing Cmdlets; Configuring Windows PowerShell; Creating a Windows PowerShell Profile; Configuring Windows PowerShell Startup Options; Security Issues with Windows PowerShell; Controlling the Execution of Cmdlets
  • Confirming CommandsSuspending Confirmation of Cmdlets; Supplying Options for Cmdlets; Working with Get-Help; Working with Aliases to Assign Shortcut Names to Cmdlets; Additional Uses of Cmdlets; Using the Get-ChildItem Cmdlet; Formatting Output; Using the Get-Command Cmdlet; Exploring with the Get-Member Cmdlet; Summary; Chapter 2: Scripting Windows PowerShell; Why Use Scripting?; Configuring the Scripting Policy; Running Windows PowerShell Scripts; Use of Variables; Use of Constants; Using Flow Control Statements; Adding Parameters to ForEach-Object; Using the Begin Parameter
  • Using the Process ParameterUsing the End Parameter; Using the For Statement; Using Decision-Making Statements; Using If ... Elseif ... Else; Using Switch; Working with Data Types; Unleashing the Power of Regular Expressions; Using Command-Line Arguments; Summary; Chapter 3: Managing Logs; Identifying the Event Logs; Reading the Event Logs; Exporting to Text; Export to XML; Perusing General Log Files; Examining Multiple Logs; Retrieving a Single Event Log Entry; Searching the Event Log; Filtering on Properties; Selecting the Source; Selecting the Severity; Selecting the Message
  • Managing the Event LogIdentifying the Sources; Modifying the Event Log Settings; Examining WMI Event Logs; Making Changes to the WMI Logging Level; Using the Windows Event Command-Line Utility; Writing to Event Logs; Creating a Source; Putting Cmdlet Output into the Log; Creating Your Own Event Logs; Summary; Chapter 4: Managing Services; Documenting the Existing Services; Working with Running Services; Writing to a Text File; Writing to a Database; Setting the Service Configuration; Accepting Command-Line Arguments; Stopping Services; Performing a Graceful Stop; Starting Services
  • Performing a Graceful StartDesired Configuration Maintenance; Verifying Desired Services Are Stopped; Reading a File to Check Service Status; Verifying Desired Services Are Running; Confirming the Configuration; Producing an Exception Report; Summary; Chapter 5: Managing Shares; Documenting Shares; Documenting User Shares; Writing Shares to Text; Documenting Administrative Shares; Writing Share Information to a Microsoft Access Database; Auditing Shares; Modifying Shares; Using Parameters with the Script; Translating the Return Code; Creating New Shares; Creating Multiple Shares
  • Deleting Shares