Automating Your Enterprise Application Deployments With PowerShell by Geoff Varosky - SPTechCon
Automating Desktop Management with Windows Powershell V2.0 and Group Policy Management
-
Upload
microsoft-technet -
Category
Technology
-
view
5.284 -
download
6
description
Transcript of Automating Desktop Management with Windows Powershell V2.0 and Group Policy Management
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
19th June 2009
TechNet goes virtual
Virtual ConferenceExperiencePresentation
CLI-310
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
TechNet goes virtual
Automating Desktop Management with Windows PowerShell™ 2.0 and Group Policy Management
Level 300
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
What Will We cover?
• Automating Administrative Tasks• Windows PowerShell 2.0 Cmdlets• Windows PowerShell 2.0 Group Policy
Object Cmdlets
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
Agenda
• Managing the Desktop• Monitoring and Troubleshooting• Automating Group Policy
Management
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
New FeaturesGraphical PowerShellImproved securityPortabilityNew cmdlets Remote execution capability
Active Directory Administration CenterInternet Information Services (IIS)Power management One-to-many remote management using WS-MGMT
Integration
Windows PowerShell 2.0
Improves productivity and controlAccelerates automation of system adminEasy to use Works with existing scriptsCommunity modelOut-GridView
Improved Command-Line Shell and Scripting Language
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
Integrates with Windows
Management Instrumentation
(WMI)
Robust Architecture
Accepts and Returns .NET Framework
Objects
Cmdlets and Integration with .NET
Cmdlets: Single-Function
Tools
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
List Active or Inactive Services
Managing Devices and Services
Start and Stop Services
Navigate the Registry
List Plug and Play Devices
Examine Event Logs
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
The Windows PowerShell Graphical Interfaces
Integrated developmen
t environment
Multi-tabbed interface
Syntax coloring
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
Windows PowerShell on Remote Computers
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
Demonstration Environment
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
• Administer a Server Remotely
• View Information About Files and Folders on Remote Computers
• Work with Files and Folders on Remote Computers
Demonstration: Managing the Desktop
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
Agenda
• Managing the Desktop• Monitoring and Troubleshooting• Automating Group Policy
Management
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
Network Problems
Lack of Disk Space
CPU Spikes
Troubleshooting Windows 7
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
Support Tools
Reliability MonitorResource MonitorWindows Recovery EnvironmentSystem Restore Problem Steps Recorder
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
Reliability Monitor
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
Improvements in System Restore
External Hard Disk
System Restore Points
System Restore
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
• Monitor Computers using Windows PowerShell
• User Windows PowerShell for System Restore
Demonstration: Monitoring and Troubleshooting
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
Agenda
• Managing the Desktop• Monitoring and Troubleshooting• Automating Group Policy
Management
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
Scripting Group Policy
Challenges• Group Policy Management Center had API to
automate management of Group Policy objects• Difficult for non-developers to use
Windows PowerShell for Group Policy
• Logon, Logoff, Startup, Shutdown• Full life cycle of cmdlets• Configure registry
Customer Value• Reduces time and risk of error• Fulfills requests for new scenarios
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
Command Line Examples
• Backup-GPO –all –path ‘C:\BackupFiles\’Back up all GPOs in current domain to
directory
• Get-GPResultantSetofPolicy -ReportType -html -Path D:\ConfigDocuments\Reports\
Get RSOP for local computer and logged on user in html form
• Copy-GPO -SourceName TestGpo1 -SourceDomain test.contoso.com TargetName TestGpo1 -TargetDomain sales.contoso.com
Copy a GPO across domains
• $domain = get-ADDomain test.contoso.com• new-gplink -name testgpo -target $domain -
enforced yes
Link a GPO to a different domain
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
• Create New Group Policy Objects
• Use Group Policy Cmdlets
Demonstration: Automating Group Policy Management
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
Session Summary
• Automating Administrative Tasks
• Windows PowerShell 2.0 Cmdlets
• Windows PowerShell 2.0 Group Policy Object Cmdlets
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
Where to Find More Information?
Visit TechNet at technet.microsoft.com
Also check out TechNet Edge
edge.technet.com
Or just visit http://go.microsoft.com/?
linkid=9662642
for additional information on this
session.
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
For more titles, visithttp://go.microsoft.com/?linkid=9662642
Supporting Publications
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
Course ID Title
6289A First Look: Windows 7 Beta for IT
Professionals
6290A First Look: Windows 7 Beta for IT
Professionals Hands-on Lab
For more training information http://go.microsoft.com/?linkid=9662642
Training Resources
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
Become a Microsoft Certified Professional
• What are MCP certifications?– Validation in performing critical IT
functions.
• Why Certify?– WW recognition of skills gained via
experience.– More effective deployments with reduced
costs
• What Certifications are there for IT Pros?– MCTS, MCITP.
www.microsoft.com/certification
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.
Microsoft TechNet Plus
TechNet Plus is an essential premium web-enabled and live support resource that provides IT Professionals with fast and easy access to Microsoft experts, software and technical information, enhancing IT productivity, control and planning.
Evaluate & Learn Plan & Deploy Support & Maintain
Use the TechNet Library to plan for deployment using the Knowledge Base, resource kits, and technical training
Use exclusive tools like System Center Capacity Planner to accurately plan for and deploy Exchange Server and System Center Operations Manager
2 complimentary Professional Support incidents for use 24/7 (20% discount on additional incidents)
Access over 100 managed newsgroups and get next business day response--guaranteed
Use the TechNet Library to maintain your IT environment with security updates, service packs and utilities
Get all these resources and more with a TechNet Plus subscription.For more information visit: technet.microsoft.com/subscriptions
Evaluate full versions of all Microsoft commercial software for evaluation—without time limits. This includes all client, server and Office applications.
Try out all the latest betas before public release
Keep your skills current with quarterly training resources including select Microsoft E-Learning courses
Click to edit Master title style
TechNet goes virtual©2009 Microsoft Corporation. All Rights Reserved.