Command Shell Examples
Useful SQL Queries
March, 2009 - Jonathan Almquist on Operations Manager - Site Home - TechNet Blogs
Sign in
Jonathan Almquist on Operations Manager
Search my blog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Tag Cloud
Authoring
Custom Reports
Exchange 2010 MP
Performance Tips
Powershell
Report Datasets
SCOM 2012
TSQL (misc)
Tuning
Options
About
Email Blog Author
RSS for posts
RSS for comments
Atom
OK
Archive
Archives
February 2012
(1)
January 2012
(2)
November 2011
(2)
September 2011
(1)
August 2011
(8)
July 2011
(1)
June 2011
(4)
May 2011
(2)
April 2011
(15)
January 2011
(8)
December 2010
(1)
October 2010
(8)
August 2010
(2)
July 2010
(2)
June 2010
(2)
May 2010
(6)
April 2010
(4)
March 2010
(5)
February 2010
(1)
January 2010
(4)
December 2009
(9)
November 2009
(14)
October 2009
(1)
September 2009
(4)
August 2009
(1)
July 2009
(1)
June 2009
(3)
May 2009
(1)
April 2009
(15)
March 2009
(44)
February 2009
(4)
November 2008
(6)
September 2008
(1)
August 2008
(4)
July 2008
(2)
April 2008
(2)
March 2008
(9)
February 2008
(1)
December 2007
(1)
March, 2009
TechNet Blogs
>
Jonathan Almquist on Operations Manager
>
March, 2009
Jonathan Almquist on Operations Manager
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Jonathan Almquist on Operations Manager
Export a Management Pack
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Use this cmdlet to export a Management Pack to a specified path. Unlike the Operations Console, where you can only export unsealed Management Packs, using this cmdlet will export both sealed and unsealed Management Packs in XML format. First query...
Jonathan Almquist on Operations Manager
Resolve agent from Health Service Id
Posted
over 4 years ago
by
Jonathan Almquist
1
Comments
Find Agent, by Health Service Id get-agent | where {$_.hostedHealthService.id -eq " guid "} | select-object name main menu
Jonathan Almquist on Operations Manager
Is alert grooming working?
Posted
over 4 years ago
by
Jonathan Almquist
6
Comments
Evaluate whether alert grooming is working. No result is good. $Threshold=(Get-Date).AddDays(-(get-defaultsetting)[42].Value-1).ToUniversalTime().Date.AddMinutes(30);Get-Alert | Where {$_.TimeResolved -and $_.TimeResolved -lt $Threshold} | Measure...
Jonathan Almquist on Operations Manager
Delete a Management Pack
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Be careful while deleting Management Packs. I suggest to first query the Management Pack and verify you’re returning the one you want to delete. Return all Management Packs by Display Name get-managementpack | select displayName | sort displayName...
Jonathan Almquist on Operations Manager
Approve Manual Installations and Updates
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Approve Manual Installation for single agent Get-AgentPendingAction | where {$_.AgentName –match “ netbios_name ”} | Approve-AgentPendingAction Approve Manual Installation for all pending agents Get-AgentPendingAction | where {$_.AgentPendingActionType...
Jonathan Almquist on Operations Manager
Resolve UIGeneratedMonitor to a Monitor Name
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Resolve UIGeneratedMonitor to a Monitor Name get-monitor | where {$_.name -eq " UIGeneratedMonitor "} | select DisplayName main menu
Jonathan Almquist on Operations Manager
Get BaseManagedEntityId for Agent
Posted
over 4 years ago
by
Jonathan Almquist
1
Comments
Get BaseManagedEntityId for Agent get-agent | where {$_.ComputerName -eq " netbios_name "} | select {$_.HostedHealthService.id},name main menu
Jonathan Almquist on Operations Manager
Set Management Group Global Settings
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Use this commandlet to set Management Group global settings. You can use its companion, get-DefaultSetting , to return the current Management Group global settings. Set Auto-Approve New Manually Installed Agents setting Set-DefaultSetting ManagementServer...
Jonathan Almquist on Operations Manager
List connected users
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
List connected users to SDK (console and command shell users) Get-ManagementGroupConnection | foreach-object {$_.ManagementGroup.getConnectedUserNames()} Count connected users Get-ManagementGroupConnection | foreach-object {$_.ManagementGroup.getConnectedUserNames...
Jonathan Almquist on Operations Manager
Enable Agent Proxying, by Health Service Id
Posted
over 4 years ago
by
Jonathan Almquist
2
Comments
Enable Agent Proxying, by Health Service Id $a=get-agent | where {$_.hostedHealthService.id -eq " guid "};$a.set_proxyingEnabled($true);$a.applyChanges() main menu
Jonathan Almquist on Operations Manager
Resolve all open alerts generated by specific Agent
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Resolve all open alerts generated by specific Agent get-alert | where {$_.netbiosComputerName -eq " netbios_name " -AND $_.resolutionState -ne 255} | Resolve-Alert To use Criteria Expression for better performance get-alert -criteria 'NetbiosComputerName...
Jonathan Almquist on Operations Manager
All overrides, with settings
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
All overrides, with settings Get-ManagementPack | where {$_.sealed -eq $false} | get-override | select-object name,parameter,module,rule,value main menu
Jonathan Almquist on Operations Manager
10 most recent CRITICAL alerts (not closed)
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
10 most recent CRITICAL alerts (not closed) get-alert | where {$_.severity -eq "error" -and $_.resolutionstate -ne 255} | sort-object TimeRaised -desc | select-object -first 10 name,timeraised main menu
Jonathan Almquist on Operations Manager
Top 10 alerts
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Top 10 alerts get-alert | Group-Object Name | Sort-object Count -desc | select-Object -first 10 Count, Name | ft –auto main menu
Jonathan Almquist on Operations Manager
All rules overridden from specific MP
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
All rules overriden from specific MP foreach ($rule in Get-ManagementPack | where {$_.DisplayName -match " mp_display_name "} | get-override | where {$_.rule}) {get-rule | where {$_.Id -eq $rule.rule.id} | select-object DisplayName} main menu
Jonathan Almquist on Operations Manager
Find performance collection rule for specific Object, Counter or Instance
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Find collection rule that is writing specific performance object to the database Foreach ($rule in (get-rule | where {$_.category -eq "PerformanceCollection"} | foreach-object {$_.DataSourceCollection})) { ...
Jonathan Almquist on Operations Manager
All monitors overridden from specific MP
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
All monitors overriden from specific MP foreach ($monitor in Get-ManagementPack | where {$_.DisplayName -match " mp_display_name "} | get-override | where {$_.monitor}) {get-monitor | where {$_.Id -eq $monitor.monitor.id} | select-object DisplayName...
Jonathan Almquist on Operations Manager
Overrides modified in date range
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Overrides modified in date range Get-ManagementPack | where {$_.sealed -eq $false} | get-override | where {$_.LastModified.ToLocalTime().date -gt $_.TimeAdded.ToLocalTime().date -and $_.LastModified.ToLocalTime().date -ge " mm/dd/yyyy " -and...
Jonathan Almquist on Operations Manager
Find collection rule for specific Event Id
Posted
over 4 years ago
by
Jonathan Almquist
5
Comments
Beware of word wrap. foreach ($rule in get-rule | where {$_.category -eq "EventCollection"} | foreach-object {$_.DataSourceCollection}) { if ($rule.get_configuration().ToString() -match " event number...
Jonathan Almquist on Operations Manager
Overrides that have been modified
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Overrides that have been modified Get-ManagementPack | where {$_.sealed -eq $false} | get-override | where {$_.LastModified -gt $_.TimeAdded} | fl name,LastModified main menu
Jonathan Almquist on Operations Manager
Overrides created in date range
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Overrides created in date range Get-ManagementPack | where {$_.sealed -eq $false} | get-override | where {$_.TimeAdded.ToLocalTime().date -ge " mm/dd/yyyy " -and $_.TimeAdded.ToLocalTime().date -le " mm/dd/yyyy "} | fl name,TimeAdded...
Jonathan Almquist on Operations Manager
Resolve all open alerts, by Alert Name
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Resolve all open alerts, by Alert Name get-alert | where {$_.Name -eq " alert_name " -AND $_.resolutionState -ne 255} | resolve-alert main menu
Jonathan Almquist on Operations Manager
Return Management Group global settings
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
This is a basic commandlet that returns Management Group global settings. You can use it’s companion, set-DefaultSetting , to configure Management Group global settings. Return all Management Group global settings get-DefaultSetting Return Auto...
Jonathan Almquist on Operations Manager
Resolve all open alerts in date range
Posted
over 4 years ago
by
Jonathan Almquist
1
Comments
Resolve all open alerts in date range get-alert | where {$_.TimeRaised.ToLocalTime().date -ge " mm/dd/yyyy " -and $_.TimeRaised.ToLocalTime().date -le " mm/dd/yyyy " -and $_.resolutionState -ne 255} | resolve-alert main menu
Jonathan Almquist on Operations Manager
Import a Management Pack
Posted
over 4 years ago
by
Jonathan Almquist
0
Comments
Basic cmdlet, but wanted to add to the reference table. The goal is to someday have the entire reference table complete with examples. install-managementpack " path " main menu
Page 1 of 2 (44 items)
1
2