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

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... Continue Reading →

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...... 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... Continue Reading →

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... Continue Reading →

Scripts used for administration tasks


Add-SPSite: Adds a new SharePoint site Import-SPSite: Imports a site from a backup file Export-SPSite: Exports a site to a backup file Get-SPWeb: Gets a SharePoint web site Remove-SPSite: Removes a site from the site collection Add-SPList: Creates a new SharePoint list Display-SPList: Displays all lists Remove-SPList: Removes a list Get-SPView: Gets a SharePoint view Display-SPItemInformation: Displays detailed item information Set-SPItem: Modifies a list item CheckIn-SPDocument: Checks... Continue Reading →

Blog at WordPress.com.

Up ↑

%d bloggers like this: