Thursday, March 16, 2017

Local accounts should only be used in standalone mode SharePoint 2010 / 2013 run PSConfig

I was trying to install SharePoint Server 2010. I ran into the following error.

Local accounts should only be used in standalone mode.

To get around this, you will need to use PSConfig  Command to create your Content Database.

To use PSConfig  command you need run command prompt with run as Administrator.

Then go the following location:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN

PSCONFIG.EXE -cmd configdb -create -server 5282-SUSHIL -database sharepoint_2013_config -user 5282\administrator -password password -passphrase password@123 -admincontentdatabase sharepoint2013_admincontent

*******************Worked*****************************

 

example: that worked for me.

psconfig -cmd configdb -create -server WIN-H0QE54APLD0 -database sharepoint_2013_config -user administrator -password admin@123 -passphrase pass@123 -admincontentdatabase sharepoint2010_admincontent

IT will run the task from 1 to 3 step only

then you need to run SharePoint Configuration Wizard.

Error occurred in deployment step ‘Retract Solution’: Attempted to perform an unauthorized operation

Error occurred in deployment step ‘Retract Solution’: Attempted to perform an unauthorized operation

You can fix it by setting the access policy for the current user deploying the SharePoint Solution.

Go to Central Administration - Manage web applications (under Application Management).

Please select the SharePoint application and then press "User Policy" in the ribbon. Over there you add your user you want  deploy with and give him full control.

PowerShell Script to Start / Stop SharePoint Timer Service

To stop Timer service:

net stop SPTimerv4

To start timer service

net start SPTimerv4

What are SharePoint Features ? Define the scope / levels of features?

SharePoint Features are part of packaging and deployment in SharePoint.
Features can be activated or deactivated in SharePoint. 
Features represent a set of functionality.
 

They have four possible scopes / levels
 
Farm- at the Farm level
Web application-  at the Web application level 
Site-  at Site Collection level 
Web-  at Single site level
 
A farm level feature is something that affects the whole farm, for example provisioning a custom timer job or deploying a Business Connectivity Services model.
 
A web application feature can be activated so that it only affects a single web application, and a typical example is a feature that modifies the web.config file.
 
A site scoped feature can be activated so that it only affects a site collection, an example being the deployment of a master page to the master pages catalogue.
 

Finally, a web scoped feature can be activated for a single site, for instance setting the default master page for that site.

DIFFERENCE BETWEEN ITEM.UPDATE() VS SYSTEM.UPDATE() VS UPDATE.OVERWRITEVERSION() IN SHAREPOINT LIST UPDATE VS SYTEMUPDATE(BOOLEAN)

DIFFERENCE BASE
ITEM.UPDATE()
SYSTEMUPDATE()
UPDATEOVERWRITEVERSION()
SYSTEMUPDATE (BOOLEAN)
Item Version
Item.Update() creates automatically new version of list item as Update
No new version.
Updates the item but does not create a new version
true to increment the item version; otherwise, false.
“Modified” and “Modified by”  Fields
Updates the “Modified” and “Modified by” values.
No changes in the “Modified” and “Modified By” fields.
Updates the “Modified” and “Modified by” values.
No changes in the “Modified” and “Modified By” fields.