Enterprise PowerShell Scripting Bootcamp


Enterprise PowerShell Scripting Bootcamp
by Brenton J.W. Blawat
Print Length 页数: 238 pages
Publisher finelybook 出版社:‏ Packt Publishing (18 May 2017)
Language 语言: English
ISBN-10: 1787288285
ISBN-13: 9781787288287
B071ZBDRZ1
The quick start guide for an advanced enterprise PowerShell framework
About This Book
Introduces industry-proven techniques that improve script efficiency and reliability
Example-rich guide based on real-world scenarios
Facilitates building a script that can fully scan a Windows server and identify components
Who This Book Is For
This book is for IT professionals and Windows administrators who would like to gain intensive,hands-on knowledge and skills on PowerShell without spending hours and hours in learning. If you have been struggling to find the time to gain proficiency and confidence with PowerShell and everyday scripting tasks
What You Will Learn
Create an advanced PowerShell scripting template that provides repeatable code to jumpstart all of your scripting projects
Learn how to securely encrypt and store usernames,passwords,and other sensitive data in PowerShell scripts and answer files
Understand how to optimize the performance of scripts to help process large datasets quickly and avoid time-consuming mistakes
Develop a script to scan for non-standard Windows Server configurations and identify service accounts used on Windows Servers
Gather a large list of data from a Windows server without locally or remotely logging in interactively
In Detail
Enterprise PowerShell Scripting Bootcamp explains how to create your own repeatable PowerShell scripting framework. This framework contains script logging methodologies,answer file interactions,and string encryption and decryption strategies.
This book focuses on evaluating individual components to identify the system’s function,role,and unique characteristics. To do this,you will leverage built-in CMDlets and Windows Management Instrumentation (WMI) to explore Windows services,Windows processes,Windows features,scheduled tasks,and disk statistics. You will also create custom functions to perform a deep search for specific strings in files and evaluate installed software through executable properties.
We will then discuss different scripting techniques to improve the efficiency of scripts. By leveraging several small changes to your code,you can increase the execution performance by over 130%.
By the end of this book,you will be able to tie all of the concepts together in a PowerShell-based Windows server scanning script. This discovery script will be able to scan a Windows server to identify a multitude of components.
Style and approach
This book is all about fast and intensive learning. This means,we don’t waste time in helping readers get started. The new content is about leveraging highly-effective examples to build new things,help solving problems in newer and unseen ways,and providing an enterprise-ready platform to create PowerShell Scripts.
Contents
Chapter 1. Getting Started with Enterprise PowerShell Scripting
Chapter 2. Script Structure,Comment Blocks,and Script Logging
Chapter 3. Working with Answer Files
Chapter 4. String Encryption and Decryption
Chapter 5. Interacting with Services,Processes,Profiles,and Logged on Users
Chapter 6. Evaluating Scheduled Tasks
Chapter 7. Determining Disk Statistics
Chapter 8. Windows Features and Installed Software Detection
Chapter 9. File Scanning
Chapter 10. Optimizing Script Execution Speed
Chapter 11. Improving Performance by Using Regular Expressions
Chapter 12. Overall Script Workflow,Termination Files,and Merging Data Results
Chapter 13. Creating the Windows Server Scanning Script and Post-Execution Cleanup
高级企业PowerShell框架的快速入门指南
关于这本书
推出经业界验证的技术,可提高脚本效率和可靠性
基于真实世界场景的丰富实例的指南
便于构建一个可以完全扫描Windows服务器并识别组件的脚本
这本书是谁
本书适用于IT专业人员和Windows管理员,他们希望在PowerShell上获得密集的实践知识和技能,而无需花费数小时的时间学习。如果您一直在努力找到时间来获得PowerShell和日常脚本编写任务的熟练程度和信心
你会学到什么
创建一个高级PowerShell脚本模板,提供可重复的代码来启动所有脚本项目
了解如何在PowerShell脚本和应答文件中安全地加密和存储用户名,密码和其他敏感数据
了解如何优化脚本的性能,以便快速处理大型数据集,并避免耗费时间的错误
开发一个脚本来扫描非标准Windows Server配置,并识别在Windows Server上使用的服务帐户
从Windows服务器收集大量数据,无需本地或远程登录
详细
企业PowerShell脚本Bootcamp解释了如何创建自己的可重复的PowerShell脚本框架。该框架包含脚本记录方法,应答文件交互和字符串加密和解密策略。
本书着重于评估各个组件,以确定系统的功能,作用和独特的特征。为此,您将利用内置的CMDlet和Windows Management Instrumentation(WMI)来浏览Windows服务,Windows进程,Windows功能,计划任务和磁盘统计信息。您还将创建自定义函数来深入搜索文件中的特定字符串,并通过可执行属性评估安装的软件。
然后,我们将讨论不同的脚本技术来提高脚本的效率。通过利用代码的几个小小更改,您可以将执行性能提高超过130%。
在本书的最后,您将能够将基于PowerShell的Windows服务器扫描脚本中的所有概念结合在一起。此发现脚本将能够扫描Windows服务器以识别众多组件。
风格和方法
这本书是关于快速和密集的学习。这意味着我们不会浪费时间帮助读者开始使用。新内容是关于利用高效示例来构建新事物,以更新和不可见的方式解决问题,并提供一个企业级平台来创建PowerShell脚本。
目录
第1章Enterprise PowerShell脚本入门
第2章脚本结构,注释块和脚本记录
第3章使用答案文件
第4章字符串加密和解密
第5章与服务,流程,配置文件和用户登录交互
第6章评估计划任务
第7章确定磁盘统计信息
第8章Windows功能和安装的软件检测
第9章文件扫描
第10章优化脚本执行速度
第11章使用正则表达式提高性能
第12章总体脚本工作流程,终止文件和合并数据结果
第13章创建Windows Server扫描脚本和执行后清理

请登录以查看全部内容 登录

此内容查看价格为8积分(VIP免费),请先
打赏
未经允许不得转载:finelybook » Enterprise PowerShell Scripting Bootcamp

评论 抢沙发

觉得文章有用就打赏一下

您的打赏,我们将继续给力更多优质内容

支付宝扫一扫

微信扫一扫