Skip to content

{ Category Archives } PowerShell

Automagically Fixing FailedAndSuspended Exchange 2010 Databases with PowerShell

Another quick script, this one finds all databases located on Exchange 2010 servers with a status of ‘FailedAndSuspended’ and then reseeds them. Since this scripts makes changes to the systems, instead of just reading information, all activities are logged via PowerShell’s transcript feature. You’ll need to change the path in the 5th line of the [...]

Tagged ,

Checking Exchange 2010 Database Health with PowerShell

Just a quick script that checks your databases. Anything besides ‘Healthy’ or ‘Mounted’ should probably be investigated. Add-PSSnapin *0* -ErrorAction SilentlyContinue $mailboxservers = get-mailboxserver | get-exchangeserver | ?{$_.IsE14OrLater -eq ‘True’} $A = (get-host).UI.RawUI $A.WindowTitle = “Database Health Check” $B = $A.windowsize $B.width = 110 $B.height = 30 $A.WindowSize = $B while ($true) {cls; foreach ($mailboxserver [...]

Tagged ,

Remotely Create A Registry Key With PowerShell

Something new I learned today is how to remotely create a registry key using remote PowerShell. You can also modify, query, etc.. See TechNet for a reference on the use of the reg command including valid value types, examples and such. Invoke-Command -ComputerName <server fqdn> -ScriptBlock {reg add <registry path> /v <value name> /t <value [...]

Tagged ,

Free PowerShell Script: Monitoring SCR Health

Let me know if you see anything obviously wrong with it. Use at your own risk! ################################# #Copyright 2009 Cohesive Logic LLC #SCR Health Check Script #Description – Determines if any of the storage groups on the SCR target server are in an unhealthy state. ################################# #Options – Specify the following options for the target [...]

Tagged ,