Sign in
|
Join PowerShell.com!
|
Help
Home
PowerTips
Ask the Experts
Forums
Webcasts
Blogs
eBookV2
Script Library
Twitter Grid
Modules
QuickClick
Scripts
Snippets
Videos
Library
»
Script Library
»
System Center Operations Manager
»
Slideshow
System Center Operations Manager Slideshow
Share
|
Browse Library
Module Library
QuickClick Library
Script Library
Active Directory
BizTalk
Citrix
Clustering
Desktop
Exchange Server 2003
Exchange Server 2007
File System
Group Policy
Internet Information Server (IIS)
Local Accounts
Logs
Microsoft Office
Microsoft Team Foundation Server
MySQL
Networking
Registry
Remote Desktop Services
Remoting
Security
SharePoint
SQL Server
System Center Virtual Machine Manager
System Center Configuration Manager
System Center Operations Manager
Tutorial
Terminal Server
Using .Net
Virtual Server
VMware
Windows 7
Windows HPC
Windows Server 2000
Windows Server 2003
Windows Server 2008
Windows XP
WMI
Misc
Snippet Library
Video Library
Members Only
Tags
Aman Dhally
SCOM
System Center Operations Manager
View more
Get List of MP Overrides by Specific Day
#+-------------------------------------------------------------------+
#| = : = : = : = : = : = : = : = : = : = : = : = : = : = : = : = : = |
#|{>/-------------------------------------------------------------\<}|
#|: | Author:
Aman Dhally
| :|
#| :| Email:
amandhally@gmail.com
#|: | Purpose: List of Scom OverRides
#|: |
#| :|
/^(o.o)^\
Version: 1
|: |
#|{>\-------------------------------------------------------------/<}|
#| = : = : = : = : = : = : = : = : = : = : = : = : = : = : = : = : = |
#+-------------------------------------------------------------------+
### I set $olddate to 2 Days ago date
$olddate
=
(
Get-Date
).
AddDays
(
-
2)
## Select every Management pack and Piped it to "Get-Override)
$Mp
=
Get-Managementpack
|
Get-Override
### Now it will show only overrides which are created after $oldDate
$Mp
|
Where-Object
{
$_
.
TimeAdded
-gt
$olddate
} | select ManagementGroupId,Name,TimeAdded | fl
*
######## E N D of S C R I P T #############
Loading...
Get List of...
Closing all...
Auto resolve...
View all files
Copyright 2011 PowerShell.com. All rights reserved.