Friday, November 16, 2007
List Local Group using OpsMgr 2007 Task
use the script below to create your task
On Error Resume Next
strComputer = "."Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery _
("Select * from Win32_Group Where LocalAccount = True")
For Each objItem in colItems
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "SID: " & objItem.SID
Wscript.Echo "-------------------Tarek-----------------------"
Next
Enable TS using OPsMgr 2007 Task
the script is below :
const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."Set oReg=GetObject( _
"winmgmts:{impersonationLevel=impersonate}!\\" &
_ strComputer & "\root\default:StdRegProv")
strKeyPath = "SYSTEM\CurrentControlSet\Control\Terminal Server\"
strValueName = "fDenyTSConnections"
oReg.SetDWORDValue _
HKEY_LOCAL_MACHINE, strKeyPath, strValueName,0
oReg.GetDWORDValue _ HKEY_LOCAL_MACHINE, strKeyPath, strValueName, dwValue
if dwValue = 0 then
Wscript.Echo "Terminal service is now enabled"
else
Wscript.Echo "Terminal service could not be enabled"
end If
Wscript.Echo "-------------------Tarek----------------------"
Friday, November 9, 2007
BlogCast: System Center Operations manager 2007 - Part 8
Configure agent-less exception monitoring (AEM) in operations manager 2007
- Configure proxy setting for management server.
- Enable client monitoring on management server.
- Create group policy administrative template
- Create AEM policy
- Configure AEM group policy
- Test AEM setting
Use the following link to download
http://www.blogcastrepository.com/blogcasts/folders/scom/entry27820.aspx
BlogCast: System Center Operations manager 2007 - Part 7
BlogCast: System Center Operations manager 2007 - Part 7
Installing data warehouse and reporting for Microsoft system center operations manager 2007
Use the following link to download
http://www.blogcastrepository.com/blogcasts/folders/scom/entry27818.aspx
BlogCast: System Center Operations manager 2007 - Part 6
Installing Web console and enable SSL for Form based authentication
- Installing web console using installation wizard
- Use forms authentication option during installation.
- Assign the requested certificate for Management server to
Enable SSL for web console web Site. - Login to web console by administrator
Use the following link to download
http://www.blogcastrepository.com/blogcasts/folders/scom/entry27811.aspx
BlogCast: System Center Operations manager 2007 - Part 5
Certificate authentication in Operations manager 2007
- Request a certificate for operations manager management server
- Issue certificate for Management server
- Install certificate for Management server
- Export Certificate and use MOMCertImport.exe tool to assign the certificate for management server.
- Check the registry after import the certificate.
- Restart OpsMgr Health service to update the setting with the imported certificate.
Use the following link to download
http://www.blogcastrepository.com/blogcasts/folders/scom/entry27803.aspx
BlogCast: System Center Operations manager 2007 - Part 4
Installing Microsoft System center operations manager 2007
- Using prerequisites checker
- Running operations manager installation wizard
- Choose installation folder
- Choose installation components
- Type management group name
- Configure MOM administrators
- Configure Operations manager 2006 name , size , and DB file locations
- Configure server action account
- Configure SDK account
- Configure Web console authentication
Use the following link to download
http://www.blogcastrepository.com/blogcasts/folders/scom/entry27797.aspx
BlogCast: System Center Operations manager 2007 - Part 3
Creating service accounts for operations manager 2007
- Check the domain function level (must be windows 2000 native at least)
- Check the forest function level (any function level)
- Create server action account
- Create SDK account
- Add Server action account to domain admins group
- Add SDK account to local administrators group in operation manager server.
Use the following link to download
http://www.blogcastrepository.com/blogcasts/folders/scom/entry27792.aspx
BlogCast: System Center Operations manager 2007 - Part 2
Installing Microsoft SQL 2005 for operations manager 2007
- Install MS SQL 2005 (Database – reporting Service)
- Install MS SQL 2005 SP2
Use the following link to download
http://www.blogcastrepository.com/blogcasts/folders/scom/entry27791.aspx
BlogCast: System Center Operations manager 2007 - Part 1
Installing prerequisites for operations manager 2007:
- The machine must be a domain member.
- Installing IIS and ASP.Net
- Installing .NET framework 2
- Installing .NET framework 3
- Installing Powershell
Use the following link to download
http://www.blogcastrepository.com/blogcasts/folders/scom/entry27790.aspx
Sunday, August 19, 2007
Monitoring Windows Event using Operations manager 2007-Part4
Correlated Event detection unit monitors Guide
http://tarek.ismail.googlepages.com/MonitoringwinEvent-part4.pdf
Monday, July 30, 2007
The Database Size Estimator for Operations Manager 2007
the original post is Here
many thanks to : Ian Blyth - System Center Technologies
http://ianblythmanagement.wordpress.com
Operations Manager 2007 available documentation
http://technet.microsoft.com/library/bb309430
Operations Manager 2007 Supported Configurations
http://technet.microsoft.com/library/bb309428
Operations Manager 2007 Operations Guide
http://download.microsoft.com/download/7/4/d/74deff5e-449f-4a6b-91dd-ffbc117869a2/OM2007_OpsGuide.doc
Operations Manager 2007 Backup and Recovery Guide
http://download.microsoft.com/download/7/4/d/74deff5e-449f-4a6b-91dd-ffbc117869a2/opsmgr2007_backup.doc
Disaster Recovery: OpsMgr 2007 Root Management Server on a Cluster
http://blogs.technet.com/momteam/attachment/1597917.ashx
Operations Manager 2007 Design Guide
http://download.microsoft.com/download/7/4/d/74deff5e-449f-4a6b-91dd-ffbc117869a2/opsmgr2007_designguid.doc
Operations Manager 2007 Deployment Guide
http://download.microsoft.com/download/7/4/d/74deff5e-449f-4a6b-91dd-ffbc117869a2/opsmgr2007_deployment.doc
Operations Manager 2007 Performance and Scalability White Paper
http://download.microsoft.com/download/d/3/6/d3633fa3-ce15-4071-be51-5e036a36f965/om2007_perfscal.doc
Operations Manager 2007 Security Guide
http://download.microsoft.com/download/7/4/d/74deff5e-449f-4a6b-91dd-ffbc117869a2/opsmgr2007_security.doc
Microsoft Management Pack Authoring Guide
http://download.microsoft.com/download/7/4/d/74deff5e-449f-4a6b-91dd-ffbc117869a2/om2007_authconsole.exe
Operations Manager 2007 Operations Guidehttp://download.microsoft.com/download/7/4/d/74deff5e-449f-4a6b-91dd-ffbc117869a2/om2007_opsguide.doc
Saturday, July 28, 2007
Monitoring Windows Service using Operations manager 2007
Diagnostic and recovery tasks are available to analyze the system automatically when the service stopped without and administrator’s action to troubleshoot the problem.
Operations manager has the ability to start the service automatically and run any suitable recovery task to cover this failure.
You can create a Windows services unit monitor that you can use to generate an alert, run diagnostic tasks , and run recovery Tasks.
The tasks can be configure to run manually or automatically
The diagnostic tasks can be configured to run only commands
The recovery tasks can be used to run a script or commands
The task can only target the monitored objects only, and cannot target others This guide will discuss how to monitor windows services by example, configure diagnostic tasks, and configure the recovery tasks
download the guide from the following link
http://tarek.ismail.googlepages.com/Monitoring-Service.pdf
or contact me at Tarek_877@hotmail.com to get a copy
Thursday, July 26, 2007
Monitoring Windows Event using Operations manager 2007 - Part 3
Monitor the missing events in the windows event log is another way to keep your eyes on the running windows system.
You can monitor the event log file within a specified time to check if this event is missed or not.
For example, every Sunday morning from 8:00 AM to 10:00 AM a third party application do a special task and after the successful end of this task , I will get an event in the application event log of the server, and I have more than 20 server has the same application
Surprise, in a normal way I will open the event viewer of each server and search for this event during this time, this will be a time consuming job for me, and this day will be my worst day in my week to do this.
But if you have Microsoft Operations Manager 2007, you can configure a monitor to check this server at this time; if the event is located I will not be notified and the system is running well.
But if the monitor did not find this event at this time, the health state of the server will be change to warning or critical state, and I have an option to fire alert with preconfigured setting.
Also, when the health state was changed to non healthy state as you configure the monitor, when the server will be in healthy state again?
Microsoft operation manager 2007 provides us with 3 ways to reset the health state:
Manual reset
Timer reset
Windows event reset
In this guide, we will discuss how to configure a unit monitor to monitor missing windows event.
Configure missing event detection unit monitor is the easy one in windows event detection unit monitor.
download the guide from the following link
http://tarek.ismail.googlepages.com/MonitoringwinEvent-part3.pdf
or contact me at Tarek_877@hotmail.com to get a copy
Tuesday, July 24, 2007
Monitoring Windows Event using Operations manager 2007 - Part 2
Monitoring event log for specific event on a group of servers in a normal way can be a e work to do this and still also not an accurate solution and not automated.
Some times when the event raised, this will not be a problem in the network but when this event repeated within a short time, this could be a problem.
Microsoft System center operations manager provide a perfect solution to monitor the repeated event based on many criteria
By using windows event monitor for repeated event, you will get a magic tool to keep your network up and healthy without manual action to these windows events.
This is the second guide about monitor windows event using operations manager, in this guide we will discuss how to configure repeated event detection monitor
It seems to be easy like working with simple event detection monitor.
download the guide from the following link
http://tarek.ismail.googlepages.com/MonitoringwinEvent-part2.pdf
or contact me at Tarek_877@hotmail.com to get a copy
Sunday, July 22, 2007
Monitoring Windows Event using Operations manager 2007 - Part 1
Monitors in operations manager are divided into three different types of monitors:
1. Unit monitors
2. Aggregate rollup monitors
3. Dependency rollup monitors.
Unit monitor is the basic element of the monitoring in Operations manager , it can be used to monitor all windows Events, Log file , Windows service, windows performance counters , SNMP , and ………….
You have an option with any monitor unit to generate an alert.
Unit monitors can be rolled up to either dependency or aggregate rollup monitors.
Windows events are a very important element we need to monitor on all windows servers and workstations.
Operations manager 2007 provide a comprehensive solution to monitor windows events using monitor units
Monitor windows events are divided into five parts as below:
1. Simple event detection
2. Repeated event detection
3. Missing event detection
4. Correlated event detection
5. Correlated missing event detection
We will discuss all of these points in details one by one in five guides plus the guide number six which will contain some tips and tricks while working with monitoring windows events.
In this guide will discuss how to work with simple event detection
download the guide from the following link
http://tarek.ismail.googlepages.com/MonitoringwinEvent-part1.pdf
or contact me at Tarek_877@hotmail.com to get a copy
Tuesday, July 10, 2007
Operations Manager 2007 Backup and Recovery Guide
This guide includes the following:
Understanding the impact of service failure
Recommendations on what to back up and why
How to back up and restore key server roles and components
Frequently used recovery scenarios
the guide is available here
http://download.microsoft.com/download/7/4/d/74deff5e-449f-4a6b-91dd-ffbc117869a2/OpsMgr2007_Backup.doc
Operations Manager 2007 Design Guide
It will help you to ask the right questions to make sure your design meets your company's needs.
It will make sure that you have answered the most fundamental design questions to ensure your design is flexible and scalable.
It will help you plan and size your Operations Manager 2007 topology using data from the Performance and Sizing Guide.
It provides guidance on how to validate your design in the lab.
the guide is here
http://download.microsoft.com/download/7/4/d/74deff5e-449f-4a6b-91dd-ffbc117869a2/OpsMgr2007_DesignGuid.doc
How to schedule discover and install agent as MOM 2005
Now in system center Operations Manager, this is not available but you can do this using Shell command
the Script can be using to run a Windows schedule task to discover and install Ops Mgr 2007 agent based on your LDAP query
------------------------
param ($OpsMgrservername,$Domainname)
#Initialize the OpsMgr Provider
Add-PSSnapin Microsoft.EnterpriseManagement.OperationsManager.Client
# Set the location to the root of the provider namespace.
cd OperationsManagerMonitoring::
#create a connection to the Management Group
New-ManagementGroupConnection $OpsMgrservername
#change the path
cd $OpsMgrservername
#configure query setting
$ldap_query = new-ldapquerydiscoverycriteria -domain $Domainname -ldapquery "(sAMAccountType=805306369)(name=*ABC*)"
#configure discovery setting
$windows_discovery_cfg = new-windowsdiscoveryconfiguration -ldapquery $ldap_query
# discoveryresults
$discovery_results = start-discovery -managementserver (get-managementserver)-windowsdiscoveryconfiguration $windows_discovery_cfg
#install Agent
install-agent -managementserver (get-managementserver) -agentmanagedcomputer $discovery_results.custommonitoringobjects
----------------------------------------
save the file as Agentdiscoverinstall.ps1
configure the Windows schedule task as
Powershell.exe Agentdiscoverinstall.ps1 -OpsMgrservername:localhost -Domainname:tarek
