Cover image for PowerShell 3.0 Advanced Administration Handbook.
PowerShell 3.0 Advanced Administration Handbook.
Title:
PowerShell 3.0 Advanced Administration Handbook.
Author:
Talaat, Sherif.
ISBN:
9781849686433
Personal Author:
Physical Description:
1 online resource (431 pages)
Contents:
PowerShell 3.0 Advanced Administration Handbook -- Table of Contents -- PowerShell 3.0 Advanced Administration Handbook -- Credits -- About the Authors -- Acknowledgement -- Acknowledgement -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Instant Updates on New Packt Books -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. Getting Started with PowerShell -- Working with pipelines -- Viewing the object structure -- Using format cmdlets to change the output view -- Using cmdlets to redirect data -- Variables and objects -- Using variables to store objects -- Getting CIM objects -- Listing CIM classes -- Displaying details of the CIM classes -- Creating .NET and COM objects -- Looping and flow control -- Comparison and logical operators -- Conditional statements -- Using switches to manage large conditional statements -- Repeat operations with loops -- The for statement -- The foreach statement -- Nested loops -- Lists, arrays, and hash tables -- Operating script block -- Defining script blocks -- Passing parameters and returning values -- Functions -- Scripts -- Creating scripts -- Invoking scripts -- Passing parameters -- Return values -- Developing and maintaining script libraries -- Discovering what's new in Windows PowerShell 3.0 -- Windows PowerShell Web Access (PSWA) -- How PSWA works -- Installing and configuring Windows PowerShell Web Access -- Step 1 - installing the Windows PowerShell Web Access Windows feature -- Step 2 - configuring Windows PowerShell Web Access Gateway -- Step 3 - configuring the PowerShell Web Access authorization rules.

Signing in to PowerShell Web Access -- Auto-loading of modules -- Online and updatable Help -- Scheduled jobs -- The Show-Command cmdlet -- Integrated Scripting Environment (ISE) -- IntelliSense -- Script snippets -- How to use snippets -- How to create/add new snippets -- Add-on tools -- Autosave and restart manager -- PowerShell remoting -- Disconnected session -- Remoting on a public network -- The custom session configuration file -- Windows PowerShell Workflow (PSW) -- Creating a workflow using PowerShell -- Controlling PowerShell Workflow execution -- Summary -- 2. Developing Snap-ins for PowerShell -- Creating a PowerShell snap-in -- Writing a PowerShell snap-in -- Creating a new class library project -- Creating a PowerShell installer class -- Creating a class file to include several PowerShell cmdlets -- Declaring cmdlet parameters -- Declaring parameter sets -- Validating the parameter inputs -- Validating the argument set -- Validating the argument range -- Validating the argument pattern -- Validating the argument length -- Validating the argument count -- Overriding methods -- Registering and removing a PowerShell snap-in -- Registering and removing snap-in in PowerShell 1.0 -- Registering and removing a snap-in in PowerShell 3.0 -- Listing and executing cmdlets in a PowerShell snap-in -- Debugging a PowerShell snap-in -- Summary -- 3. Using PowerShell Remoting -- An overview of PowerShell remoting -- Enabling/disabling remoting -- Operating PowerShell in a no-domain environment -- Setting the network location to Private -- Enable PSRemoting -- Configuring WSMan trusted hosts -- Configuring PowerShell remoting on a domain using Group Policy -- Allowing remote server management through WinRM -- Allowing Windows Remote Management through Windows Firewall -- Turning on Service Windows Remote Management (WS-Management).

Doing a Group Policy Update -- Disabling remoting -- Executing the remoting commands -- Running ScriptBlock on a remote computer -- Creating a persistent session with Invoke-Command -- Running remote commands as a job -- Specifying credentials required for remoting -- Entering an interactive remoting session -- Exiting an interactive session -- Using a persistent session with interactive remoting -- Starting interactive remoting with an existing session -- Disconnecting and reconnecting sessions -- Saving a remote session to a disk -- Exporting a remote session to a module on a disk -- Importing a module saved on a disk -- Limitations of Export-PSSession -- Using session configurations -- Creating a new session configuration -- Listing available session configurations -- Custom permissions and PS session configurations -- Invoking a custom session configuration -- Disabling a session configuration -- Deleting a session configuration -- Summary -- 4. Extending Windows PowerShell -- Introduction to Windows PowerShell modules -- PowerShell module types -- Script modules -- Binary modules -- Manifest modules -- Dynamic modules -- The PSModulePath environment variable -- Viewing the PSModulePath variable -- Adding locations to the PSModulePath variable -- Importing PowerShell modules -- Removing PowerShell modules -- Reloading PowerShell modules -- Writing a PowerShell module -- Creating script modules -- Binary modules -- Manifest modules -- Dynamic modules -- Storing modules on a disk -- Working with multiple versions of modules -- Checking PowerShell module dependencies -- Signing PowerShell modules -- Execution policies -- Changing the execution policy -- Script signing background -- Setting up a self-signed certificate -- Signing a module -- Summary -- 5. Managing Core Infrastructure with PowerShell.

