21
Apr/10
2

“vssadmin list writers” does not return any writers

If you get one of the following events in your Application Event Log, try the solution below:

Event Type: Error
Event Source: VSS
Event ID: 20
Description: Volume Shadow Copy Service error: A critical component required by the Volume Shadow Copy Service is not registered. This might happened if an error occurred during Windows setup or during installation of a Shadow Copy provider. The error returned from CoCreateInstance on class with CLSID {faf53cc4-bd73-4e36-83f1-2b23f46e513e} and Name VSSEvent is [0x80040154].

Event Type: Error
Event Source: VSS
Event ID: 20
Description: Volume Shadow Copy Service error: A critical component required by the Volume Shadow Copy Service is not registered. This might happened if an error occurred during Windows setup or during installation of a Shadow Copy provider. The error returned from CoCreateInstance on class with CLSID {faf53cc4-bd73-4e36-83f1-2b23f46e513e} and Name VSSEvent is [0x80004002].

Event Type: Error
Event Source: VSS
Event ID: 8193
Description: Volume Shadow Copy Service error: Unexpected error calling routine CoCreateInstance. hr = 0×80040154.

Event Type: Error
Event Source: VSS
Event Category: None
Event ID: 8193
Description: Volume Shadow Copy Service error: Unexpected error calling routine CoCreateInstance. hr = 0×80004002.

Event Type: Error
Event Source: VSS
Event ID: 12302
Description: Volume Shadow Copy Service error: An internal inconsistency was detected in trying to contact shadow copy service writers. Please check to see that the Event Service and Volume Shadow Copy Service are operating properly.

Solution:
Click Start, click Run, type cmd, and then click OK.
Type the following commands at a command prompt. Press ENTER after you type each command.

cd /d %windir%\system32
Net stop vss
Net stop swprv
regsvr32 ole32.dll
regsvr32 oleaut32.dll
regsvr32 vss_ps.dll
vssvc /register
regsvr32 /i swprv.dll
regsvr32 /i eventcls.dll
regsvr32 es.dll
regsvr32 stdprov.dll
regsvr32 vssui.dll
regsvr32 msxml.dll
regsvr32 msxml3.dll
regsvr32 msxml4.dll
cd /d %windir%\system32
Net stop vss
Net stop swprv
regsvr32 ole32.dll
regsvr32 oleaut32.dll
regsvr32 vss_ps.dll
vssvc /register
regsvr32 /i swprv.dll
regsvr32 /i eventcls.dll
regsvr32 es.dll
regsvr32 stdprov.dll
regsvr32 vssui.dll
regsvr32 msxml.dll
regsvr32 msxml3.dll
regsvr32 msxml4.dll

Print This Post
(2 votes, average: 5.00 out of 5)
Loading ... Loading ...
663 views
27
Jul/09
1

How to Check Mailbox Size on Exchange Server via Script

Here’s a small VBScript that enumerates an Exchange Information Store and lists all Mailbox sizes.
Takes 1 Argument (ExchangeServerName)

Run “cscript MSX_GetMailboxSize.vbs YOUREXCHANGESERVER>Output.csv” to get a Comma Separated Value file.

VBScript Code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
On Error Resume Next
Dim cComputerName
Const cWMINameSpace = "root/MicrosoftExchangeV2"
Const cWMIInstance = "Exchange_Mailbox"
cComputerName = WScript.Arguments(0)
 
Dim strWinMgmts
Dim objWMIExchange
Dim listExchange_Mailboxs
Dim objExchange_Mailbox	
 
strWinMgmts = "winmgmts:{impersonationLevel=impersonate}!//"& _
cComputerName&"/"&cWMINameSpace
Set objWMIExchange =  GetObject(strWinMgmts)
 
If Err.Number <> 0 Then
  WScript.Echo "ERROR: Unable to connect to the WMI namespace."
Else
 
  Set listExchange_Mailboxs = objWMIExchange.InstancesOf(cWMIInstance)
 
  If (listExchange_Mailboxs.count > 0) Then
 
    WScript.Echo "Display Name,SizeMB,SizeGB,Storage Group,Store,Total Items"
    For Each objExchange_Mailbox in listExchange_Mailboxs
       WScript.Echo objExchange_Mailbox.MailboxDisplayName & "," & Round(FormatNumber(objExchange_Mailbox.Size / 1024, 2), 0) & "," & Round(FormatNumber(objExchange_Mailbox.Size / 1024 / 1024, 2), 2) & "," & objExchange_Mailbox.StorageGroupName & "," & objExchange_Mailbox.StoreName & "," & objExchange_Mailbox.TotalItems
    Next
  Else
    WScript.Echo "WARNING: No Exchange_Mailbox instances were returned."
  End If
End If
Print This Post
(5 votes, average: 3.20 out of 5)
Loading ... Loading ...
2,370 views
26
Jul/09
2

Renew expired Exchange 2007 Certificate

If your Exchange Certificate expires after 1 year of duty, you’ll probably notice many unhappy faces trying to rip you apart every morning. Users will receive Certificate Warnings when opening Outlook or using Outlook Web Access.
In addition, you get the following events on the Exchange 2007 Server:

Log Name: Application
Source: MSExchangeTransport
Date: 4/14/2009 2:10:22 PM
Event ID: 12015
Task Category: TransportService
Level: Warning
Keywords: Classic
User: N/A
Computer: MSX2K7
Description:
An internal transport certificate expired. Thumbprint:A0F32351EC29C1451B43CF7438AA1A4E147EA54D

Here’s what you need to do (Step by step):

Open the Exchange 2007 Management Shell and type:

Get-ExchangeCertificate | List
To receive a List of Certificates installed

New-ExchangeCertificate
To create a new Exchange Certificate

Enable-ExchangeCertificate -Thumbprint 57540C16F16C941CCB761079A5FC3402F34A3F69 -Service IIS
To Enable the new Certificate on the IIS Service (You can see the Thumbprint of your newly created certificate after you execute the “New-ExchangeCertificate” command. Replace this Thumbprint above with your own)

Remove-ExchangeCertificate -Thumbprint A0F32351EC29C1451B43CF7438AA1A4E147EA54D
And finally remove the old Certificate from the store

Print This Post
(10 votes, average: 4.20 out of 5)
Loading ... Loading ...
3,586 views
26
Jul/09
0

Microsoft Active Directory Topology Diagrammer

The Microsoft Active Directory Topology Diagrammer reads an Active Directory configuration using ActiveX Data Objects (ADO), and then automatically generates a Visio diagram of your Active Directory and /or your Exchange 200x Server topology. The diagramms include domains, sites, servers, administrative groups, routing groups and connectors and can be changed manually in Visio if needed.

Download: microsoft.com

MADTD

Print This Post
(2 votes, average: 5.00 out of 5)
Loading ... Loading ...
551 views
26
Jul/09
0

PowerGUI (Freeware)

PowerGUI is a very nice tool that allows you to generate Powershell Scripts based on an Object Browser. It provides several interfaces such as VMWare Infrastructure Management, Microsoft Active Directory, Microsoft Exchange, Hyper-V and many more.

PowerGUI is the tool administrators need to rapidly adopt PowerShell within their environment. Immediately begin building powerful scripts that harness the power of PowerShell across your environment.  

Download: PowerGUI

PowerGUI

PowerGUI

PowerGUI Script Editor

PowerGUI_ScriptEditor

PowerGUI Code Generator

PowerGUI_CodeGenerator

Print This Post
(1 votes, average: 4.00 out of 5)
Loading ... Loading ...
304 views