Script to Stop Application Pools on Windows

Data Center Proxies - Data Collectors - Data Unblockers

VB script to Stop Application Pools on Windows IIS 6

As  SysAdmin, We sometimes need to auto-stop some application pools in order to run a specific task like IIS logs cleanup.

This script will detect all application pools that are running and stop them.

=====================
myComputer = “.”
Set objWMIService = GetObject (“winmgmts:\\” & myComputer & “\root\microsoftiisv2”)
Set colItems = objWMIService.ExecQuery (“Select name from IISApplicationPoolSetting where AppPoolState = 2”)
For Each objItems In colItems
poolname=objItems.name
WScript.Echo poolname
AppPoolStop(poolname)
Next
Function AppPoolStop(PoolName)
set PoolcolItems = objWMIService.ExecQuery (“Select name from IISApplicationPool where name='” & poolname & “‘”)
For Each objItem In PoolcolItems
objitem.Stop
Next
End Function
===============
Enter that script in a text file, save it with extension “.vbs”. Copy it at C:\Windows\System32\
Run it manually or via a batch scheduler.
Thanks to Euk-marie. See the equivalent script by Euk-Marie to start the App Pool at https://www.eukhost.com/forums/f15/start-application-pool-simple-script-8937/




The Cloud is the future: The AWS Certified Solutions Architect – Associate Average salary is $149,446/year. Get Certified Now with the apps below:



‎Solution Architect Assoc. PRO
‎Solution Architect Assoc. PRO
  • ‎Solution Architect Assoc. PRO Screenshot
  • ‎Solution Architect Assoc. PRO Screenshot
  • ‎Solution Architect Assoc. PRO Screenshot
  • ‎Solution Architect Assoc. PRO Screenshot
  • ‎Solution Architect Assoc. PRO Screenshot
  • ‎Solution Architect Assoc. PRO Screenshot
  • ‎Solution Architect Assoc. PRO Screenshot
  • ‎Solution Architect Assoc. PRO Screenshot
  • ‎Solution Architect Assoc. PRO Screenshot
  • ‎Solution Architect Assoc. PRO Screenshot
  • ‎Solution Architect Assoc. PRO Screenshot
  • ‎Solution Architect Assoc. PRO Screenshot
  • ‎Solution Architect Assoc. PRO Screenshot
  • ‎Solution Architect Assoc. PRO Screenshot
  • ‎Solution Architect Assoc. PRO Screenshot
  • ‎Solution Architect Assoc. PRO Screenshot
  • ‎Solution Architect Assoc. PRO Screenshot
  • ‎Solution Architect Assoc. PRO Screenshot


AWS Certified Solution Architect Associate SAA PRO
AWS Certified Solution Architect Associate SAA PRO
Developer:
Etienne D. Noumen
Price:
$5.49

  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot
  • AWS Certified Solution Architect Associate SAA PRO Screenshot


Solution Architect PRO
Solution Architect PRO
Developer:
‪Etienne Noumen‬
Price:
$5.39

  • Solution Architect PRO Screenshot
  • Solution Architect PRO Screenshot
  • Solution Architect PRO Screenshot
  • Solution Architect PRO Screenshot
  • Solution Architect PRO Screenshot
  • Solution Architect PRO Screenshot


AWS Certified Cloud Practitioner Exam Prep CCP PRO
AWS Certified Cloud Practitioner Exam Prep CCP PRO
Developer:
Etienne D. Noumen
Price:
$4.99

  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot
  • AWS Certified Cloud Practitioner Exam Prep CCP PRO Screenshot


AWS Certified Cloud Practitioner Mock Exams Pro
AWS Certified Cloud Practitioner Mock Exams Pro
Developer:
‪Etienne Noumen‬
Price:
$5.39

  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot





AWS Certified Developer Associate Exam Prep
AWS Certified Developer Associate Exam Prep
Developer:
‪Etienne Noumen‬
Price:
Free

  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot


Djamga PRO: Pick Up Games Nearby, Fitness, Workout
Djamga PRO: Pick Up Games Nearby, Fitness, Workout
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot
  • Djamga PRO: Pick Up Games Nearby, Fitness, Workout Screenshot

Djamga PRO: Pick Up Games, Health and Fitness Calculator
Djamga PRO: Pick Up Games, Health and Fitness Calculator
Developer:
‪Etienne Noumen‬
Price:
$3.49

  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot


taimienphi.vn