Download presentation
Presentation is loading. Please wait.
Published byPaula Tate Modified over 9 years ago
2
Dan Reger Sr. Product Manager Microsoft WSV319
3
Presentation Outline (hidden slide): Title: Windows PowerShell and Windows Server 2008 R2 Technical Level: 300 Intended Audience: IT Pro (IT Implementers) Objectives (what do you want the audience to take away from this session): 1. No longer recall original list– and cannot access through speaker portal (tried) 2. 3. Presentation Outline (including demos): Speakers: complete this slide using the session information found at the speaker portal.
4
Scrub Checklist Your final PPT will be scrubbed and posted to CommNet 48-hours prior to the session. Upload your final deck on or before May 6, 2009 at Noon PST. Apply template – backgrounds, colors, positioning, font Verify that required slides are included Remove any non-template logos and graphics from the walk-in slide Correct session title and session code to match session guide Set titles to Title Case and correct widows (widows = single word spilling over to a new line) Replace transition slides with template transition slides Set subtitles to subtitle color, size, and sentence case Correct all type for consistent shadowing Set bullets to template Set software code samples to template code format Correct template application issues as time allows Correct Microsoft product names to follow corporate branding rules Correct misspelled words Remove all comments, hidden slides and speaker notes from slides Set file properties box Set printability in grayscale If time allows, correct slides for readability and consistency If time allows, correct grammar and correct copy to Microsoft style Notify Presentation Manager of any images identified as unlicensed for escalation
6
Agenda Introduction to PowerShell …Within the Context of Management PowerShell Goals and Themes PowerShell 2.0 GUI over PowerShell (Demo) Production Scripting (Demo) Community Feedback Interlude - PowerShellCommunity.org PowerShell 2.0 (continued) Universal Automation Environment Demo – Compellent Technologies
7
Presentation Outline (hidden slide): Title: Windows Server 2008 R2: Streamlined Management Technical Level: 200 Intended Audience: IT Pros Objectives (what do you want the audience to take away from this session): 1. Explain why Manageability is an important investment for Windows Server 2. List the long-term Windows Server Manageability strategy and investment areas 3. Describe the specific manageability improvements planned for Windows Server 2008 R2 Presentation Outline (including demos): Speaker instructions: Complete this slide to assist the Content Team in evaluation your presentation flow, topic coverage, demo integrations, and alignment of content to your session title, abstract, and level.
8
Today’s IT Challenges Increasing demands from the business Reliance on technology for business-critical operations Always-available, anywhere Increasing complexity Adding capabilities adds management burden 80% of IT cost is managing existing systems Trends of the future magnify challenges Move to Datacenters – large scale, virtualization remote management Outsourcing – lower skilled, high turnover users
9
Windows Server 2008 R2 Streamlined Management Scenarios PowerShell: Universal Code Execution Model, GUI over PowerShell, Production Scripting WMI: Discoverability through PS, Profile discovery, CIM update WS-Man: Remote Shell, Support for hosted environments (Web proxy traversal, Federated Auth using Live ID), Hardware Management (out-of-band management in-band with OS), Resource management BITS: Lightweight server PS cmdlets across all! Datacenter Automation Known fact: most customers do not perform in-place upgrade Migration is a complex problem – both from technical and process perspective WS7 – pragmatic approach – focus on understanding the problem and building foundation Goal: consistent documentation across all roles, Stretch: scriptable solution for core roles Lays foundation for more complete and richer solution in the future Server Migration Server Manager creates consistency and enables integration Goal: Further improve Server Manager, adding incremental value Key features: PS cmdlets to add/remove roles/features, remoting, Best Practice Analyzers Incubating next-gen UX – Active Directory User Management Rich Server Management
10
Server Manager & PowerShell Integration Server Manager PowerShell Cmdlets: Get-WindowsFeature Add-WindowsFeature Remove-WindowsFeature Leverages PowerShell features/reach Richer command line experience (auto-completion, wildcards, object pipeline, etc) Remoting Availability on Server Core
11
PowerShell
12
As interactive and composable as BASH/KSH As programmatic as Perl/Python/Ruby As production oriented as AS400 CL/VMS DCL Allows access to data stores as easy to access as filesystem Windows PowerShell New command-line shell and scripting language
13
A taste of PowerShell Using pkgmgr to install Web Server (IIS): start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS- StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS- HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET; IIS-NetFxExtensibility; IIS-ASP;IIS-CGI;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-ServerSideIncludes;IIS- HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor; IIS-HttpTracing;IIS-CustomLogging;IIS-ODBCLogging;IIS-Security;IIS- BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS- ClientCertificateMappingAuthentication;IIS-IISCertificateMappingAuthentication; IIS-URLAuthorization;IIS-RequestFiltering; IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS- HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS- ManagementScriptingTools;IIS-ManagementService;IIS-IIS6ManagementCompatibility; IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts;IIS-LegacySnapIn; IIS-FTPPublishingService;IIS-FTPServer;IIS-FTPManagement;WAS- WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI Or using Server Manager: Add-WindowsFeature web-server OR servermanagercmd –install web-server
14
Exchange 2003 (VBScript)E12 (PowerShell) Mailbox Statistics Set listExchange_Mailboxs = GetObject("winmgmts:{impersonationLevel=impersonate}!\\COMPUTERNAME\ROOT\MicrosoftExch angeV2").InstancesOf("Exchange_Mailbox") For Each objExchange_Mailbox in listExchange_Mailboxs WScript.echo "AssocContentCount =” + objExchange_Mailbox.AssocContentCount WScript.echo " DateDiscoveredAbsentInDS =” + objExchange_Mailbox.DateDiscoveredAbsentInDS WScript.echo " DeletedMessageSizeExtended =” + objExchange_Mailbox. DeletedMessageSizeExtended WScript.echo " LastLoggedOnUserAccount =” + objExchange_Mailbox. LastLoggedOnUserAccount WScript.echo " LastLogoffTime =” + objExchange_Mailbox. LastLogoffTime WScript.echo " LastLogonTime =” + objExchange_Mailbox. LastLogonTime WScript.echo " LegacyDN =” + objExchange_Mailbox. LegacyDN WScript.echo " MailboxDisplayName =” + objExchange_Mailbox. MailboxDisplayName WScript.echo " MailboxGUID =” + objExchange_Mailbox. MailboxGUID WScript.echo " ServerName =” + objExchange_Mailbox. ServerName WScript.echo " Size =” + objExchange_Mailbox. Size WScript.echo " StorageGroupName =” + objExchange_Mailbox. StorageGroupName WScript.echo " StorageLimitInfo =” + objExchange_Mailbox. StorageLimitInfo WScript.echo " StoreName =” + objExchange_Mailbox. StoreName WScript.echo " TotalItems =” + objExchange_Mailbox. TotalItems Next Get-MailboxStatistics –Server $servername Database Mgmt Dim StorGroup as New CDOEXM.StorageGroup StorGroup.DataSource.Open "LDAP://" + DCServer + "/ CN=First Storage Group,CN=InformationStore,CN=" + Server + ",CN=Servers,CN=First Administrative Group, CN=Administrative Groups,CN=First Organization, CN=Microsoft Exchange,CN=Services, CN=Configuration," + DomainName StorGroup.MoveLogFiles("C:\newlogPath", 0) Move-StorageGroupPath -Identity “First Storage Group“ –Log "C:\newlogPath” Recipient Mgmt Dim objMailbox As CDOEXM.IMailboxStore Set objMailbox = GetObject("LDAP://" + DCServer + "CN=FOO,CN=users," + DomainName) objMailbox.CreateMailbox "LDAP://" + DCServer + "/CN=Private MDB,CN=First Storage Group,CN=InformationStore,CN=" + Server + ",CN=Servers,CN=First Administrative Group, CN=Administrative Groups,CN=First Organization, CN=Microsoft Exchange,CN=Services, CN=Configuration," + DomainName Enable-Mailbox -Identity domain\FOO –Database “First Storage Group\Private MDB” More Productivity
15
Tower Of Power PowerShell books Now available in Japanese German French More… 20072008
16
Discovery
17
PowerShell V2 Goals Reduce the cost and effort to: Use PowerShell Get, learn, share scripts Layer applications on PowerShell GUI, web, workflow, etc. Manage anything/everything Servers, clients, distributed systems, applications, web services, cloud services, raw HW, other OSes, everything Using any and all mechanisms (WMI,.Net, native code, web services, WSMAN)
18
PowerShell V2 Themes GUI over PowerShell Production Scripting Universal Automation Environment Community Feedback
19
Datacenter Automation PowerShell GUI over PowerShell Admin GUIs layered over PowerShell Features: Graphical PowerShell, Outgrid View, New Engine APIs, Runspace Pooling, Thread control Server Role coverage: AD Domain Services, AD Lightweight Directory Services, Application Server, Terminal Services, Web Server
20
Datacenter Automation PowerShell Production Scripting: Scripts are easy to use, share and support and safe to operate Features: Script cmdlets, debugger enhancements, restricted language, modules and transactions Universal Code Execution Model: Flexibility over where/how expressions, Commands & ScriptBlocks can run On one or more machines In restricted or unrestricted environments Initiated by user input or by events Features: Remoting, background jobs, eventing, restricted runspaces, mobile object model
21
Object Manipulation and Transforming Output
22
PowerShell Architecture User ExperienceShell Language Debugger EngineAPIs Execution Context Object Mgr Managed ElementsCmdlets WMI COM.NET XML ADO ADSI Native Commands
23
Admin GUIs layer on top of PowerShell CLI & GUI Agility in delivering new GUIs Ensures automation GUI teaches command line Standardizes access to managed elements GUI over PowerShell PowerShell V2 Themes
24
User Experience ShellLanguageDebugger Engine APIsExecution ContextObject Mgr Managed Elements CmdletsWMICOM.NETXMLADOADSINative Commands GUI Over PowerShell: Features Graphical PowerShell Out-GridviewOut-Gridview New APIs PSSession Pooling Thread Control
25
GUI Over PowerShell
26
PowerShell V2 Themes Scripts are Easy to use Safe to operate Easy to share Easy to support Production Scripting
27
User Experience ShellLanguageDebugger Engine APIsExecution ContextObject Mgr Managed Elements CmdletsWMICOM.NETXMLADOADSINative Commands Production Scripting: Features Script Cmdlets Restricted Language ModulesModules Debugger Enhancements TransactionsTransactions Script Cmdlets Native Code
28
Production Scripting
29
PowerShell V2 Themes Respond to community feedback Enhance the language Tweak the engine Add and enhance Cmdlets Community Feedback
30
User Experience ShellLanguageDebugger Engine APIsExecution ContextObject Mgr Managed Elements CmdletsWMICOM.NETXMLADOADSINative Commands Community Feedback: Features Language Enhancements Improved Object Adapters Improved New Cmdlets WMI++WMI++
31
PowerShellCommunity.org Hal Rottenberg Title Company
32
PowerShellCommunity.org Forums Blogs Script Repository User Group Outreach
33
PowerScripting Podcast Hosts: Jonathan Walz & Hal Rottenberg Online at PowerScripting.netPowerScripting.net Weekly dose of News, Resources, Interviews, Tips and more!
34
Virtual User Group Marco Shaw runs a monthly user’s group meeting online using Microsoft Live Meeting Interviews Q&A with experts Check news for upcoming events and Marco’s get-powershellblog (marcoshaw.blogspot.com) get-powershellblog
35
PowerShell Newsgroup Use NNTP server msnews.microsoft.com or web portal Group name: microsoft.public.windows.powershell
36
#powershell IRC Chat Room Freenode IRC network: irc.freenode.net Interactive PowerShell help from experts
37
Microsoft Resources PowerShell Team Blog blogs.msdn.com/powershell blogs.msdn.com/powershell Scripting Guys Script Center microsoft.com/technet/scriptcenter microsoft.com/technet/scriptcenter Hub for official documentation PowerShell Tip of the Week The Windows PowerShell Toolbox Script repository and other goodies
38
Join the Community! LinkedIn: PowerShell Power Users Twitter: #powershell hashtag Facebook: PowerScripting Podcast, Windows Powershell Users, The Scripting Guys
39
And You! We need your participation If you blog about PowerShell, let us know! Get on the forums, newsgroups and chat
40
User Experience ShellLanguageDebugger Engine APIsExecution ContextObject Mgr Managed Elements CmdletsWMICOM.NETXMLADOADSINative Commands Universal Automation Features RemotingRemoting Background Jobs EventingEventing Restricted PSSessions Mobile Object Model
41
Universal Automation Environment Universal Automation Background Jobs and Remoting
42
New Cmdlets (So Far) Remoting: Invoke-Command New-PSSession Get-PSSession Push-PSSession Pop-PSSession Remove-PSSession Converting Types: Add-Type ConvertTo-Csv ConvertFrom-Csv ConvertTo-Xml ConvertFrom-StringData Event Viewer and ETW Logs: Get-Event Script Internationalization: Import-LocalizedData Modules: Imort-Module Get-Module Remove-Module Export-ModuleMember Transactions: Complete-Transaction Start-Transaction Undo-Transaction Use-Transaction Debugging: Set-PSBreakpoint Get-PSBreakpoint Enable-PSBreakpoint Disable-PSBreakpoint Remove-PSBreakpoint Get-PSCallStack Eventing: Register-ObjectEvent Register-Event Wait-Event Remove-Event Unregister-Event Get-Event New-Event Get-EventSubscriber Background Jobs: Start-Job Get-Job Stop-Job Receive-Job Wait-Job Remove-Job WMI: Register-WMIEvent Set-WMIInstance Invoke-WMIMethod Remove-WMIObject More Cmdlets: Clear-History Get-Random Out-GridView Set-StrictMode Update-List Wait-Process Computer Add-Computer Checkpoint-Computer Disable-ComputerRestore Enable-ComputerRestore Get-ComputerRestorePoint Remove-Computer Rename-Computer Reset-ComputerMachinePassword Restart-Computer Restore-Computer Stop-Computer Test-ComputerSecureChannel
43
Hyper-V Automation with Compellent and PowerShell 2.0 Shane Anderson Compellent
44
Create HTML Report Windows Server 2008 R2 Hyper-V Host Gold Image Automation Overview VM Data File C:\VirtualMachines =..\TestVM30 =..\TestVM49 Validate Prerequisites Start VM’s and Wait for Ready PowerShell 2.0 Script
45
More Info Microsoft Alliance Page http://www.compellent.com/microsoft Powershell Compellent Powershell site http://www.compellent.com/powershell Command Set White Paper http://www.compellent.com/~/media/com/Files/White_Papers/CML_WPS_RR.ashx Windows Live Community Site http://compellentpowershell.groups.live.com/ Powershell Community.org http://www.powershellcommunity.org/ Powershell.com http://www.powershell.com Microsoft and Compellent Joint Customer Webcast “Saving Money while Improving Service availability at Indiana University.” http://www.microsoft.com/virtualization
46
Summary The investments in Windows Server 2008 R2 are a significant step towards increasing the manageability of the platform Expanded PowerShell - available on server core Remote-able
48
Community Resources Newsgroup: Microsoft.Public.Windows.PowerShell Team blog: http://blogs.msdn.com/PowerShell/ PowerShellCommunity.Org: http://www.PowershellCommunity.Org Channel 9 http://channel9.msdn.com/tags/PowerShell Wiki http://channel9.msdn.com/wiki/default.aspx/Channel9.WindowsPowerShellWiki Script Center: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx CodePlex: http://codeplex.com/Project/ProjectDirectory.aspx?TagName=powershell Many excellent books Manning Press book by PowerShell Dev Lead Bruce Payette: PowerShell in Action http://manning.com/powershell/ O’Reilly book by PowerShell Dev Lee Holmes – Windows PowerShell Cookbook http://www.oreilly.com/catalog/9780596528492/index.html
49
Notes on Required Slides In addition to the Walk-in and Title slides, the following slides are required Please add your content and include these in your final presentation
50
www.microsoft.com/teched Sessions On-Demand & Community http://microsoft.com/technet Resources for IT Professionals http://microsoft.com/msdn Resources for Developers www.microsoft.com/learning Microsoft Certification and Training Resources www.microsoft.com/learning Microsoft Certification & Training Resources Resources Required Slide Speakers, TechEd 2009 is not producing a DVD. Please announce that attendees can access session recordings at TechEd Online. Required Slide Speakers, TechEd 2009 is not producing a DVD. Please announce that attendees can access session recordings at TechEd Online.
51
Related Content WSV402 Advanced Windows PowerShell Scripting DAT314 Manageability Series: Microsoft SQL Server Automation on Steroids, Including PowerShell Support SIA313 Managing Active Directory Identities with Active Directory PowerShell WSV325 Windows PowerShell: Tips from the Expert WCL314 Windows PowerShell for the Windows 7 Enterprise Client WSV08-HOL Introduction to Windows PowerShell FundamentalsWSV08-HOL Introduction to Windows PowerShell Fundamentals WSV19-HOL Windows Server 2008 R2: Server Management and PowerShell V2WSV19-HOL Windows Server 2008 R2: Server Management and PowerShell V2 WSV02-HOL Administering Internet Information Services (IIS) 7.0 by Using Windows PowerShell Required Slide Speakers, please list the Breakout Sessions, TLC Interactive Theaters and Labs that are related to your session. Required Slide Speakers, please list the Breakout Sessions, TLC Interactive Theaters and Labs that are related to your session.
52
Track Resources Resource 1 Resource 2 Resource 3 Resource 4 Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub. Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub.
53
Complete an evaluation on CommNet and enter to win! Required Slide
54
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. Required Slide
55
Exporting Settings
56
Importing Settings
57
PowerShell V2 Themes Universal Automation Environment Automation Platform (API) Automation Frameworks Cmdlets In-Proc, Local, Remote Runtime Engines ScriptingLanguage Type Normalizers Providers Events, Jobs, Transactions Shells, ISEs, GUI s, Applications Universal: Interactive or programmatic Wide range of OSes Local or Remote Single or Multi Machine Synch or Asynch Wide range of authentication mechanisms.NET, native code, COM, WMI, ADSI, XML, ADO, WebServices, WSMAN, etc. Simple scripting to systems programming
58
Mobile Objects Model Islands of optimization in a sea of interoperability Whenever possible, use live.NET objects Use typed property bags everywhere else Live objects get serialized at PSSession borders Typed property bags using 24+ core datatypes Everything else is converted using ToString() Process can be tweaked with typeXML entries Automatically deserialized into typed property bags on receipt Type: Deserialized.OriginalType ComputerName
59
Slide Formats Follow
60
PowerPoint Template Subtitle color Set the slide title in “title case” and subheads in “sentence case” The subhead color is defined for this template as the fourth font color from the left Font Size Requirements Main bullet points must not be smaller than 24pt Do NOT use any font size lower than 20pt Set subhead to 36pt or smaller so it will fit on a single line Turn off Auto Resizing on all text boxes
61
PowerPoint Guidelines Font, size, and color for text have been formatted for you in the Slide Master Use the color palette shown below See next slide for additional guidelines Hyperlink color: www.microsoft.comwww.microsoft.com Sample Fill
62
Use white text only on these colors Instructions on Color Readability Colors are brighter when projected, so contrast and readability are diminished SampleSampleSampleSampleSampleSample Sample Sample SampleSample SampleSampleSampleSample Use black or dark gray text only on these colors
63
Slide for Showing Software Code Use this layout to show software code The font is Consolas, a monospace font The slide doesn’t use bullets but levels can be indented using the “Increase List Level” icon on the Home menu To use straight quotes " instead of smart quotes ”, do this: 1. Click on the Office Button in the upper left corner 2. At the bottom of the menu, choose PowerPoint Options 3. From the left pane, select Proofing 4. Click on the AutoCorrect Options button 5. Select the AutoFormat As You Type tab, and deselect “Straight quotes” with “smart quotes”. Then Click OK.
64
Table Format Table Title Column 1 Column 2 Column 3 Column 4 Column 5
65
Bar Chart Example
66
Pie Chart Example
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.