Thursday, December 13, 2012

[Ebooks] Some new ebooks have been published for Windows Server 2012

New book: Training Guide: Installing and Configuring Windows Server 2012

Book cover for 9780735673106We’re happy to announce the availability of Training Guide: Installing and Configuring Windows Server 2012 (ISBN 9780735673106)! Written by Mitch Tulloch, this book helps enterprise administrators build their skills in the area of deploying and managing Windows Server 2012 core services. Readers develop their real-world skills and maximize their on-the-job performance via the book’s many lessons, exercises, and suggested practices. In addition, readers can use this Training Guide as a learning resource, along with on-the-job experience, to help them prepare for the 70-410 exam.
Purchase your copy today here or here.
In today’s post, please enjoy an excerpt from Chapter 6, “Network administration.”
Chapter 6
Network administration
The network is the foundation of an organization’s information system and allows computers and other devices to communicate with each other and with the Internet. Network services such as Dynamic Host Configuration Protocol (DHCP) servers and Domain Name System (DNS) servers simplify the configuration and management of IP address information and network names. To adequately fulfill these roles, such services must be available for clients that need them and secure from attack.
Microsoft Windows Server 2012 includes enhancements to the DHCP Server and DNS Server roles that can help increase DHCP availability and safeguard DNS name resolution from being compromised or misused. Windows Server 2012 also includes added support for managing different aspects of Windows Server–based networks using Windows PowerShell. This chapter demonstrates how to implement these new capabilities to ensure the availability and security of these critical network services and to manage Windows Server–based networks more efficiently. In addition, this lesson also describes how to configure Internet Protocol version 6 (IPv6) networking and interoperability between IPv6 and IPv4.


RTM’d today: Exam Ref 70-410: Installing and Configuring Windows Server 2012

imageWe’re pleased to announce that Exam Ref 70-410: Installing and Configuring Windows Server 2012, by Craig Zacker, has shipped to the printer.
Prepare for Microsoft® Exam 70-410—and help demonstrate your real-world mastery of implementing and configuring Windows
Server 2012 core services. Designed for experienced IT professionals ready to advance their status, Exam Ref focuses on the critical-thinking
and decision-making acumen needed for success at the MCSA level.
Organized by exam objectives, and featuring challenging, what-if scenarios, this Exam Ref focuses on the knowledge  and skills needed to
implement and configure Windows Server 2012 core services in an enterprise environment.
You can preorder the book from here and here.
You can download a couple of sample chapters here.

Contents
CHAPTER 1 Installing and configuring servers
CHAPTER 2 Configure server roles and features
CHAPTER 3 Configure Hyper-V
CHAPTER 4 Deploying and configuring core network services
CHAPTER 5 Install and administer Active Directory
CHAPTER 6 Create and manage Group Policy

New book: Exam Ref 70-417: Upgrading Your Skills to MCSA Windows Server 2012

imageWe’re happy to announce that Exam Ref 70-417: Upgrading Your Skills to MCSA Windows Server 2012 (ISBN 9780735673045) by JC Mackin, is now available for purchase.
Please refer to the table of contents from this previous post.
You can buy the book from here and here.

A sample from Chapter 7:
CHAPTER 7
Configure a network policy server infrastructure

Network Access Protection (NAP), as you know, is a Windows Server feature that
enforces health requirements on client computers as they attempt to connect to a
company network. These health requirements can relate to the status of software updates,
of antivirus protection, of host firewall status, or of spyware protection. NAP was first introduced
in Windows Server 2008.

Although NAP doesn’t include any significant new features in Windows Server 2012, one
important new feature, System Health Validator (SHV) Multi-configuration, appeared in
Windows Server 2008 R2. This new feature falls within the one NAP objective listed for the
70-417 exam, Configure Network Access Protection.


This posting is provided "AS IS" with no warranties.

[OpsMgr 2007 R2][OpsMgr 2012] Lync Server 2013 Monitoring Management Pack

Lync Server 2013 Monitoring Management Pack


Version:5.0.8308.0Date published:12/8/2012
Language:English

Files in this download

The links in this section correspond to files available for this download. Download the files appropriate for you.
File nameSize
LS2013ManagementPacks.msi1.4 MBDownload
Lync Server 2013 Management Pack Guide.doc467 KBDownload
WatcherNode.msi908 KBDownload


