Microsoft. Jump Start. M3: Managing Windows Server 2012 by Using Windows PowerShell 3.0

Similar documents
Acknowledgments Finding Your Way Around Windows PowerShell p. 1 Getting Started with Windows PowerShell p. 3 Installing Windows PowerShell p.

POWERSHELL (& SHAREPOINT) This ain t your momma s command line!

PowerShell for Exchange Admins

SUNGARD SUMMIT 2007 sungardsummit.com 1. Microsoft PowerShell. Presented by: Jeff Modzel. March 22, 2007 Course ID 453. A Community of Learning

WolfTech Active Directory: PowerShell

Forefront Management Shell PowerShell Management of Forefront Server Products

Microsoft Windows PowerShell v2 For Administrators

Windows PowerShell Fundamentals

Jeffrey Snover Distinguished Engineer & Lead Architect Jason Helmick Senior Technologist, Concentrated Technology

Exploring PowerShell. Using Windows PowerShell

Windows PowerShell. 3.0 Step by Step. Ed Wilson

Automating Microsoft

Windows Server 2008 R2: What's New in Active Directory

Things I wish I d known when I started using PowerShell

Windows Server 2008 R2: Server Management and PowerShell V2

Powershell Management for Defender

Microsoft. Jump Start. M11: Implementing Active Directory Domain Services

Windows PowerShell Cookbook

WELCOME TO TECH IMMERSION

You Should Be Using PowerShell Aaron Kaiser Senior Technology Support Specialist Parkway School District

Lab Answer Key for Module 1: Installing and Configuring Windows Server Table of Contents Lab 1: Configuring Windows Server

Intel vpro Technology Module for Microsoft* Windows PowerShell*

ActiveRoles Management Shell for Active Directory

Active Directory Deployment and Management Enhancements

Track User Password Expiration using Active Directory

Using Windows PowerShell to Manage SharePoint 2010

Avatier Identity Management Suite

Click Studios. Passwordstate. Password Discovery, Reset and Validation. Requirements

Microsoft IT Camp Hands-On Lab

Virtualization Hyper-V host scale and scale-up workload support

Hands-On Lab. Lab 01: Getting Started with SharePoint Lab version: Last updated: 2/23/2011

# Demo: jak to działa?

Lab Sample Solutions. Chapter 3

Introduction to PowerShell by Guy Thomas

POWERSHELL FOR NEWBIES Getting started with PowerShell 4.0. Jeffery Hicks

Windows PowerShell Essentials

How to Create a Delegated Administrator User Role / To create a Delegated Administrator user role Page 1

Partie Serveur Lab : Implement Group Policy. Create, Edit and Link GPOs. Lab : Explore Group Policy Settings and Features

In addition to their professional experience, students who attend this training should have technical knowledge in the following areas.

DEPLOYMENT GUIDE DEPLOYING F5 AUTOMATED NETWORK PROVISIONING FOR VMWARE INFRASTRUCTURE

PowerShell for Dummies

Automating. Administration. Microsoft SharePoint with Windows. PowerShell 2.0. Gary Lapointe Shannon Bray. Wiley Publishing, Inc.

Intel vpro Technology Module for Microsoft* Windows* PowerShell* Revision March 2012 Document ID: 1057

Active Directory in Windows Server 2008 R2: What s New?

Outline SSS Microsoft Windows Server 2008 Hyper-V Virtualization

WHITE PAPER POWERSHELL FOR DUMMIES HOW TO KEEP TRACK OF

VMware vsphere PowerCLI User's Guide

Unidesk 3.0 Script to Increase UEP Size for Persistent Desktops

Configuring MDaemon for High Availability

GALSYNC V7.0. Manual. NETsec. NETsec GmbH & Co.KG Schillingsstrasse 117 DE Düren. 01. June 2016

PowerShell 3.0 Advanced Administration Handbook

Troubleshoot Using Event Log Mining

Step by step guide for installing highly available System Centre 2012 Virtual Machine Manager Management server:

About This Document 3. Integration and Automation Capabilities 4. Command-Line Interface (CLI) 8. API RPC Protocol 9.

Clearswift SECURE Exchange Gateway Installation & Setup Guide. Version 1.0

5/13/2009. Dejan Foro Speaker

32-Bit Workload Automation 5 for Windows on 64-Bit Windows Systems

vsphere Auto Deploy Update 1 ESXi 5.0 vcenter Server 5.0 EN

6422: Implementing and Managing Windows Server 2008 Hyper-V (3 Days)

DiskPulse DISK CHANGE MONITOR

A layman s guide to PowerShell 2.0 remoting. Ravikanth Chaganti

User's Guide - Beta 1 Draft

Windows" 7 Desktop Support

Installing and Configuring Windows Server 2012

Create user mailboxes

10215A Implementing and Managing Microsoft Server Virtualization

A PowerShell Module for Hyper-V

During your session you will have access to the following lab configuration.

Designing a Windows Server 2008 Active Directory Infrastructure and Services

Dell NetVault Backup Plug-in for Hyper-V User s Guide

11.1. Performance Monitoring

Using Windows PowerShell with AD RMS... 7 About this guide... 7 In this guide... 7

Lesson Plans Configuring Exchange Server 2007

70-417: Upgrading Your Skills to MCSA Windows Server 2012

The Windows PowerShell Owner s Manual: Version 2.0. Jean Ross and Greg Stemp Microsoft Communications Server UA

A Crash Course on UNIX

Ipswitch Client Installation Guide

Implementing and Managing Microsoft Server Virtualization

Installing and Configuring Windows Server 2012

SPHOL205: Introduction to Backup & Restore in SharePoint Hands-On Lab. Lab Manual

Good Morning Wireless! SSID: MSFTOPEN No Username or Password Required

The Exchange Management Shell

ActiveRoles Management Shell for Active Directory

Getting Started w/azure & PowerShell. March 23, 2014

VT Technology Management Utilities for Hyper-V (vtutilities)

How to Back Up and Restore a Dynamics NAV 2015 Database Using SQL and PowerShell:

Copyright

PoSHServer Documentation AUTHOR: YUSUF OZTURK (MVP)

Active Directory Friday: All Articles. Jaap Brasser

Implementing and Managing Windows Server 2008 Hyper-V

Authoring for System Center 2012 Operations Manager

vtcommander Installing and Starting vtcommander

IBM Sterling Control Center

Administration Guide. BlackBerry Resource Kit for BES12. Version 12.3

Windows Command-line Automation Techniques for Dell EqualLogic PS Series Arrays

Scheduling in SAS 9.4 Second Edition

List of FTP commands for the Microsoft command-line FTP client

WHITE PAPER BT Sync, the alternative for DirSync during Migrations

Scheduling in SAS 9.3

Transcription:

Microsoft Jump Start M3: Managing Windows Server 2012 by Using Windows PowerShell 3.0 Rick Claus Technical Evangelist Microsoft Ed Liberman Technical Trainer Train Signal

Jump Start Target Agenda Day One Day 1 Day 2 Module 1: Installing and Configuring Servers Based on Windows Server 2012 Module 2: Monitoring and Maintaining Windows Server 2012 Module 3: Managing Windows Server 2012 by Using PowerShell 3.0 - MEAL BREAK - - MEAL BREAK - Module 4: Managing Storage for Windows Server 2012 Module 5: Implementing Network Services Module 7: Implementing Failover Clustering Module 8: Implementing Hyper-V Module 9: Implementing Failover Clustering with Hyper-V Module 10: Implementing Dynamic Access Control Module 11: Implementing Active Directory Domain Services Module 6: Implementing Direct Access Module 12: Implementing Active Directory Federation Services

Module Overview Overview of Windows PowerShell 3.0 Using PowerShell 3.0 to Manage AD DS Managing Servers by Using PowerShell 3.0

What Is Windows PowerShell? An object-based management environment An engine that enables administrators to: Create automation scripts Perform batch modifications Access unavailable settings Provides a foundation upon which the GUI-based administrative tools of Microsoft can rest: Actions can be accomplished in its command-line console Actions can be invoked within GUIs by running PowerShell commands in the background

Windows PowerShell Syntax Verb-Noun pair naming is as follows: Verb Noun Cmdlet Get EventLog Get-EventLog Set ExecutionPolicy Set-ExecutionPolicy New VM New-VM Use cmdlet parameters to modify actions and provide configuration information. Parameters include: Named. -EventLog System, -UserName John Switch. -Verbose, -Debug, -Confirm Positional. Get-EventLog System Get-EventLog LogName System Common parameters: -WhatIf, -Debug, -Verbose, -Confirm

Cmdlet Aliases You can use aliases for: Backward compatibility Shorten scripts Easier discoverability Common Aliases: cd -> Set-Location dir -> Get-Child-Item ls -> Get-Child-Item copy -> Copy-Item kill -> Stop-Process rm -> Remove-Item type -> Get-Content help -> Get-Help

DEMO: Using the Windows PowerShell ISE In this demonstration, you will use the Windows PowerShell Integrated Scripting Environment (ISE)

