Book description
If you work on a daily basis with Windows Server 2012, this book will make life easier by teaching you the skills to automate server tasks with PowerShell scripts, all delivered in recipe form for rapid implementation.
- Extend the capabilities of your Windows environment
- Improve the process reliability by using well defined PowerShell scripts
- Full of examples, scripts, and real-world best practices
In Detail
Automating server tasks allows administrators to repeatedly perform the same, or similar, tasks over and over again. With PowerShell scripts, you can automate server tasks and reduce manual input, allowing you to focus on more important tasks.
Windows Server 2012 Automation with PowerShell Cookbook will show several ways for a Windows administrator to automate and streamline his/her job. Learn how to automate server tasks to ease your day-to-day operations, generate performance and configuration reports, and troubleshoot and resolve critical problems.
Windows Server 2012 Automation with PowerShell Cookbook will introduce you to the advantages of using Windows Server 2012 and PowerShell. Each recipe is a building block that can easily be combined to provide larger and more useful scripts to automate your systems. The recipes are packed with examples and real world experience to make the job of managing and administrating Windows servers easier.
The book begins with automation of common Windows Networking components such as AD, DHCP, DNS, and PKI, managing Hyper-V, and backing up the server environment. By the end of the book you will be able to use PowerShell scripts to automate tasks such as performance monitoring, reporting, analyzing the environment to match best practices, and troubleshooting.
Table of contents
-
Windows Server 2012 Automation with PowerShell Cookbook
- Table of Contents
- Windows Server 2012 Automation with PowerShell Cookbook
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
-
1. Understanding PowerShell Scripting
- Introduction
- Managing security on PowerShell scripts
- Creating and using functions
- Creating and using modules
- Creating and using PowerShell profiles
- Passing variables to functions
- Validating parameters in functions
- Piping data to functions
- Recording sessions with transcripts
- Signing PowerShell scripts
- Sending e-mail
- Sorting and filtering
- Using formatting to export numbers
- Using formatting to export data views
- Using jobs
- Dealing with errors in PowerShell
- Tuning PowerShell scripts for performance
- Creating and using Cmdlets
-
2. Managing Windows Network Services with PowerShell
- Introduction
- Configuring static networking
- Installing domain controllers
- Configuring zones in DNS
- Configuring DHCP scopes
- Configuring DHCP server failover
- Converting DHCP addresses to static
- Building out a PKI environment
- Creating AD users
- Searching for and reporting on AD users
- Finding expired computers in AD
- Creating and e-mailing a superuser report
-
3. Managing IIS with PowerShell
- Introduction
- Installing and configuring IIS
- Configuring IIS for SSL
- Configuring a Central Certificate Store
- Configuring IIS bindings
- Configuring IIS logging
- Managing log files
- Configuring NLB across multiple servers
- Monitoring load balancing across NLB nodes
- Placing NLB nodes into maintenance
- Configuring a development/staging/production site scheme
- Promoting content in websites
- Reporting on website access and errors
-
4. Managing Hyper-V with PowerShell
- Introduction
- Installing and configuring Hyper-V
- Configuring NUMA
- Securing Hyper-V
- Hyper-V networking
- Creating virtual machines
- Managing VM state
- Configuring VM networking
- Configuring VM hardware
- Quickly deploying VMs using a template
- Managing and reporting on VM snapshots
- Monitoring Hyper-V utilization and performance
- Synchronizing networks between Hyper-V hosts
- Hyper-V replication
- Migrating VMs between hosts
- Migrating VM storage between hosts
- Using failover clustering to make VMs highly available
- 5. Managing Storage with PowerShell
-
6. Managing Network Shares with PowerShell
- Introduction
- Creating and securing CIFS shares
- Accessing CIFS shares from PowerShell
- Creating iSCSI target and virtual disk
- Using a iSCSI disk
- Configuring and using iSNS
- Creating an NFS export
- Mounting NFS exports
- Making CIFS shares highly available
- Configuring DFS and DFSR replication
- Configuring BranchCache
-
7. Managing Windows Updates with PowerShell
- Introduction
- Installing Windows Server Update Services
- Configuring WSUS update synchronization
- Configuring the Windows update client
- Creating computer groups
- Configuring WSUS auto-approvals
- Reporting missing updates
- Installing updates
- Uninstalling updates
- Configuring WSUS to inventory clients
- Creating an update report
- Exporting WSUS data to Excel
- 8. Managing Printers with PowerShell
- 9. Troubleshooting Servers with PowerShell
- 10. Managing Performance with PowerShell
- 11. Inventorying Servers with PowerShell
- 12. Server Backup
- Index
Product information
- Title: Windows Server 2012 Automation with PowerShell Cookbook
- Author(s):
- Release date: March 2013
- Publisher(s): Packt Publishing
- ISBN: 9781849689465
You might also like
book
PowerShell Core for Linux Administrators Cookbook
Use PowerShell 6.0 on Linux to automate complex, repetitive, and time consuming tasks About This Book …
book
Troubleshooting Windows Server with PowerShell
This book shows you how to use PowerShell to quickly pinpoint, diagnose, and solve problems with …
book
PowerShell and WMI
PowerShell and WMI is an example-driven guide for administrators managing networks of Windows servers and desktops. …
book
Windows PowerShell Best Practices
Expert recommendations, pragmatically applied. Automate system administration using Windows PowerShell best practices—and optimize your operational efficiency. …