Your SlideShare is downloading. ×
0
24 Hours of Exchange Server 2007 (Part 8 of 24): Introduction to Windows Powershell Harold Wong [email_address] blogs.tech...
What We Will Cover <ul><li>Introducing Windows PowerShell™ </li></ul><ul><li>Using Windows PowerShell </li></ul><ul><li>Cr...
Agenda <ul><li>Review </li></ul><ul><li>Introducing Windows PowerShell </li></ul><ul><li>Scripting with Windows PowerShell...
Review: Configuring Exchange Server <ul><li>Databases and storage groups concepts </li></ul><ul><li>Public Folder overview...
Review: Implementing the Mailbox Server <ul><li>Mailbox server role </li></ul><ul><li>Client Access server role </li></ul>...
Review: Implementing the Mailbox Server <ul><li>Mailbox server role </li></ul><ul><li>Client Access server role </li></ul>...
Review: Implementing the Mailbox Server <ul><li>Mailbox server role </li></ul><ul><li>Client Access server role </li></ul>...
Review: Public Folder Overview <ul><li>Offline address book distribution </li></ul><ul><li>Free/busy lookups </li></ul><ul...
Review: Public Folder Overview <ul><li>Mailbox server </li></ul><ul><li>Edge Transport server  </li></ul><ul><li>Hub Trans...
Review: Public Folder Overview <ul><li>Upgrade to Outlook 2007 </li></ul><ul><li>Migrate public folders to form libraries ...
Review: Configure and Manage Public Folders <ul><li>New-PublicFolderDatabase </li></ul><ul><li>Set-PublicFolder </li></ul>...
Review: Configure and Manage Public Folders <ul><li>New-PublicFolder </li></ul><ul><li>Set-PublicFolder </li></ul><ul><li>...
Review: Configure and Manage Public Folders <ul><li>*.vbs </li></ul><ul><li>*.ps1 </li></ul><ul><li>*.msh </li></ul><ul><l...
Agenda <ul><li>Review </li></ul><ul><li>Introducing Windows PowerShell </li></ul><ul><li>Scripting with Windows PowerShell...
Windows PowerShell Overview Command-line interface Exchange Server snap-in Task automation Bulk operations Extends console
Windows PowerShell Features <ul><li>Object-oriented data handling </li></ul><ul><li>Namespaces </li></ul><ul><li>Pipelinin...
Why Use Windows PowerShell? One-liners Raw mode What if? Interactive
Windows PowerShell Syntax Name  Alias  Server  StorageQuota ----  ----  ------  ------------ Bob Kelly  bobk  smbex01  unl...
<ul><li>Introducing Windows PowerShell </li></ul><ul><ul><li>Use basic Windows PowerShell commands </li></ul></ul><ul><ul>...
Review: Introducing Windows Powershell <ul><li>Redirect output to text files </li></ul><ul><li>Use the output of one comma...
Review: Introducing Windows Powershell <ul><li>Get-Mailbox </li></ul><ul><li>Read-Mailbox </li></ul><ul><li>Get-User </li>...
Review: Introducing Windows Powershell <ul><li>Sort-Objects </li></ul><ul><li>Sort-Object </li></ul><ul><li>Sort-By </li><...
Agenda <ul><li>Review </li></ul><ul><li>Introducing Windows PowerShell </li></ul><ul><li>Scripting with Windows PowerShell...
Reduced Complexity
Automating Management <ul><li>Join multiple tasks together </li></ul><ul><li>Tasks and scripts can be called from managed ...
<ul><li>Performing Exchange Server Administration </li></ul><ul><ul><li>Move mailboxes </li></ul></ul><ul><ul><li>Create a...
Secure Scripting Environment Default is RemoteSigned Must call with full path Cannot automatically run scripts Four levels...
Review: Scripting with Windows Powershell <ul><li>Restricted </li></ul><ul><li>RemoteSigned </li></ul><ul><li>Unrestricted...
Review: Scripting with Windows Powershell <ul><li>$ </li></ul><ul><li># </li></ul><ul><li>@ </li></ul><ul><li>% </li></ul>...
Review: Scripting with Windows Powershell <ul><li>Get-ExecutionPolicy </li></ul><ul><li>Alter-ExecutionPolicy </li></ul><u...
Session Summary <ul><li>New command line and scripting utility </li></ul><ul><li>Manage all aspects of Exchange Server </l...
Questions and Answers <ul><li>Submit text questions using the “Ask” button.  </li></ul><ul><li>Don’t forget to fill out th...
 
