By David Wiseman (Administrator)Created 05 Aug 2006
My Rating:
Vote
Rating:
Not Rated
Views:16288
Downloads:264

Shutdown a Computer

Language:  VBScript

Compatibility

Windows XP Yes Windows 2003 Yes
Windows 2000 Unknown Windows NT Unknown
Vista Unknown Windows 2008 Unknown
Description

Shutdown local/remote computer.


Notes
Change strComputer variable to shutdown a remote computer. 
Code

Line Numbers: On  Off      Plain Text
strComputer = "." ' Local Computer
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}\\" & _
        		strComputer & "\root\cimv2")

Set colOs = objWMIService.ExecQuery("Select * from Win32_OperatingSystem")
 
For Each objOs in colOs
	objOs.Win32Shutdown(1)
Next

 


Got a useful script? Click here to upload!


 

  Post Comment
Order By:  
User Comments
      
sg7medic
Posted On: 11/12/2007 5:15:02 PM

I tried the script and it works (many scripts found on the net don't)
thank you.
I am using this script with the task scheduler to shut down the office computers at 6pm. In case someone might be staying late, I want to warn them.

request:
display a message box stating computer will shutdown in 3 minutes and add a 3 minute delay to the shutdown script.

thanx again
michael (user: sg7medic)

20171130caihuali
Posted On: 11/29/2017 11:52:35 PM

nhl jerseys ugg boots clearance fitflops reebok outlet store ray ban sunglasses ray ban sunglasses michael kors handbags nike foamposite mulberry handbags longchamp pliage coach outlet ferragamo outlet true religion outlet canada goose outlet canada goose jackets polo shirts ugg boots clearance michael kors outlet canada goose jackets polo ralph lauren ugg outlet canada goose jackets cheap snapbacks nike outlet ugg outlet canada goose coats michael kors michael kors outlet thomas sabo canada goose jackets pandora jewelry fitflops sale clearance mont blanc pens canada goose outlet reebok trainers michael kors outlet michael kors black friday moncler jackets christian louboutin online polo ralph lauren air max 90 fitflops shoes oakley sunglasses longchamp outlet polo ralph lauren moncler outlet ugg outlets ugg outlet ray ban sunglasses longchamp bags coach outlet oakley sunglasses ralph lauren polo adidas wings longchamp outlet ugg outlet canada goose jackets christian louboutin shoes coach outlet canada goose outlet uggs outlet nike air max 2015 michael kors outlet pandora jewelry lakers jerseys nike outlet lacoste soldes coach outlet online supra shoes pandora charms sale clearance nike roshe michael kors outlet cazal sunglasses coach outlet kobe bryant shoes new balance shoes ugg outlet nfl jersey wholesale ugg outlet michael kors outlet tory burch outlet air max 90 coach outlet online canada goose outlet coach outlet michael kors handbags prada outlet burberry outlet jordan shoes prada shoes coach factory outlet polo ralph lauren uggs outlet ferragamo outlet tods outlet nba jerseys air max 90 coach outlet ugg boots clearance coach handbags polo ralph lauren michael kors handbags true religion jeans michael kors outlet uggs outlet air max 1 ugg outlet michael kors outlet online coach outlet christian louboutin uk nike air force 1 michael kors outlet oakley sunglasses ray ban sunglasses coach outlet ugg outlet uggs outlet michael kors outlet true religion jeans mcm outlet ugg outlet adidas trainers swarovski crystal kate spade outlet oakley sunglasses ugg boots clearance ugg boots uggs ray ban sunglasses mbt shoes canada goose outlet true religion jeans ferragamo shoes michael kors handbags tory burch outlet tory burch outlet ray-ban sunglasses longchamp solde giuseppe zanotti outlet coach outlet online nike air max canada goose jackets converse shoes ferragamo shoes moncler jackets prada handbags longchamp solde polo ralph lauren nike shoes ugg boots jordan shoes canada goose jackets oakley sunglasses pandora charms sale clearance cheap jordans kate spade outlet oakley sunglasses ray ban sunglasses birkenstock sandals nike store oakley sunglasses soccer jerseys michael kors handbags toms sko coach outlet cheap nhl jerseys ecco shoes oakley sunglasses mulberry handbags polo outlet football shirts ugg cyber monday oakley sunglasses oakley sunglasses marc jacobs outlet vans outlet ed hardy clothing hermes outlet cheap jordans christian louboutin outlet true religion outlet coach outlet swarovski outlet ralph lauren outlet ugg boots clearance michael kors outlet true religion outlet ray ban sunglasses vans shoes longchamp handbags true religion outlet cheap jerseys michael kors outlet swarovski crystal coach handbags michael kors outlet online ray ban sunglasses canada goose jackets coach outlet online polo outlet true religion jeans hermes belt oakley sunglasses wholesale ugg boots coach outlet online bottega veneta outlet ugg boots clearance canada goose jackets prada sunglasses coach outlet longchamp handbags fitflops sale clearance michael kors outlet uggs outlet dansko shoes ray ban sunglasses ray ban sunglasses mulberry bags canada goose outlet links of london tory burch shoes michael kors outlet coach outlet mulberry bags jordan shoes nike store uk ray ban sunglasses michael kors oakley sunglasses christian louboutin outlet ysl outlet burberry outlet michael kors outlet coach outlet canada ugg boots kate spade outlet soccer jerseys ferragamo outlet herve leger outlet ugg outlet cheap nfl jerseys oakley sunglasses oakley sunglasses polo ralph lauren coach outlet ugg outlet michael kors outlet hermes outlet futbol baratas ugg outlet nike outlet ferragamo outlet pandora jewelry ugg outlet converse shoes air max trainers ray ban sunglasses soccer shoes ugg boots chrome hearts cheap jerseys uggs outlet ugg boots adidas sko new balance shoes michael kors outlet online michael kors uk moncler outlet ugg boots clearance swarovski outlet tory burch outlet michael kors outlet canada goose outlet canada goose outlet canada goose outlet air max uk coach factory outlet coach outlet store online oakley sunglasses yeezy boost kevin durant shoes jordan shoes oakley sunglasses coach outlet online ugg outlet polo outlet true religion jeans moncler outlet ralph lauren polo nfl jerseys wholesale mac cosmetics swarovski outlet uggs outlet canada goose black friday tory burch outlet ralph lauren uk yeezy boost 350 ray ban sunglasses christian louboutin shoes longchamp pas cher ugg outlet michael kors factory outlet canada goose parka nike shoes air huarache ugg black friday coach outlet michael kors outlet online swarovski outlet canada goose outlet mulberry outlet adidas uk michael kors outlet online ugg boots canada goose outlet true religion uk michael kors bags coach outlet online salomon shoes canada goose outlet ecco sale canada goose cyber monday michael kors outlet cleveland cavaliers jersey nike free 5 ugg outlet coach factory outlet coach outlet pandora charms uggs outlet canada goose outlet oakley sunglasses canada goose outlet ralph lauren polo true religion jeans michael kors outlet cartier outlet christian louboutin shoes coach outlet online ray ban sunglasses adidas nmd canada goose outlet canada goose jackets burberry outlet montblanc pens adidas outlet store ugg outlet air huarache coach canada ralph lauren uk tory burch outlet ralph lauren outlet true religion jeans fitflops outlet kobe 9 christian louboutin shoes ugg outlet mont blanc pens ralph lauren polo shirts adidas nmd polo ralph lauren kobe shoes lebron james shoes cheap snapbacks ray ban sunglasses puma outlet cheap mlb jerseys ugg outlet ray ban sunglasses puma shoes kate spade outlet oakley sunglasses polo ralph lauren adidas shoes nike air max 90 kate spade outlet ralph lauren polo canada goose outlet true religion jeans fitflops shoes michael kors basketball shoes fitflops coach factory outlet michael kors outlet ralph lauren outlet ugg outlet coach outlet nike trainers coach factory outlet ugg outlet coach outlet online uggs outlet nike trainers polo outlet mulberry handbags ralph lauren pas cher coach outlet oakley sunglasses christian louboutin outlet mulberry handbags canada goose jackets kate spade outlet polo outlet ugg outlet ugg boots clearance michael kors wallets michael kors outlet hermes birkin canada goose outlet timberland boots kicks nice michael kors outlet pandora jewelry mulberry outlet valentino outlet coach factory outlet oakley sunglasses wholesale ray ban sunglasses burberry outlet birkenstock outlet nike factory outlet christian louboutin outlet coach outlet longchamp outlet polo ralph lauren polo ralph lauren cheap mlb jerseys cheap jordans louboutin shoes ugg outlet tory burch outlet nike roshe one nba jerseys canada goose outlet ralph lauren polo shirts canada goose outlet mulberry sale chicago blackhawks jerseys christian louboutin outlet coach outlet oakley sunglasses longchamp handbags oakley sunglasses air max 90 uggs outlet asics shoes fitflops sale clearance lacoste polo shirts canada goose outlet polo ralph lauren canada goose outlet michael kors outlet ugg outlet true religion jeans uggs outlet christian louboutin outlet true religion jeans air jordan 4 michael kors Girls shoes cheap jordans ugg outlet oakley sunglasses chrome hearts outlet polo ralph lauren huaraches shopping ray bans fitflops sale michael kors handbags ugg boots nike trainers coach outlet longchamp handbags canada goose jackets ugg outlet christian louboutin outlet fred perry polo shirts michael kors handbags moncler outlet christian louboutin shoes coach outlet online nike outlet true religion jeans ferragamo outlet nike blazer pas cher 20171130caihuali

jeje222
Posted On: 12/7/2017 11:00:21 PM

adidas yeezy lacoste polo led shoes for kids adidas superstar shoes kate spade outlet online longchamp bags retro jordans dior sunglasses nike air zoom cheap mlb jerseys yeezy boost 350 v2 basketball shoes adidas nmd vans outlet air max 90 links of london sale yeezy boost 350 prada glasses nike air huarache golden goose balenciaga sneakers 100% real jordans for cheap jordan 11 moncler jackets jordan 11 retro true religion jeans kobe basketball shoes kyrie 4 yeezys cheap jordans kobe shoes michael kors outlet online van cleef arpels yeezy boost 350 golden goose nike huarache michael kors handbags adidas tubular kate spade handbags air jordan adidas superstar shoes patriots jersey nike dunks air jordan shoes kyrie shoes harden shoes michael kors outlet nike huarache hermes birkin longchamp adidas tubular adidas tubular shadow kyrie 3 shoes lacoste online shop true religion nike zoom air force 1 jordan retro lebron shoes tom ford eyewear golden goose sneakers yeezy christian louboutin shoes prada sunglasses adidas stan smith shoes longchamp sale air max 90 air max 2018 Kanye West shoes birkin bag michael kors uk nmd nike huarache adidas outlet online nike air max 90 retro jordans michael kors air yeezy adidas nmd lebron james shoes kobe basketball shoes led shoes michael jordan shoes hogan outlet dior glasses yeezy shoes kobe sneakers adidas eqt air jordan shoes led shoes asics shoes yeezy boost 350 v2 michael kors outlet store hermes belt adidas neo michael kors outlet nike foamposite nike air max 90 hogan outlet online supreme hoodie hermes handbags reebok shoes nmd michael kors handbags adidas ultra nike football boots fitflops sale clearance adidas online shop adidas tubular shadow longchamp handbags goyard bags jordan shoes http://www.kobeshoes.uk nike huarache longchamp longchamps curry shoes asics running shoes jordan shoes nike roshe run adidas ultra boost pandora jewelry pandora jewelry michael jordan shoes longchamp handbags nike air max 2018 jordan shoes air max 2016 curry 3 converse outlet cheap jordans longchamp handbags jordan 6 curry 4 adidas yeezy supreme clothing kobe 9 lebron 15 michael kors outlet adidas nmd roshe shoes james harden shoes cheap jordans jordan retro 6 af1 kd shoes adidas outlet new england patriots jersey light up shoes nmd yeezy boost ferragamo belt kobe 11 adidas outlet jordan retro 12 hermes belt adidas superstar yeezy boost 350 v2 louboutin shoes tory burch shoes yeezy boost nike air force 1 kevin durant shoes jordan 4 air jordans golden goose air max tory burch shoes cheap basketball shoes ultra boost adidas yeezy boost tory burch outlet nike air force 1 adidas tubular adidas shoes nike free cheap nfl jerseys yeezy shoes kobe 9 nike basketball shoes cartier bracelet adidas ultra boost uncaged kobe shoes van cleef true religion outlet authentic jordans golden goose outlet mlb jerseys birkin bag nike air zoom basketball shoes longchamp outlet nike air huarache air max 2017 calvin klein outlet yeezy boost hermes belts for men kyrie irving shoes vans shoes pandora bracelet yeezy shoes timberland outlet gucci belt longchamp bags goyard handbags yeezy boost 350 cheap jordans air jordan goyard bags adidas ultra boost golden goose sneakers ysl bags kobe 11 yeezy boost 350 nike roshe run michael kors outlet lebron 15 adidas outlet lacoste outlet yeezy boost 350 nike roshe one louboutin shoes uk adidas tubular 100% real jordans for cheap jordan shoes kyrie 3 cheap jordans adidas nmd r1 longchamp lebron 13 nike zoom running shoe nike polo shirts jordan 13 adidas online shop chrome hearts fitflops roshe run adidas nmd runner ferragamo belts nike free run michael kors outlet online curry 3 shoes michael kors outlet online adidas store nike air force longchamp bags balenciaga shoes real jordans for sale cheap yeezy boost gucci belts jordan shoes michael kors handbags nike mercurial bape hoodie hermes belts adidas ultra boost adidas stan smith sneakers moncler outlet pandora charms nike dunk shoes kyrie 4 nike air huarache goyard handbags chrome hearts online longchamp bags reebok outlet air jordan 13 yeezy boost 350 adidas nmd true religion retro jordans falcons jersey nike air max 2017 yeezy boost 350 v2 stephen curry shoes lacoste outlet lebron 13 shoes nike roshe uk balenciaga shoes converse shoes adidas stan smith adidas stan smith christian louboutin nike air max ysl handbags converse outlet store yeezy shoes brady jersey yeezy boost 350 birkin bag lebron 14 vibram five fingers hermes belt longchamps bape hoodie vibram fivefingers kobe shoes kate spade outlet yeezy boost adidas gazelle adidas nmd adidas superstar timberland boots fitflops chrome hearts online air force 1 pandora charms links of london jordan 12 http://www.kobebasketballshoes.us.com michael kors handbags longchamp outlet chrome hearts kobe byrant shoes curry 4 chrome hearts nike air force nhl jerseys balenciaga sneakers tom ford sunglasses yeezy shoes yeezys vans shoes links of london outlet store atlanta falcons jersey cheap jordans nike zoom yeezy boost 350 v2 yeezy links of london michael kors outlet nfl jerseys adidas outlet online calvin klein outlet online converse outlet michael kors factory outlet lebron 14 shoes nike air max yeezy shoes yeezy boost 350 nike polo