Preparing the operating system for first time use -- Task 1 - changing the computer name -- Task 2 - changing the time zone settings -- Task 3 - setting the Network Interface Card (NIC) configuration -- Task 4 - managing Windows Server roles and features -- Example 1 -- Example 2 -- Deploying the Active Directory Domain Services (ADDS) role -- Scenario 1 - installing a new Active Directory Forest -- Scenario 2 - installing a new domain in an existing forest -- Scenario 3 - installing a new domain controller in an existing domain -- Managing and configuring the Domain Name System (DNS) role -- Task 1 - configuring DNS server resource records -- Task 2 - creating primary forward and reverse lookup zones -- Task 3 - adding a DNS server forwarder -- Task 4 - exporting DNS server zones -- Deploying and configuring the Dynamic Host Configuration Protocol (DHCP) role -- Task 1 - installing the DHCP server role -- Task 2 - setting up the DHCP server scope -- Task 3 - configuring DHCP scope options -- Task 4 - configuring DHCP scope exclusion -- Task 5 - configuring DHCP scope reservations -- Task 6 - authorizing the DHCP server in Active Directory -- Managing Windows Firewall -- Task 1 - enabling or disabling Windows Firewall profiles -- Task 2 - creating Windows Firewall rules -- Example 1 -- Example 2 -- Using the Best Practice Analyzer (BPA) -- Task 1 - displaying the list of best practice models -- Task 2 - invoking a best practice model -- Task 3 - showing the best practice model result -- Summary -- 6. Managing Active Directory with PowerShell -- Active Directory-related concepts -- Introduction to Active Directory -- Namespace -- Object -- Container -- Trees -- Domain -- Installing an Active Directory Domain Service (ADDS) -- New AD server roles in Windows 2012 -- Active Directory Certificate Services -- Active Directory Domain Services.

Active Directory Lightweight Directory Services -- Active Directory Rights Management Services -- Managing Active Directory with PowerShell -- Account management -- User management -- Creating an AD User -- Setting a user account to Expire -- Forcing a user to change the password at the next login -- Preventing users from changing the password -- Computer management -- Joining a computer to a domain -- Renaming a computer -- Group management -- Viewing group permissions -- Creating a group -- Adding and removing members of a group -- Organizational unit management -- Creating a new organizational unit -- Listing organizational units -- Renaming an organizational unit -- Modifying an organizational unit -- Moving an organizational unit -- Deleting an organizational unit -- Domain controller management -- Finding a domain controller -- Finding a domain controller's site -- Finding the global catalog servers in a forest -- Summary -- 7. Managing the Server with PowerShell -- Working with Server Manager cmdlets -- Adding roles or features by using PowerShell -- Advantages of PowerShell cmdlets for Server Manager -- Managing networking using PowerShell -- Managing Group Policy with PowerShell -- Importing a GroupPolicy module -- Creating GPOs with PowerShell -- Managing IIS with PowerShell -- Creating a new website -- Modifying IIS binding -- Creating an FTP site -- Creating a virtual directory -- Creating a WebAppPool -- Backing up and restoring WebConfiguration -- Managing a DNS server using PowerShell -- Managing Hyper-V with PowerShell -- Installing Hyper-V on Windows Server 2012 -- Creating a virtual machine -- Starting and stopping a virtual machine -- Modifying a virtual machine -- Operating a virtual machine snapshot -- Managing AppLocker with PowerShell -- Importing the AppLocker PowerShell module -- Retrieving application information.

Retrieving an AppLocker policy.
Abstract:
This book is a collection of selected real-world scenarios, detailed solutions, and screenshots.If you are a system administrator who wants to automate repeated daily tasks and perform complex administration requirements in a timely manner with less effort, then this is the book for you.In order to get the maximum benefit of this book you need to have some basic scripting knowledge and good administration experience.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: