Correlation ID


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

Advertisements

Active Directory User Object Attributes


https://profadmins.com/?attachment_id=495

 

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.

PowerShell notes


**********************

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

ript.20100915124020.txt

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

Continue reading

Move your SharePoint 2010 logs off of your C drive


Central Admin > Monitoring > Configure Diagnostic Logging

The setting is “Trace Log” 

Go to trace log and change the following

Note:

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

Note:

 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”

And

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

 

Reference

http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=304

Using PowerShell to determine SharePoint database size


Open the Sharepoint management shell

Then

Run the following command

To get list of databases

Get-SPDatabase

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; $_.name + ” – ” + $_.disksizerequired/1024/1024} {Write-Host “`nTotal Storage (in MB) =” (“{0:n0}” -f ($db/1024/1024))}


SharePoint Server 2010 capacity management


http://technet.microsoft.com/en-us/library/cc262787(office.14).aspx

How to find SharePoint List and Libraries true Size?


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