El TecnoBaúl de Kiquenet

Kiquenet boring stories

Troubleshooting: Sharepoint Deployments and Powershell

Posted by kiquenet en 13 agosto 2014

 

Account for Installations

http://sharepointlearningcurve.blogspot.com.es/2010/04/sharepoint-2010-installation-account.html

http://serverfault.com/questions/349300/permissions-error-setting-up-powershell-account-privileges-for-sharepoint-2010

http://sharepoint.stackexchange.com/questions/26831/permissions-error-setting-up-sharepoint-2010-powershell-account-privileges

Error This operation uses the SharePoint Administration service (spadminV4), which could not be contacted.  If the service is stopped or disabled, start it and try the operation again.

http://support.microsoft.com/kb/925727

http://sharepoint.stackexchange.com/questions/72106/remove-spwebapplication-not-working-if-spadminv4-service-is-run-by-local-system

http://sharepoint.stackexchange.com/questions/110928/spadminv4-which-could-not-be-contacted-in-deployment

Term Store in sharepoint 2013 using powershell

Error Current user has insufficient permissions to perform this operation

To resolve the issue:

•Go the Central Administration

•Go to : “Manage service applications” ( _admin/serviceapplications.aspx).

•Select “Managed Metadata Service” to get the Terms Store admin interface.

•In the section : “Term Store Administrators”. Add the user that you use to run sharepoint management shell

•Save the changes.

In SharePoint 2013 Enterprise, I followed the steps above, but it still didn’t work.

Following on from there, I went to the ‘Term Store Management Tool’ in Central Admin (/_layouts/15/termstoremanager.aspx) and added the user there too. This resolved the permissions issue for me.

Cmdlets Sharepoint and Powershell

http://blog.falchionconsulting.com/index.php/tag/cmdlets/page/2/

Read Logging Files Sharepoint

Reading the log file.

The simplest way is opening the log files from the 14$\logs in Notepad. This might be quickest way but not the most efficient in a live multiuser environment. I usually use this in a development environment in combination with a text editor that automatically reloads the file when it’s updated (Notepad++).

Using powershell with a correlation id

You can use powershell to quickly track down a correlation ID and dump the related log files into a file

1

get-splogevent -starttime (get-date).addminutes(-20) | where-object { $_.correlation -eq “b66db71a-3257-4470-adf9-5c01dc59ecb3″ } | fl message > c:\errors.txt

More info can be found here :
http://www.mysharepointadventures.com/2011/08/175/

Uls viewer

A Windows application for viewing the ULS logs more easily. Very handy when you are (trying to) reproduce a specific error and during debugging
I use it when I’m trying to track down a specific error and during debugging.

http://ulsviewer.codeplex.com/

image.png

Farm solution

Codeplex also has a nice solution which you can query the SharePoint logs with from within Central Administration.
The solution installs in your Central Administration. Very handy if you want a quick look in your logs files without having to connect over remote desktop to the actual server.
For detailed log digging this tool might not be sufficient.

http://sp2010getcorrelation.codeplex.com/

Visual Studio Integrated ULS Viewer
https://integrateduls.codeplex.com/Wikipage?ProjectName=integrateduls

tool.png

 

References:
http://sharepoint.stackexchange.com/questions/73022/cannot-create-a-group-in-term-store-using-powershell-current-user-has-insuffic
http://sharepoint.stackexchange.com/questions/7868/best-way-to-get-reference-to-local-sitecollection-term-store-group
http://blog.amtopm.be/2010/12/27/error-occurred-in-deployment-step-activate-features-the-current-user-has-insufficient-permissions-to-perform-this-operation/

http://blog.amtopm.be/2012/02/21/read-logging-files-in-sharepoint/

http://blog.falchionconsulting.com/index.php/tag/cmdlets/page/2/

http://sharepointlearningcurve.blogspot.com.es/2010/04/sharepoint-2010-installation-account.html

Anuncios

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s

 
A %d blogueros les gusta esto: