Appendix A Starting Out with Windows PowerShell™ 2.0.

Slides:



Advertisements
Similar presentations
IP ADDRESS MANAGEMENT [IPAM]
Advertisements

Week 6: Chapter 6 Agenda Automation of SQL Server tasks using: SQL Server Agent Scheduling Scripting Technologies.
Lesson 17: Configuring Security Policies
Module 5: Creating and Configuring Group Policy
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 9: Implementing and Using Group Policy.
11.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
Hands-On Microsoft Windows Server 2003 Administration Chapter 4 Managing Group Policy.
9.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
10.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 9: Implementing and Using Group Policy.
Clyde G. Johnson.  Test Environment  Tools of the trade  Demo  Central Store  Show  Group Policy Spreadsheets  Demo  Planning and Deployment.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 10: Server Administration.
Lesson 16: Creating Group Policy Objects
Lesson 2: Configuring Servers
7.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 7: Introducing Group Accounts.
Maintaining and Updating Windows Server 2008
Technical Overview. PLEASE READ (hidden slide) To deliver this presentation effectively, you need to be familiar with Windows Server 2008 R2 management.
Check Disk. Disk Defragmenter Using Disk Defragmenter Effectively Run Disk Defragmenter when the computer will receive the least usage. Educate users.
1 Chapter Overview Creating User and Computer Objects Maintaining User Accounts Creating User Profiles.
Configuring Task Scheduler Lesson 9. Skills Matrix Technology SkillObjective Domain SkillDomain # Understanding Task Scheduler Configure and manage the.
Guide to MCSE , Enhanced 1 Activity 10-1: Restarting Windows Server 2003 Objective: to restart Windows Server 2003 Start  Shut Down  Restart Configure.
Guide to MCSE , Second Edition, Enhanced 1 Objectives Understand and use the Control Panel applets Describe the versatility of the Microsoft Management.
9.1 © 2004 Pearson Education, Inc. Lesson 9: Implementing Group Policy in Windows 2000 Server Exam Microsoft® Windows® 2000 Directory Services Infrastructure.
9.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
Corso referenti S.I.R.A. – Modulo 2 07 – Group Policy 20/11 – 27/11 – 05/12 11/12 – 13/12 (gruppo 1) 12/12 – 15/12 (gruppo 2) Cristiano Gentili, Massimiliano.
Introduction to Group Policy
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 9: Implementing and Using Group Policy.
6.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 6: Administering User Accounts.
5.1 © 2004 Pearson Education, Inc. Lesson 5: Administering User Accounts Exam Microsoft® Windows® 2000 Directory Services Infrastructure Goals 
Module 10: Configuring Windows XP Professional to Operate in Microsoft Networks.
Section 2: Using Group Policy Management Tools Local vs. Domain Policies Editing Local Policies Managing Domain Policies Understanding Group Policy Refresh.
Microsoft ® Official Course Module XA Using Windows PowerShell ®
Module 15: Manage the Windows ® Small Business Server 2008 Environment Using Group Policy.
Section 1: Introducing Group Policy What Is Group Policy? Group Policy Scenarios New Group Policy Features Introduced with Windows Server 2008 and Windows.
Module 7: Fundamentals of Administering Windows Server 2008.
20411B 8: Installing, Configuring, and Troubleshooting the Network Policy Server Role Presentation: 60 minutes Lab: 60 minutes After completing this module,
Chapter 13 Users, Groups Profiles and Policies. Learning Objectives Understand Windows XP Professional user accounts Understand the different types of.
Module 9: Preparing to Administer a Server. Overview Introduction to Administering a Server Configuring Remote Desktop to Administer a Server Managing.
Module 6: Implementing Group Policy. Overview Implementing Group Policy Objects Implementing GPOs in a Domain Managing the Deployment of Group Policy.
Introduction to Microsoft Management Console (MMC) MMC is a common console framework for management applications. MMC provides a common environment for.
Implementing Group Policy. Overview What is Group Policy Introduction to Group Policy Group Policy Structure How Group Policy Settings Are Applied in.
Section 5: Troubleshooting and Backing Up GPOs Using Group Policy Troubleshooting Tools Integration of RSoP Functionality Using Logging Options Backing.
Page 1 System and Group Policies Lecture 7 Hassan Shuja 11/02/2004.
Troubleshooting Security Issues Lesson 6. Skills Matrix Technology SkillObjective Domain SkillDomain # Monitoring and Troubleshooting with Event Viewer.
CN1276 Server Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
Module 5: Creating and Configuring Group Policies.
Module 4 Planning for Group Policy. Module Overview Planning Group Policy Application Planning Group Policy Processing Planning the Management of Group.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Lesson 12: Configuring Remote Management
Corey Hynes HynesITe, Inc Session Code: SRV317 Objectives Let you walk out of here, being able to run a script against an OU of computers, to make some.
Module 8: Managing Software Distribution. Collections Packages Programs Advertisements Collections Packages Programs Advertisements How Software.
Implementing Group Policy
Week 4 Objectives Overview of Group Policy Group Policy Processing Implementing a Central Store for Administrative Templates.
Implementing a Group Policy Infrastructure
11 INTRODUCTION TO GROUP POLICY Chapter 7. Chapter 7: INTRODUCTION TO GROUP POLICY2 WHAT CAN YOU DO WITH GROUP POLICY?  Control the user environment.
Module 6 Creating and Configuring Group Policy. Module Overview Overview of Group Policy Configuring the Scope of Group Policy Objects Evaluating the.
Module 14: Advanced Topics and Troubleshooting. Microsoft ® Windows ® Small Business Server (SBS) 2008 Management Console (Advanced Mode) Managing Windows.
10.1 © 2004 Pearson Education, Inc. Lesson 10: Specifying Group Policy Settings Exam Microsoft® Windows® 2000 Directory Services Infrastructure.
Windows Server 2003 群組原則設定與管理 林寶森
Managing Servers Lesson 10. Skills Matrix Technology SkillObjective DomainObjective # Using Remote DesktopPlan server management strategies 2.1 Delegating.
Maintaining and Updating Windows Server 2008 Lesson 8.
Unit 8 NT1330 Client-Server Networking II Date: 2?10/2016
1.1 Microsoft® Windows® 2003 Server Group Policy Management Prof. Abdul Hameed.
Introduction to Group Policy Lesson 7. Group Policy Group Policy is a method of controlling settings across your network. – Group Policy consists of user.
Module 9: Preparing to Administer a Server
Preparing for the Windows 8.1 MCSA
Working in the Forms Developer Environment
Deploying and Configuring SSIS Packages
Introduction to Group Policy
Module 9: Preparing to Administer a Server
Presentation transcript:

