This VB script will start the stopped app pool and send email to desired email address, also it will exclude the undesired apppool. It will send email only and after if a apppool was stopped and started by this script:
=========================================================================
Set oWebAdmin = GetObject("winmgmts:root\WebAdministration")
Set oAppPools = oWebAdmin.InstancesOf("ApplicationPool")
'Search in all App Pools
For Each oAppPool In oAppPools
IF (oAppPool.name <> "Devtesting" ) Then
IF oAppPool.GetState= 1 Then
'wscript.echo "App Pool Started"
ElseIF oAppPool.GetState= 3 Then
'wscript.echo "App Pool Stopped"
' Following command Starts App Pool
oAppPool.Start
temp = temp & ", " & oAppPool.Name
END IF
END IF
Next
IF (temp <> "") Then
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Monitoring APP POOLS on SP Farm"
objMessage.From = "santosh.sethi@gmail.com"
objMessage.To = "santosh.sethi@gmail.com"
objMessage.TextBody = "Monitorinig Message, App Pool: " & temp & " was down and automatically started."
'==This section provides the configuration information for the remote SMTP server.
'==Normally you will only change the server name or IP.
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "SMTP server name"
'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objMessage.Configuration.Fields.Update
'==End remote SMTP server configuration section==
objMessage.Send
END IF
set oWebAdmin = nothing
Set oAppPools = nothing
Set objMessage = nothing
**Reference link : http://msdn.microsoft.com/en-us/library/ms691445(v=vs.90).aspx
SharePoint has many Lists. Following is a list of BaseTemplateType of some of the SharePoint List that I know for a quick reference.
Notused | -1 |
NoListTemplate | 0 |
GenericList | 100 |
DocumentLibrary | 101 |
Survey | 102 |
Links | 103 |
Announcements | 104 |
Contacts | 105 |
Events | 106 |
Tasks | 107 |
DiscussionBoard | 108 |
PictureLibrary | 109 |
DataSources | 110 |
WebTemplateCatalog | 111 |
UserInformation | 112 |
WebPartCatalog | 113 |
ListTemplateCatalog | 114 |
XMLForm | 115 |
MasterPageCatalog | 116 |
NoCodeWorkflows | 117 |
WorkflowProcess | 118 |
WebPageLibrary | 119 |
CustomGrid | 120 |
SolutionCatalog | 121 |
NoCodePublic | 122 |
ThemeCatalog | 123 |
DesignCatalog | 124 |
AppDataCatalog | 125 |
DataConnectionLibrary | 130 |
WorkflowHistory | 140 |
GanttTasks | 150 |
HelpLibrary | 151 |
AccessRequest | 160 |
TasksWithTimelineAndHierarchy | 171 |
MaintenanceLogs | 175 |
Meetings | 200 |
Agenda | 201 |
MeetingUser | 202 |
Decision | 204 |
MeetingObjective | 207 |
TextBox | 210 |
ThingsToBring | 211 |
HomePageLibrary | 212 |
Posts | 301 |
Comments | 302 |
Categories | 303 |
Facility | 402 |
Whereabouts | 403 |
CallTrack | 404 |
Circulation | 405 |
Timecard | 420 |
Holidays | 421 |
IMEDic | 499 |
Microfeed | 544 |
ExternalList | 600 |
MySiteDocumentLibrary | 700 |
PublishingPageLibrary | 850 |
PublishingImageLibrary | 851 |
IssueTracking | 1100 |
AdminTasks | 1200 |
HealthRules | 1220 |
HealthReports | 1221 |
DeveloperSiteDraftApps | 1230 |
PersonalDocumentLibrary | 2002 |
PrivateDocumentLibrary | 2003 |