12.17.2014
8.05.2014
SharePoint 2010 - Search Sevice Application Problems (Event IDs: 6482, 6398, 2159)
SharePoint really has a mind of it's own. For whatever reason one day all of the search service applications stopped working. I found several articles that stated that all of the search service application objects needed to be deleted and rebuilt. Other article indicating that the indexes needed to be cleared out. Finally, I found this one line powershell gem that fixed my issue of event IDs: 6482, 6398, 2159. Voila...all the event errors stopped.
Get-SPEnterpriseSearchServiceInstance -Local | Start-SPEnterpriseSearchServiceInstance
http://social.msdn.microsoft.com/Forums/en-US/3e24eaae-86a3-4f6c-89de-1dc38f3a55f5/the-search-application-guid-on-server-servername-did-not-finish-loading?forum=sharepointsearchprevious
Get-SPEnterpriseSearchServiceInstance -Local | Start-SPEnterpriseSearchServiceInstance
http://social.msdn.microsoft.com/Forums/en-US/3e24eaae-86a3-4f6c-89de-1dc38f3a55f5/the-search-application-guid-on-server-servername-did-not-finish-loading?forum=sharepointsearchprevious
7.07.2014
SharePoint 2010 - Change Column Types
Sometimes InfoPath doesn't promote fields they way you would like to the SharePoint list. For instance, currency is promoted to a list as a decimal, or a decimal is promoted as an integer. Powershell to the rescue!
Output all of the list columns
$w = Get-SPWeb "https://site";
$l = $w.GetList("https://site/listname/");
$l.Fields | sort StaticName,Type | ?{$_.CanBeDeleted -eq $true -and $_.Hidden -eq $false} | FT Title,StaticName,Type;
Change Column Type
$w = Get-SPWeb "https://site";
$l = $w.GetList("https://site/listname/");
$column = $l.Fields["Amount Due"];
#$column.AllowDeletion = $false;
#$column.Sealed = $true;
$column.Type = "Number";
$column.Update($true);
$web.Dispose();
Output all of the list columns
$w = Get-SPWeb "https://site";
$l = $w.GetList("https://site/listname/");
$l.Fields | sort StaticName,Type | ?{$_.CanBeDeleted -eq $true -and $_.Hidden -eq $false} | FT Title,StaticName,Type;
Change Column Type
$w = Get-SPWeb "https://site";
$l = $w.GetList("https://site/listname/");
$column = $l.Fields["Amount Due"];
#$column.AllowDeletion = $false;
#$column.Sealed = $true;
$column.Type = "Number";
$column.Update($true);
$web.Dispose();
Labels:
InfoPath,
Lists,
SharePoint
6.25.2014
SharePoint - List Filtering on Dates
This is an excellent article that describes how to connect date field web parts to a custom list, to perform range filtering.
http://www.bjw.co.nz/developer/sharepoint-2010/101-list-filtering-by-date-range
http://www.bjw.co.nz/developer/sharepoint-2010/101-list-filtering-by-date-range
5.14.2014
SQL Server 2012 - Best Practice Analyzer
The following are required for using SQL Server 2012 Best Practices Analyzer:
• PowerShell V2.0 (Powershell 4.0 is out now)
• Microsoft Baseline Configuration Analyzer V2.0
http://www.microsoft.com/en-us/download/details.aspx?id=29302
http://www.microsoft.com/en-us/download/details.aspx?id=16475
Source: http://www.mssqltips.com/sqlservertip/2712/using-the-microsoft-sql-server-2012-best-practice-analyzer/
• PowerShell V2.0 (Powershell 4.0 is out now)
• Microsoft Baseline Configuration Analyzer V2.0
http://www.microsoft.com/en-us/download/details.aspx?id=29302
http://www.microsoft.com/en-us/download/details.aspx?id=16475
Source: http://www.mssqltips.com/sqlservertip/2712/using-the-microsoft-sql-server-2012-best-practice-analyzer/
Labels:
SQL Server
5.07.2014
SQL Server 2012 - SSIS Execution Permissions
I ran into an issue where even the server administrator and sql server services accounts would not properly execute SSIS packages. I had to perform the following steps so the service account could execute a sql agent job and run a package.
Run Dcomcnfg.exe. Dcomcnfg.exe provides a user interface for modifying certain settings in the registry. In the Component Services dialog, expand the Component Services > Computers > My Computer > DCOM Config node. Right-click Microsoft SQL Server Integration Services 11.0, and then click Properties. On the Security tab, click Edit in the Launch and Activation Permissions area. Add users and assign appropriate permissions, and then click Ok. Repeat steps 4 - 5 for Access Permissions. Restart SQL Server Management Studio. Restart the Integration Services Service. (Source MSDN)
Labels:
SQL Server,
SSIS
4.25.2014
SharePoint & Antivirus
Folders to consider for exclusion in antivirus programs:
C:\Program Files\Microsoft Office Servers\14.0\Logs
C:\Program Files\Microsoft Office Servers\
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\
C:\Program Files\Microsoft SQL Server
C:\Program Files (x86)\Microsoft SQL Server
Sources:
C:\Program Files\Microsoft Office Servers\14.0\Logs
C:\Program Files\Microsoft Office Servers\
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\
C:\Program Files\Microsoft SQL Server
C:\Program Files (x86)\Microsoft SQL Server
Sources:
4.10.2014
SharePoint 2010 - Enabling the Developer Dashboard
Enabling via powershell:
http://msdn.microsoft.com/en-us/library/office/gg512103(v=office.14).aspx
http://msdn.microsoft.com/en-us/library/office/ff512745(v=office.14).aspx
$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $dashboardSetting = $contentService.DeveloperDashboardSettings $dashboardSetting.DisplayLevel = [Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::On $dashboardSetting.Update()
http://msdn.microsoft.com/en-us/library/office/gg512103(v=office.14).aspx
http://msdn.microsoft.com/en-us/library/office/ff512745(v=office.14).aspx
3.26.2014
Free IT eBooks
All Categories
Microsoft
- http://social.technet.microsoft.com/wiki/contents/articles/11608.e-book-gallery-for-microsoft-technologies.aspx
- http://it-ebooks.info/publisher/8/
- http://blogs.msdn.com/b/mssmallbiz/archive/2013/06/28/almost-150-free-microsoft-ebooks-covering-windows-7-windows-8-office-2010-office-2013-office-365-office-web-apps-windows-server-2012-windows-phone-7-windows-phone-8-sql-server-2008-sql-server-2012-sharepoint-server-2010-s.aspx
Labels:
Books
2.13.2014
SharePoint 2010 - Formulas
Some resources for SharePoint formulas:
- http://office.microsoft.com/en-us/windows-sharepoint-services-help/CH001171117.aspx
- http://office.microsoft.com/en-us/support/results.aspx?ctags=CH010372694
- http://office.microsoft.com/en-us/windows-sharepoint-services-help/examples-of-common-formulas-HA001160947.aspx
2.03.2014
Powershell - File Renaming
Here is a quick powershell script to tidy files that are not properly formatted for the web.
Get-ChildItem C:\Temp\rename\* -Recurse | Rename-Item -NewName {$_.name -creplace '[^A-Za-z1234567890.]','_' }
Get-ChildItem C:\Temp\rename\* -Recurse | Rename-Item -NewName {$_.name -replace '___','_' }
Get-ChildItem C:\Temp\rename\* -Recurse | Rename-Item -NewName {$_.name -replace '__','_' }
Labels:
Powershell
1.29.2014
SharePoint 2010 - InfoPath - Web Browser Settings
There is a glitch in the form rendering processes. Even with all the apparent settings set correctly in Central Admin and in the Form Library itself, the form still tries to open in the client filler application. There are some workarounds.
- Add this query parameter to the URL string. (Documentation)
https://intranet.mysite.org/FormLibrary/Forms/template.xsn?OpenIn=Browser - Using powershell to force the settings on the library:
http://technet.microsoft.com/en-us/library/ff805082(v=office.14).aspx
Set-SPInfoPathFormsService -AllowUserFormBrowserRendering $true
1.16.2014
SharePoint 2010 - Permissions on Views
Here are two excellent articles regarding specialized permissions on list views:
Labels:
SharePoint
1.10.2014
Powershell - Transferring Files from Server to Server
This is a nice little trick to get powershell to transfer files from one server directly without using domain admin credentials, or setting up an intermediary share directory. The credentials here are for the destination server. This creates a temporary network shared drive on the source server, transfers the file, then removes the shared directory.
$DriveUsername = "SERVER\USERNAME" $DrivePassword = "PASSWORD" $LocalFile = "C:\DIRECTORY\FILENAME.csv" $Drive = "T:" $RemoteFile = "$Drive\FILENAME.csv" $UNC = "\\10.10.10.10\C$\DIRECTORY" $net = new-object -ComObject WScript.Network $net.MapNetworkDrive($Drive, $UNC, $false, $DriveUsername, $DrivePassword) Copy-Item $LocalFile $RemoteFile $net.removenetworkdrive($Drive)
Labels:
Powershell
Subscribe to:
Posts (Atom)