" /> The Japan Page: April 2007 Archives

« March 2007 | Main | May 2007 »

April 13, 2007

Random notes on Scripting for PowerShell

Output all Exchange cluster resources:
Get-Wmiobject -query "Select * from ExchangeClusterResource" -namespace root\CIMV2\Applications/Exchange -computer ExchangeServer


Output all Exchange cluster resources:
Get-Wmiobject -query "Select * from ExchangeQueue" -namespace root\CIMV2\Applications/Exchange -computer ExchangeServer

Get the 10 largest MB's on a server:
Get-Wmiobject -namespace root\MicrosoftExchangeV2 -class Exchange_Mailbox -computer ExchangeServer | sort -desc size | select storename,storagegroupname,name,mailboxdisplayname,size,totalitems -first 10


Get-Wmiobject -namespace root\CIMV2\Applications\Exchange -computer paexhs02 -class ExchangeServerState

Get-Wmiobject -namespace root\MicrosoftExchangeV2 -class Exchange_Server -computer paexhs02


See the Microsoft Exchange 2003 SDK WMI Provider documentation here.

April 10, 2007

Radiant Barrier and iButtons...

The house remodel is coming along nicely, I've been stapling some radiant barrier in the attic to get ready for the summer heat. If it works half as well as advertised the place will be much cooler in the summer. The insulation up there dates from the early 80's and is compressed and covered with dust. But I don't want to cover up until I'm finished with electrical work and create some storage area.

I added a powered attic gable vent as soon as the electric panel was redone, that knocked a good 10-15 degrees off the inside (of the living area) on hot days. Up next are some Maxim / Dallas Semiconductor iButtons on a 1wire MicroLan, hooked up to a small Linux server no doubt. That way I can measure attic temp (top and bottom), soffit vent in temp and gable vent out temp, just to get an idea how hot it really is up there. Next up is to control the powered gable fan on the server. That saves having to pull the breaker during the winter. And the whole thing will be web-controlled. Just don't tell my wife, she already thinks I'm a nerd...

The HA7Net (He he, Hal in elitespeak?) controller. Ethernet in, 1wire MicroLan out with embedded web and telnet controller.

Sponsored Links

Powered by