The following command will help to find who is connected to your SCOM console. This works for SCOM 2012.
(Get-SCOMManagementGroup).getconnectedusernames()
For SCOM 2007 you will have to use the ones below. I have not tested the below commands, though.
Get-ManagementGroupConnection | foreach-object {$_.ManagementGroup.getConnectedUserNames()}
Get-ManagementGroupConnection | foreach-object {$_.ManagementGroup.getConnectedUserNames()} | measure-object
Monday, August 19, 2013
Friday, July 19, 2013
Adding or removing a new SCOM zone from Om12 agent
Using Powershell:
Remove Management group
$OMCfg = New-Object -ComObject AgentConfigManager.MgmtSvcCfg;
$OMCfg.RemoveManagementGroup("zonetoberemoved")
Add management group
$OMCfg = New-Object -ComObject AgentConfigManager.MgmtSvcCfg;
$OmCfg.AddmanagementGroup(‘zonenametobeadded’,'MSNamewithFQCN',5723)
Remove Management group
$OMCfg = New-Object -ComObject AgentConfigManager.MgmtSvcCfg;
$OMCfg.RemoveManagementGroup("zonetoberemoved")
Add management group
$OMCfg = New-Object -ComObject AgentConfigManager.MgmtSvcCfg;
$OmCfg.AddmanagementGroup(‘zonenametobeadded’,'MSNamewithFQCN',5723)
Friday, June 28, 2013
Run command promt as sytem user
The following link helps for opening command prompt as a system user.
http://verbalprocessor.com/2007/12/05/running-a-cmd-prompt-as-local-system/
http://verbalprocessor.com/2007/12/05/running-a-cmd-prompt-as-local-system/
Subscribe to:
Posts (Atom)