Overview

Lync Server 2013 Management Packs contain comprehensive monitoring tools including: • End-to-End scenario availability from various locations. • Call reliability and quality perceived by real users. • Component health and performance. Active Monitoring Management pack • Geographically distributable end-to-end scenario validation for Lync Server 2010 and Lync Server 2013 deployments. This includes coverage for internal, remote and branch office users. • Increased scenario coverage in areas like AV Edge Connectivity and Exchange Unified Message Connectivity. • Enhanced troubleshooting logs to streamline root cause analysis of failures. Component and User Management pack • Increased reliability monitoring of real end user calls and conferences. • Integrated media quality alerts driven from Quality of Experience (QoE) data reported by client applications. • Full event and performance monitoring for all Lync 2013 roles.

System requirements

Supported operating systems: Windows Server 2008 R2
• Operating Systems: Windows Server® R2 (64-bit) and Windows Server 2012 (64-bit). • System Center Operations Manager: System Center Operations Manager 2007 R2 and System Center Operations Manager 2012; 64-bit agents only.

This posting is provided "AS IS" with no warranties.

[OpsMgr 2007 R2] Windows Server Print Server Management Pack for System Center Operations Manager 2007 R2

This management pack monitors the performance and availability of the Print Server role running on various Windows Server operating systems.



Version:6.0.7004.0Date published:12/8/2012
English

Files in this download

The links in this section correspond to files available for this download. Download the files appropriate for you.
File nameSize
OM2007_MP_PrintSvr.doc382 KBDownload
System Center Management Pack
for Windows Print Server.msi
760 KBDownload


Overview

The Microsoft Windows Server Print Server Management Pack monitors the performance and availability of print servers running on Windows Server 2003, Windows Server 2008, Windows Server 2008 R2 and Windows Server 2012. In addition to monitoring the health of print servers, the management pack can also provide insight into the status of shared printers. By detecting, alerting on, and automatically responding to critical events and performance indicators, this management pack helps indicate, correct, and prevent possible operating system service outages.

Feature Summary
The management pack provides functionality to:
  • Monitor performance and Windows events
  • Display detailed monitoring data through views
  • Allow operator to manage print servers
  • Ensure correct configurations

Release History
  • 6/1/2007 - Original release of the English version, version 6.0.5000.0
  • 3/18/2008 - Updated release, version 6.0.5000.36
  • 8/25/2008 - Updated release to add support for Windows Server 2008, version 6.0.6392.0
  • 12/07/2012 - Updated release to add support for Windows Server 2008 R2 and Windows Server 2012, version 6.0.7004.0

System requirements