Accessing Help in Windows PowerShell To access the Help documentation, run Get-Help or the alias help followed by the cmdlet name: Get-Help has parameters to adjust the amount of help displayed. The parameters are: -detailed -examples -full -online Get-Help Get-EventLog Get-EventLog -help Other cmdlets that you can use for accessing help: Update- Help, Show-Command, Get-Command, and tab completion

Using Windows PowerShell Modules Windows PowerShell is extended through modules You can import modules by using the Import-Module cmdlet: Import-Module Hyper-V You can list loaded modules by running the following command: Get-Module Modules can be of the following types: Script Binary

What Is Windows PowerShell Remoting? The purpose of Windows PowerShell remoting is to: Connect to a remote computer Run one or more commands on that computer Bring those results back to your computer The goals of Windows PowerShell remoting are: Single-seat administration Batch administration Lightweight administration Run Command The three ways to use Windows PowerShell remoting are: Local 1-to-1 Remoting 1-to-Many (or Fan-Out) Remoting Many-to-1 (or Fan-In) Remoting Remote

What Is New in Windows PowerShell 3.0? Windows PowerShell 3.0 improvements include: Over 260 core cmdlets Management of all Windows Roles and Features Windows PowerShell Workflow Windows PowerShell Web Access Scheduled Jobs Enhanced Online Help ISE Autosense Robust Session Connectivity

Using the Active Directory Module for Windows PowerShell The Active Directory PowerShell Module included in Windows Server 2012, provides over 130 cmdlets for managing Active Directory objects, such as: Computer Accounts User Accounts Service Accounts Groups Organizational Units Replication Trusts Central Access Policies Password Polices

Using Windows PowerShell Variables A variable is a temporary holding place in memory for a value, object, or collection of objects Variables are named, and their names are preceded with a dollar sign $ADDS = Get-ADDomain

The Windows PowerShell Pipeline Used to connect the output from one cmdlet to the input of another cmdlet The combination of the first cmdlet, pipe, and second cmdlet makes a pipeline Process Object Get-ADUser Cmdlet Get-ADUser Filter * Pipe Enable-ADAccount Enable ADAccount Cmdlet

Options for Formatting Windows PowerShell Output Cmdlets for Formatting Output Format-Wide (FW) Format-Table (FT) Format-List (FL) Format-Custom (FC) Cmdlets for Manipulating Output Measure-Object (measure) Sort-Object (sort) Select-Object (select) Where-Object (where)

Creating and Running Windows PowerShell Scripts Execution policy restricts script execution, the execution policies include: Restricted AllSigned RemoteSigned Unrestricted Bypass Scripts are text files with a.ps1 extension Scripts contain one or more commands that you want the shell to execute in order Scripts, when run, require a relative or full path to be specified:.\get-latestlogon.ps1 E:\Mod03\Democode\Get-LatestLogon.ps1

Using Windows PowerShell Loops and Conditional Expressions foreach ($user in $group){ write-host $user is in $group} if ($Today.DayOfWeek = Monday ) { write-host Today is Monday } while ($i -ne 25) {write-host $i is not 25 } for ($i=1; $i < 25; $i++) { write-host $i is not 25 }

DEMO: Managing AD DS by Using PowerShell In this demonstration, you will manage AD DS by using Windows PowerShell

Active Directory Administrative Center Integration with Windows PowerShell Allows management of user accounts, computer accounts, groups, and organizational units Provides a Windows PowerShell history of all commands used Is a Windows PowerShell learning tool

Discussion: The Need for Windows PowerShell for Server Management I <3 PS: c:\users\administrator I <3 PS: c:\users\administrator

What Is Windows PowerShell Web Access? Organization Network Organization Perimeter Network Target 1 Internet Windows PowerShell Web Access Gateway Target 2. Target n

What Are Windows PowerShell Jobs? Background Jobs: Enable extended tasks to be performed in the background Perform tasks on a number of remote servers Scheduled Jobs: Registered background jobs that can run on a schedule Triggers are created to define schedule

Introduction to Windows PowerShell Workflow Enables automating long-running and complex activities Enables automating multiple server management and application provisioning Enables processes to be resumed, paused, and restarted Created by using Windows PowerShell or Visual Studio Workflow Designer Windows Server 2012 includes over 60 predefined workflows

Quick Review What happens if you try to run an unsigned script that you have created locally and the execution policy is set to RemoteSigned? When a user that is not authorized attempts to logon to Windows PowerShell Web Access, what occurs?