Appendix A Starting Out with Windows PowerShell™ 2.0

Appendix Overview Introduction to Windows PowerShell™ 2.0 Windows PowerShell 2.0 Remoting Using Windows PowerShell Cmdlets for Group Policy

Lesson 1: Introduction to Windows PowerShell 2.0 Overview of Windows PowerShell Enhancements in Windows PowerShell 2.0 Cmdlets in Windows PowerShell 2.0 What is Windows PowerShell Eventing? Overview of the Windows PowerShell 2.0 Integrated Scripting Environment (ISE) Using the Windows PowerShell ISE Editor

Overview of Windows PowerShell The.NET ™ framework is leveraged and provides access to thousands of objects. Windows PowerShell 2.0 is included with Windows® 7 and supports existing scripts and command-line tools. Cmdlets are available for performing common system and administration tasks. Windows PowerShell 2.0 accepts and returns.NET objects which can be directly manipulated or sent to other tools or databases. An extensible interface enables enterprise developers to build custom tools and utilities to administer their software.

New Features in Windows PowerShell 2.0 Hundreds of cmdlets Remote management supports 1:1, 1:many, and many:1 administration Integrated Scripting Environment (ISE) includes a built-in debugger Background jobs run asynchronously on local or remote computer Debugger helps troubleshoot functions and scripts Modules help organize scripts and functions Transactions enable managing commands as a logical unit Event infrastructure Script internationalization Get-Help cmdlet accesses Microsoft® TechNet providing online Help

Cmdlets in Windows PowerShell 2.0 Cmdlets Common actions: Get cmdlets retrieve data Set cmdlets establish or change data Format cmdlets format data Out cmdlets direct output to a specified destination Combine cmdlets to make multiple actions Cmdlet Parameters Common parameters: Provide a consistent interface to Windows PowerShell Use of the parameter does not cause an error The parameter might not have any effect in some cmdlets For a description of common parameters, type: “get-help about_commonparameters” Optional parameters: Use by typing a parameter value without typing the parameter name Names appear in square brackets: Get-Help [[-Name] ]

What is Windows PowerShell Eventing? Eventing is the immediate notification of important actions or events. Windows PowerShell 2.0 supports eventing by listening, acting on, and forwarding management and system events. When registering for an event through remoting, event notifications can be automatically forwarded to a central computer. Windows PowerShell scripts can respond synchronously or asynchronously to system events.

Overview of the Windows PowerShell 2.0 Integrated Scripting Environment (ISE) The ISE enables you to run commands and design, write, test, and debug scripts in a Windows GUI Command pane Output pane Script pane Multiple tabs, each with its own command, output, and script pane

Using the Windows PowerShell ISE Editor Windows PowerShell ISE Profile  ISE has its own Windows PowerShell profile, Microsoft.PowerShell_ISE_profile.ps1  You can store functions, aliases, variables, and commands that you use in Windows PowerShell ISE in this profile Start the Windows PowerShell ISE: From the Start menu, point to All Programs, point to Windows PowerShell 2.0, and then click Windows PowerShell ISE. In the Windows PowerShell console, type “Cmd.exe”, or in the Run box, type “powershell_ise.exe”. Start the Windows PowerShell ISE: From the Start menu, point to All Programs, point to Windows PowerShell 2.0, and then click Windows PowerShell ISE. In the Windows PowerShell console, type “Cmd.exe”, or in the Run box, type “powershell_ise.exe”. Customize the Windows PowerShell ISE by: Moving and resizing the Command pane, Output pane, and Script pane Showing or hiding the Script pane Changing the text size in all panes of Windows PowerShell ISE Customize the Windows PowerShell ISE by: Moving and resizing the Command pane, Output pane, and Script pane Showing or hiding the Script pane Changing the text size in all panes of Windows PowerShell ISE You can run any Windows PowerShell expression or command in Windows PowerShell ISE

Lesson 2: Remoting with Windows PowerShell 2.0 Overview of Windows PowerShell 2.0 Remoting Connecting to a Remote Computer How Remote Commands are Processed Running Remote Commands

Overview of Windows PowerShell Remoting Two types of remoting:  Fan-out remoting: provides one-to-many remoting to run scripts across multiple computers from a single console  One-to-one interactive remoting: provides the ability to remotely troubleshoot a specific computer Remoting features of Windows PowerShell are built on Windows Remote Management (WinRM) Run an individual command, or create a persistent connection or session to run a series of commands Remote administration is also known as remoting

Connecting to a Remote Computer Two ways to create a connection to a remote computer: Create a temporary connection You can start an interactive session by using the Invoke-Command cmdlet with the ComputerName parameter. A temporary connection is created for the command and closes the connection when the command completes. Create a persistent connection Open a new Windows PowerShell session (PSSession) on the remote computer, then connect to the computer and enter the session. - The New-PSSession cmdlet creates the PSSession. - The Enter-PSSession cmdlet connects you to the PSSession. You can run as many commands as desired during the session. You must manually close the PSSession by using the Exit-PSSession cmdlet.

How Remote Commands are Processed 1. Local computer sends the Windows PowerShell command to the remote computer using the WinRM protocol 2. Command runs in Windows PowerShell on the remote computer 3. Command results are sent back using the WinRM protocol and appear in Windows PowerShell on the local computer All of the local input to a remote command is collected before any of it is sent to the remote computer. The output is returned to the local computer as it is generated.

Running Remote Commands To run commands in a PSSession:  Use the Session parameter of the Invoke-Command cmdlet to specify the session  Use the ComputerName parameter to retrieve objects from remote computers To run a remote command on multiple computers:  Use the Invoke-Command for temporary connections and multiple computer names  Use the Session parameter for persistent connections and multiple PSSessions  Type the name of each computer in the ComputerName parameter of the Invoke-Command To run a local script on remote computers  Use the FilePath parameter of the Invoke-Command cmdlet

Lesson 3: Using Windows PowerShell Cmdlets for Group Policy New Cmdlets for Group Policy Administration Group Policy Requirements New Group Policy Settings

New Cmdlets for Group Policy Administration These cmdlets perform tasks for domain-based GPOs:  Maintain GPOs including GPO creation, removal, backup, and import  Associate GPOs with Active Directory (AD) containers  Set inheritance flags and permissions on AD organizational units and domains  Configure registry-based policy settings and Group Policy Preferences Registry settings  Create and edit Starter GPOs Use Windows PowerShell to automate the management of GPOs and the configuration of registry-based settings

Group Policy settings allow you to specify whether Windows PowerShell scripts run before non-Windows PowerShell scripts during:  User computer startup and shutdown  User logon and logoff By default, Windows PowerShell scripts run after non- Windows PowerShell scripts. To use Group Policy cmdlets, run one of the following:  Windows Server® 2008 R2 on a domain controller or on amember server that has the GPMC installed.  Windows 7 with RSAT installed. RSAT includes the GPMC and itscmdlets. Group Policy Requirements and Settings for Windows PowerShell 2.0