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

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)


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


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


Posted On: 1/24/2018 5:56:17 PM

insanity swarovski adidas zx mac makeup canada goose burberry outlet jordans ugg boots moncler jackets adidas outlet pandora charms flops true religion outlet converse shoes true religion outlet jordan juicy couture swarovski basketball shoes air max 2017 cartier love bracelet michael kors wedding dresses prada parajumpers cheap nfl jerseys air max ralph lauren moncler ray ban outlet rolex watches nike roshe run michael kors outlet uggs outlet michael kors oakley vault ugg boots salomon shoes mizuno wave air max flip flops michael kors hogan chi flat iron montre pas cher herve leger nike air huarache ray ban ray ban nike air longchamp north face reebok bcbg max tommy hilfiger prada outlet michael kors outlet online store cheap ugg boots the north face canada goose replica watches pandora montre canada goose oakley vault reebok pandora oakley sunglasses vanessa bruno cheap eyeglasses nike air max puma shoes oakley new balance shoes sac burberry nike store cheap nfl jerseys vans shoes nike store nike store guess ed hardy new balance wedding dresses michael kors oakley sunglasses ugg nike shoes dolce and gabbana air jordan nike trainers polo ralph lauren sac longchamp nike free run oakley sunglasses cheap tommy hilfiger adidas trainers north face outlet oakley vault nike air celine air max hermes outlet links of london roshe run asics air max 95 oakley sunglasses nike free roshe run north face ugg boots longchamp michael kors borse kobe 9 nike air force ralph lauren outlet ralph lauren hollisterco cheap air jordan soccer shoes moncler wedding dresses ugg boots moncler ferragamo ray ban sunglasses timberland boots roty burch outlet converse free run hollister coach outlet online ray ban jimmy choo ray ban hollister canada goose jackets baseball bats ralph lauren uk mulberry coach outlet the north face michael kors outlet adidas superstar guess soccer jerseys beats headphones marc jacobs longchamp handbags tommy hilfiger nike free juicy couture rolex watches kobe 10 mac cosmetics ugg converse uggs outlet levi's jeans ugg boots ugg boots lebron james shoes kevin durant shoes juicy couture outlet ray ban sunglasses dansko shoes ugg australia michael kors outlet pandora jewelry louboutin longchamp bags ralph lauren valentino christian louboutin mizuno running shoes timberland shoes nike mercurial nike air max nike outlet uggs outlet michael kors outlet bottega oakley roty burch outlet online ralph lauren moncler outlet converse coach factory outlet bottes ugg new balance adidas uk adidas nike free michael kors moncler fendi hollister kate spade outlet michael kors outlet cheap uggs burberry outlet hollister new balance trainer nike ray ban ghd louboutin nike blazer pas cher red bottoms nike roshe run michael kors outlet burberry outlet store moncler jackets hermes swarovski true religion jeans coach purse karen millen uk longchamp air max hollister michael kors handbags ugg boots fivefingers nike mercurial jordan ray ban sunglasses birkin bag ray ban sunglasses mac makeup nike air max nike air max polo lacoste ray ban sunglasses sac michael kors rolex wedding dresses roshe run beats by dre timberland boots kate spade giuseppe zanotti ralph lauren outlet moncler louboutin ferragamo oakley nike roshe run pas cher pandora jewelry canada goose outlet jordan shoes vans marc jacobs converse ugg outlet true religion jeans huarache north face rolex stuart weitzman nike air force timberland oakley sunglasses burberry outlet online asics nike tn longchamp pandora thomas sabo ugg hogan outlet mont blanc jordan lebron 11 north face pas cher oakley sunglasses montblanc kate spade outlet asics polo ralph lauren timberland lebron shoes true religion louboutin nike air max flip flops ugg canada goose ferragamo jordan shoes ray ban sunglasses canada goose jackets adidas shoes ugg australia tods canada goose louboutin louboutin pas cher hollister sac guess beats by dre nike free montre homme new balance mac cosmetics polo ralph lauren uggs omega watches vans supra tory burch outlet coach outlet store online michael kors outlet christian louboutin vans shoes instyler ionic styler air max michael kors canada barbour mulberry outlet balenciaga nike blazer michael kors outlet jordan retro true religion jeans swarovski uk air jordans nike shoes 2018.1.25xukaimin


Posted On: 3/30/2018 5:30:24 AM

2018331 leilei3915 fitflops sandals canada goose jackets polo ralph lauren ralph lauren coach outlet fred perry polo shirts ralph lauren shirts cheap mlb jerseys ugg outlet coach outlet online uggs outlet coach outlet air jordan 4 nike outlet pandora outlet uggs outlet tory burch outlet uggs outlet adidas nmd michael kors outlet clearance uggs outlet canada goose uk michael kors handbags coach factory outlet canada goose outlet michael kors handbags cheap oakley sunglasses pandora outlet fred perry clothing ed hardy clothing pandora bracelet mbt shoes nike air jordan 4 oakley sunglasses wholesale coach outlet online christian louboutin shoes kate spade pandora charms canada goose ray ban sunglasses outlet kate spade outlet store nmd adidas coach outlet pandora pandora jewelry outlet canada goose ugg boots true religion jeans nike outlet online longchamp michael kors handbags sale canada goose outlet online canada goose outlet store tory burch outlet pandora charms sale clearance ugg boots kate spade outlet ralph lauren outlet michael kors uk supreme t shirts kate spade outlet polo ralph lauren jordan retro shoes canada goose canada goose uggs outlet canada goose canada goose outlet nike outlet michael kors outlet online pandora charms sale clearance oakley sunglasses wholesale canada goose michael kors outlet mlb jerseys wholesale true religion outlet canada goose jackets true religion jeans pandora outlet ralph lauren shirts canada goose jackets kate spade outlet oakley sunglasses cheap nba jersey christian louboutin outlet ugg boots coach outlet store online coach outlet cheap jordans for sale canada goose outlet canada goose jackets polo ralph lauren outlet michael kors handbags clearance adidas yeezy shoes polo ralph lauren outlet online jordan retro coach outlet online pandora charms kate spade outlet pandora