Archive for January, 2013

Correlation ID

get-splogevent | ?{$_.Correlation -eq “a13e8b6f-c360-4d41-90a2-e87846a344cf“} | select Area, Category, Level, EventID, Message | Format-List > C:\Awesome.log

Note: replace the (a13e8b6f-c360-4d41-90a2-e87846a344cf) with the correlation ID


Read Full Post »


The Microsoft Excel spreadsheets linked below document the Active Directory attributes exposed by the LDAP and WinNT providers.

The terms “attribute” and “property” are interchangeable. The name of a property or attribute is similar to the name of a field in a database. The actual value assigned to the attribute is stored in Active Directory.

The Active Directory schema can be extended to include additional attributes. The ones documented in the spreadsheets are only the default attributes when Active Directory is installed.

Read Full Post »


Windows PowerShell Transcript Start

Start time: 20100915124020

Username : CONTOSO\sp_farm

Machine     : SHAREPOINT (Microsoft Windows NT 6.1.7600.0)


Transcript started, output file is C:\Users\sp_farm\Documents\PowerShell_transc


PS C:\Users\sp_farm> notepad

PS C:\Users\sp_farm> get-command -Noun spstate*

CommandType Name Definition

———– —- ———-

Cmdlet Dismount-SPStateServiceDatabase Dismount-SPStateServiceDatab…

Cmdlet Get-SPStateServiceApplication Get-SPStateServiceApplicatio…

Cmdlet Get-SPStateServiceApplicatio… Get-SPStateServiceApplicatio…

Cmdlet Get-SPStateServiceDatabase Get-SPStateServiceDatabase […

Cmdlet Initialize-SPStateServiceDat… Initialize-SPStateServiceDat…

Cmdlet Mount-SPStateServiceDatabase Mount-SPStateServiceDatabase…

Cmdlet New-SPStateServiceApplication New-SPStateServiceApplicatio…

Cmdlet New-SPStateServiceApplicatio… New-SPStateServiceApplicatio…

Cmdlet New-SPStateServiceDatabase New-SPStateServiceDatabase […

Cmdlet Remove-SPStateServiceDatabase Remove-SPStateServiceDatabas…

Cmdlet Resume-SPStateServiceDatabase Resume-SPStateServiceDatabas…

Cmdlet Set-SPStateServiceApplication Set-SPStateServiceApplicatio…

Cmdlet Set-SPStateServiceApplicatio… Set-SPStateServiceApplicatio…

Cmdlet Set-SPStateServiceDatabase Set-SPStateServiceDatabase […

Cmdlet Suspend-SPStateServiceDatabase Suspend-SPStateServiceDataba…

PS C:\Users\sp_farm> get-command -Noun spstate* | select name


Read Full Post »

Central Admin > Monitoring > Configure Diagnostic Logging

The setting is “Trace Log” 

Go to trace log and change the following


 I strongly recommend only changing the drive letter. Leave the path alone


 I strongly recommend only changing the drive letter. Leave the path alone

And change to any other drive

With PowerShell:

Set-SPDiagnosticConfig -LogLocation “E:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS”


Set-SPUsageService -UsageLogLocation “E:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS\”



Read Full Post »

Open the Sharepoint management shell


Run the following command

To get list of databases


The following command to get list of every database used and its Size

Get-SPDatabase | Sort-Object disksizerequired -desc | Format-Table Name, @{Label =”Size in MB”; Expression = {$_.disksizerequired/1024/1024}}

To know how much total space is needed

Run the following

Get-SPDatabase | ForEach-Object {$db=0} {$db +=$_.disksizerequired; $ + ” – ” + $_.disksizerequired/1024/1024} {Write-Host “`nTotal Storage (in MB) =” (“{0:n0}” -f ($db/1024/1024))}

Read Full Post »

Read Full Post »

Go to the main page site settings

The go to Storage Metrics
under the

Site Collection Administration

Then check for the size of every site, library and list

Read Full Post »

Older Posts »

%d bloggers like this: