A Proper OpsMgr 2007 Overrides Report (PowerShell)
By Pete Zerger on 8/24/2010 1:20:46 AM • Rank (2916) • Views 3062
2

2

 This PowerShell script retrieves all the overrides from your unsealed management packs, including all the details of the override, including target, value and the source rule or monitor. Results are output to a single Excel spreadsheet.

Only registered users may download. Registration is free.

Comments (3) - Comment RSS
jmacinc wrote: on Aug 29, 2010 11:30 PM
Pete -- thanks for the clean script posting. Maybe you were aware of the "clear-variable" cmdlet, but, as you said, were in a hurry. I found that lingering variables can cause confusion when I'm debugging a snippet after a script has run, so was glad to find that Powershell streamlines this chore if you prefix your var names by common purpose, such as "$override" in this case. Basically:

clear-variable override*

will leave the vars in memory but with null contents in one fell swoop. Gotta love PS.
Drew wrote: on Nov 07, 2010 12:26 PM
Write a comment...
Drew wrote: on Nov 07, 2010 12:32 PM
Thanks for this Pete, I was hoping to find a script to tweak for our environment versus writing from scratch. Something I added that may help others is conditional logic to make sure the Parameter property is collected so it's not left blank:



$overrideParameter = $override.Parameter

if ($overrideParameter -ne $null)

{

$overrideProperty = $override.Parameter

}

else

{

$overrideProperty = $override.Property

}
Add your Comment
Latest Media - View All Media (1)
   


Who Viewed
Who Reviewed
Categories
Related Pages
Shortened URL
http://tinyurl.com/2fa2y8w

Top Contributors
Featured Members
Pete Zerger
Points: 72684
Level: System Center Expert
Tommy Gunn
Points: 47503
Level: System Center Expert
Simon Skinner
Points: 40804
Level: System Center Expert
Andreas Zuckerhut
Points: 30700
Level: System Center Expert
Stefan Koell
Points: 30179
Level: System Center Expert