Upcoming SlideShare
Loading in...5
×

24 Hours Of Exchange Server 2007 (Part 8 Of 24)

1,468

Published on

Introduction to PowerShell

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,468
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
292
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "24 Hours Of Exchange Server 2007 (Part 8 Of 24)"

  1. 1. 24 Hours of Exchange Server 2007 (Part 8 of 24): Introduction to Windows Powershell Harold Wong [email_address] blogs.technet.com/haroldwong For audio, please try Streaming Internet Audio first If that doesn’t work, use: (800) 229-0449, Pin 9634
  2. 2. What We Will Cover <ul><li>Introducing Windows PowerShell™ </li></ul><ul><li>Using Windows PowerShell </li></ul><ul><li>Creating Windows PowerShell scripts </li></ul>
  3. 3. Agenda <ul><li>Review </li></ul><ul><li>Introducing Windows PowerShell </li></ul><ul><li>Scripting with Windows PowerShell </li></ul>
  4. 4. Review: Configuring Exchange Server <ul><li>Databases and storage groups concepts </li></ul><ul><li>Public Folder overview and replication </li></ul><ul><li>Folder and group Windows PowerShell Cmdlets </li></ul>
  5. 5. Review: Implementing the Mailbox Server <ul><li>Mailbox server role </li></ul><ul><li>Client Access server role </li></ul><ul><li>Edge Transport server role </li></ul><ul><li>Unified Messaging server role </li></ul>Which server role must be installed on its own computer, without any other Exchange Server role?
  6. 6. Review: Implementing the Mailbox Server <ul><li>Mailbox server role </li></ul><ul><li>Client Access server role </li></ul><ul><li>Hub Transport server role </li></ul><ul><li>Unified Messaging server role </li></ul>Which server role is optional, and may be left out of an Exchange Server 2007 deployment if desired?
  7. 7. Review: Implementing the Mailbox Server <ul><li>Mailbox server role </li></ul><ul><li>Client Access server role </li></ul><ul><li>Edge Transport server role </li></ul><ul><li>Unified Messaging server role </li></ul>Microsoft ® Office Outlook ® 2007 clients inside your firewall typically access which Server to send and receive email?
  8. 8. Review: Public Folder Overview <ul><li>Offline address book distribution </li></ul><ul><li>Free/busy lookups </li></ul><ul><li>RSS feeds </li></ul><ul><li>Outlook 2007 security settings </li></ul>Which of these built-in Outlook 2007 applications can not use public folders?
  9. 9. Review: Public Folder Overview <ul><li>Mailbox server </li></ul><ul><li>Edge Transport server </li></ul><ul><li>Hub Transport server </li></ul><ul><li>Unified Messaging server </li></ul>Which server role hosts public folders in Exchange Server 2007?
  10. 10. Review: Public Folder Overview <ul><li>Upgrade to Outlook 2007 </li></ul><ul><li>Migrate public folders to form libraries </li></ul><ul><li>Share data with SharePoint Services </li></ul><ul><li>Develop new applications with the Microsoft ® .NET Framework </li></ul>As public folders become de-emphasized by Microsoft, which is not a recommended strategy to manage this change?
  11. 11. Review: Configure and Manage Public Folders <ul><li>New-PublicFolderDatabase </li></ul><ul><li>Set-PublicFolder </li></ul><ul><li>Get-PublicFolder </li></ul><ul><li>None of the above </li></ul>Which of following cmdlets can be invoked by the Exchange Management Console?
  12. 12. Review: Configure and Manage Public Folders <ul><li>New-PublicFolder </li></ul><ul><li>Set-PublicFolder </li></ul><ul><li>Get-PublicFolder </li></ul><ul><li>Update-PublicFolder </li></ul>Which cmdlet is used to manage public folder replicas?
  13. 13. Review: Configure and Manage Public Folders <ul><li>*.vbs </li></ul><ul><li>*.ps1 </li></ul><ul><li>*.msh </li></ul><ul><li>None of the above </li></ul>Which of the following script types can you run by default from the Exchange Management Shell?
  14. 14. Agenda <ul><li>Review </li></ul><ul><li>Introducing Windows PowerShell </li></ul><ul><li>Scripting with Windows PowerShell </li></ul>
  15. 15. Windows PowerShell Overview Command-line interface Exchange Server snap-in Task automation Bulk operations Extends console
  16. 16. Windows PowerShell Features <ul><li>Object-oriented data handling </li></ul><ul><li>Namespaces </li></ul><ul><li>Pipelining </li></ul><ul><li>Access to CMD commands </li></ul><ul><li>Trusted scripts </li></ul>
  17. 17. Why Use Windows PowerShell? One-liners Raw mode What if? Interactive
  18. 18. Windows PowerShell Syntax Name Alias Server StorageQuota ---- ---- ------ ------------ Bob Kelly bobk smbex01 unlimited Kim Akers kima smbex01 unlimited MSH> get-mailbox –server “smbex01” Verb Noun Name Argument String Command Parameter Property Names Property Values
  19. 19. <ul><li>Introducing Windows PowerShell </li></ul><ul><ul><li>Use basic Windows PowerShell commands </li></ul></ul><ul><ul><li>Format output </li></ul></ul>demonstration
  20. 20. Review: Introducing Windows Powershell <ul><li>Redirect output to text files </li></ul><ul><li>Use the output of one command as the input for another </li></ul><ul><li>Read input from the keyboard </li></ul><ul><li>Temporarily pause the script </li></ul>Q1: What is the purpose of the pipeline?
  21. 21. Review: Introducing Windows Powershell <ul><li>Get-Mailbox </li></ul><ul><li>Read-Mailbox </li></ul><ul><li>Get-User </li></ul><ul><li>Get-Mailuser </li></ul>Q2: Which CMDLET retrieves information about a user’s Exchange Server mailbox?
  22. 22. Review: Introducing Windows Powershell <ul><li>Sort-Objects </li></ul><ul><li>Sort-Object </li></ul><ul><li>Sort-By </li></ul><ul><li>Sort-Row </li></ul>Q3: Which CMDLET sorts rows of output from a Windows PowerShell command?
  23. 23. Agenda <ul><li>Review </li></ul><ul><li>Introducing Windows PowerShell </li></ul><ul><li>Scripting with Windows PowerShell </li></ul>
  24. 24. Reduced Complexity
  25. 25. Automating Management <ul><li>Join multiple tasks together </li></ul><ul><li>Tasks and scripts can be called from managed code </li></ul><ul><li>Sample scripts available through community sites </li></ul><ul><li>Scripts can be reused </li></ul>
  26. 26. <ul><li>Performing Exchange Server Administration </li></ul><ul><ul><li>Move mailboxes </li></ul></ul><ul><ul><li>Create a mail store </li></ul></ul><ul><ul><li>Create a Windows PowerShell script </li></ul></ul>demonstration
  27. 27. Secure Scripting Environment Default is RemoteSigned Must call with full path Cannot automatically run scripts Four levels of security
  28. 28. Review: Scripting with Windows Powershell <ul><li>Restricted </li></ul><ul><li>RemoteSigned </li></ul><ul><li>Unrestricted </li></ul><ul><li>AllSigned </li></ul>Q1: What is the default execution policy for the Windows PowerShell?
  29. 29. Review: Scripting with Windows Powershell <ul><li>$ </li></ul><ul><li># </li></ul><ul><li>@ </li></ul><ul><li>% </li></ul>Q2: What character indicates a user-defined variable In Windows PowerShell?
  30. 30. Review: Scripting with Windows Powershell <ul><li>Get-ExecutionPolicy </li></ul><ul><li>Alter-ExecutionPolicy </li></ul><ul><li>Set-ExecutionPolicy </li></ul><ul><li>New-ExecutionPolicy </li></ul>Q3: Which CMDLET changes the execution policy in Windows PowerShell?
  31. 31. Session Summary <ul><li>New command line and scripting utility </li></ul><ul><li>Manage all aspects of Exchange Server </li></ul><ul><li>Automate management tasks </li></ul>
  32. 32. Questions and Answers <ul><li>Submit text questions using the “Ask” button. </li></ul><ul><li>Don’t forget to fill out the survey. </li></ul><ul><li>For upcoming and previously live webcasts: www.microsoft.com/webcasts </li></ul><ul><li>Got webcast content ideas? Contact us at: http://go.microsoft.com/fwlink/?LinkId=41781 </li></ul><ul><li>Today's webcast was presented using Microsoft ® Office Live Meeting. Get a free 14-day trial by visiting: www.microsoft.com/presentlive   </li></ul>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×