Supported operating systems: Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012

  • Other Software: System Center Operations Manager 2007 R2


    This posting is provided "AS IS" with no warranties.

    Thursday, December 6, 2012

    [OpsMgr 2007R2][Opsmgr 2012] Alert Report in powershell script

    Samuel Dubrul has posted an interesting powershell script to have a SCOM daily alert report. His script summarizes:
    • Total number of alerts that occurred yesterday
    This can indicate if there are a lot of monitors that are flip flopping
    • The number of active alerts (total, critical, warning, informational)
    This should always be as low as possible
    • A sorted list of the “yesterday” alerts based on number of occurences and Name
    These are the alerts on which you should start to work pro-actively , especially if the count is high.
    • A sorted list of the current critical alerts, perhaps the most urgent ones to work on  


    I've modified the script to be able to use it a a function ( see my post on Powershell Profile) you can add to your profile and added some functionnalities. In parameter you can define what number of day before today you want the report to start and also specify a duration...

    A new sorted list has beed added : a Top 10 of alerts sorted by repeatcount  


    Here is the new script : To be SCOM 2012 compliant, just replace get-alert by get-scomalert

    1. Function AlertReport ([int] $DayBack,[int] $Duration) {
    2. If ($DayBack -eq ""){$DayBack = 1}
    3. If ($Duration -eq ""){$Duration = $DayBack}
    4. #Get between dates Yesterday
    5. $AlertDateBegin = [DateTime]::Today.AddDays(-$DayBack)
    6. $SecondsToAdd = $Duration * 86399
    7. $AlertDateEnd = [DateTime]::Today.AddDays(-$DayBack).AddSeconds($SecondsToAdd)
    8. write-host "***********************************************************************" -foregroundcolor "Green"
    9. write-host "ALERT REPORT:"      -foregroundcolor "Green"
    10. write-host ""      -foregroundcolor "Green"
    11. write-host "START DATE: $AlertDateBegin - END DATE: $AlertDateEnd" -foregroundcolor "Green"
    12. write-host "***********************************************************************" -foregroundcolor "Green"
    13. #Get yesterday alerts
    14. $LastdayAlerts = @(get-alert | where {$_.TimeRaised -gt $AlertDateBegin -and $_.TimeRaised -lt $AlertDateEnd})
    15. #write the output
    16. write-host
    17. write-host NUMBER OF ACTIVE ALERTS : ($LastdayAlerts).Count
    18. write-host
    19. write-host CURRENT NUMBER OF ACTIVE ALL           ALERTS: @(get-alert | where {$_.ResolutionState -ne '255'}).count
    20. write-host CURRENT NUMBER OF ACTIVE CRITICAL      ALERTS: @(get-alert | where {$_.ResolutionState -ne '255' -and $_.Severity -eq '2'}).count  -foregroundcolor "red"
    21. write-host CURRENT NUMBER OF ACTIVE WARNING       ALERTS: @(get-alert | where {$_.ResolutionState -ne '255' -and $_.Severity -eq '1'}).count  -foregroundcolor "yellow"
    22. write-host CURRENT NUMBER OF ACTIVE INFORMATIONAL ALERTS: @(get-alert | where {$_.ResolutionState -ne '255' -and $_.Severity -eq '0'}).count
    23. write-host
    24. write-host
    25. write-host TOPLIST OF ALERTS SORTED BY COUNT:
    26. #list and sort yesterday alerts
    27. $LastdayAlerts | Group-Object Name |Sort -desc Count | select-Object Count, Name |Format-Table –auto -wrap
    28. write-host
    29. write-host "TOP 10 LIST OF ALERTS SORTED BY REAPEATCOUNT WITH MONITORING OBJECT PATH"
    30. #list top noisiest alerts
    31. $LastdayAlerts | Sort -desc RepeatCount | select-object -first 10 Name, RepeatCount, MonitoringObjectPath |Format-Table –auto | Out-String -Width 4096

    32. #list and sort current active alerts
    33. write-host CURRENT ACTIVE CRITICAL ALERT LIST:  -foregroundcolor "red"
    34. (get-alert | where {$_.ResolutionState -ne '255' -and $_.Severity -eq '2'} | Group-Object Name |Sort -desc Count | select-Object Count, Name |Format-Table –auto -wrap)

    35. }
    3 ways to use the AlertReport Function :
    • First one, just execute the AlertReport with no parameter : this will give you a summary for the last past day.
    • Execute AlertReport with one [int] parameter: this will generate a report for the [Int] last past days

    • Execute AlertReport with 2 [int] parameters (for example AlertReport  3 2) : this will generate a report that start 3 days before today for a duration equals to 2 days.
    
    Hope these modification will help some of you ! :)
    Don't forget to use the reporting instead of using powershell script... you'll free one SDK connection !



    This posting is provided "AS IS" with no warranties.

    Wednesday, November 28, 2012

    [Powershell] Creating your own Windows Powershell Profile - Part 3

    ---------- Go to Part 1, Part 2 ----------


  • Function to Export Unsealed Management Pack from a specified management group in a specified folder

  • This function will connect the management group and add OpsMgr snapin if you're not connected, create the specified folder if it doesn't exist and ask to re-use the folder if exist. You can execute the ExportMP function with no path, a new folder will be created in C:\Temp. Don't forget to change text in red

    1. Function ExportMP ([string]$RMS, [string]$PATH)
    2. {
    3. switch ($RMS.toupper()) {
    4.  "PROD" {$RMS1="PRODRMS.Mydomain.com"}
    5.  "DEV" {$RMS1="DEVRMS.Mydomain.com"}
    6.  "PREPROD" {$RMS1="PREPRODRMS.Mydomain.com"}
    7.  default {Write-Host "RMS  - $RMS - not valid" -ForegroundColor red ;sleep 3;exit}
    8.  }
    9. if ( (Get-pssnapin | where {$_.Name -eq "Microsoft.EnterpriseManagement.OperationsManager.Client" }).Name -ne "Microsoft.EnterpriseManagement.OperationsManager.Client" )
    10.   {
    11.   add-pssnapin "Microsoft.EnterpriseManagement.OperationsManager.Client" -ErrorVariable errSnapin;
    12.   $creds = Get-Credential("MyDomain\MyAccount");
    13.   $connection = New-ManagementGroupConnection -ConnectionString: $RMS1 -Credential: $creds
    14.   Set-Location "OperationsManagerMonitoring::" | Out-Null;}
    15. If ($PATH -eq "")
    16.  {
    17.  $a = Get-Date -format d
    18.  $a=$a.Replace('/', '-')
    19.  $RMS = $RMS.toupper()
    20.  $PATH = "C:\Temp\UnsealedMPs-"+$RMS+"-"+$a
    21.  $TestPath = Test-Path $PATH
    22.  if ( $TestPath -eq $False) {
    23.   "Create a new backup folder: " + $PATH
    24.   New-Item -ItemType directory -Path $PATH
    25.   $Continue= "Yes"
    26.   }
    27.  else {
    28.  Write-Host "Path  - $PATH - already exist.
    29.   
    30.  " -ForegroundColor green
    31. $Question = Read-Host "Do you want to re-use it [Y/N] ?"
    32.  Switch ($Question.toupper()){
    33.   "Y" {$Continue= "Yes"}
    34.   "N" {$Continue= "No"}
    35.   default {$Continue= "No"}
    36.   }
    37.  }
    38.  }
    39. Else { Write-Host "Folder doesn't exist - create the folder: $PATH" -ForegroundColor green
    40.   New-Item -ItemType directory -Path $PATH
    41.   $Continue= "Yes"}
    42. if ($Continue -eq "Yes") { 
    43.  $mps = get-managementpack | where-object {$_.Sealed -eq $false}
    44.  foreach ($mp in $mps)
    45.   {
    46.   export-managementpack -managementpack $mp -path $PATH
    47.   }
    48.  }
    49. Else { Write-Host "No export Done" -BackgroundColor red -ForegroundColor yellow}
    50. }

    This posting is provided "AS IS" with no warranties.

    Tuesday, November 27, 2012

    [OpsMgr 2012] Exporting Sealed and Non Sealed Management Packs using powershell script



    As per in OpsMgr 2007, exporting sealed MPs in XML format in Operations Manager 2012 is very easy. You just add to run the the following command in the Operations Manager Shell :


    Get-SCManagementPack | Export-SCManagementPack -Path “D:\Temps\ExportSealedMP”


    For the non-sealed MPs, here is a short script you should save in a ExportNonSealedMP.PS1 file (this one is working with OpsMgr 2007 and 2012):

    1. param ($MGTServerName)
    2. add-pssnapin “Microsoft.EnterpriseManagement.OperationsManager.Client”;
    3. set-location “OperationsManagerMonitoring::”;
    4. new-managementGroupConnection -ConnectionString:$MGTServerName;
    5. set-location $MGTServerName;
    6. $mps = get-managementpack | where-object {$_.Sealed -eq $false}
    7. foreach ($mp in $mps)
    8. {
    9. export-managementpack -managementpack $mp -path “D:\Temp\Backup”
    10. }
     Then you can execute the following command line :

     ExportNonSealedMP.PS1 -MGTServerName YourServerName

    This posting is provided "AS IS" with no warranties.

    [OpsMgr 2007 R2][OpsMgr 2012] Group Maintenance Mode PowerShell Script Updated by Tao Yang

    Tao Yang have updated the script provided by Steve Rachui ( Place a Group in Maintenance Mode with PowerShell ) to use SDK rather than SCOM 2007 PS Snap-in so the script works on both SCOM 2007 and OM12.
    He's also made few other changes including change the duration from number of hours to number of minutes to suit his needs.


    You can read his full article on Tao's blog and download his modified script here.

    This posting is provided "AS IS" with no warranties.