Missing webpart in SharePoint.


In some cases we tried to edit the page and tried to add web part click on Add a Web Part link but in the top ribbon we can able to see only Apps inside the categories, we verified the permissions for that particular user having the Full Control to the site.




Resolution:

If we are currently using sub site in this case, we don’t have permissions to access the top level site (site collection), at least the users having read access to the top level site (site collection) or at least read permissions to the web part gallery available at top level site (site collection).

Once we granted the read permissions to the users to the root site (site collection) or web part gallery then only users can able to add the web part to their site with all available web parts, because the web part gallery is available only at top level site collection only and they can able to see all the web part categories without any problems.




Exclude disable users from AD to SharePoint

There is a way to exclude the disabled users from AD to SharePoint, we are having advantages for excluding the disabled users.
1) SharePoint User Profile Sync will complete very faster no need to maintain disabled users information.
2) Crawling the People Search will complete very fastly.
When we are   configuring User Profile don’t forget to filter the disabled users before starting the full crawl.

Navigate to Central Admin ->Application Management ->Manage Service applications->User profile Service Application
Click on the user profile service application there we can able to see the “Configure Synchronization Connections” option click on it.


Create new connection, once connection created, click on "Edit Connection Filters" from the menu.
  


Select the condition to exclude disable users as shown in the below screen shot.


Click on add.
Now we can able to see the condition as shown below


Click on ok.
Start the Full sync, once sync completed, disabled users won’t be available in our SharePoint user profile.




Enable NetBIOS in SharePoint

Enable NetBIOS in SharePoint
We need to enable NetBIOS for User Profile Service Application when Fully Qualified Domain Name is different than NetBIOS name.

To Enable NetBIOS follow the steps.

1) Delete the existing AD connections.
2) Enable the NetBIOS to true for your current user profile service application.
3) Create a new AD connection.

Using power shell we can enable the NetBIOS to import the NetBIOS domain users in to our SharePoint user profile.

By default this NetBIOS is set to disable false (0), using the PowerShell we are enabling to true (1).

Run the below PowerShell command to enable the NetBIOS.

Using the “Get-SPServiceApplication” we can bale to get all the SharePoint application services running in our farm.
Get-SPServiceApplication
Using “Get-SPServiceApplication –Identity GUID” is used to identify the user profile and get in the variable.
$up= Get-SPServiceApplication –Identity GUID
Enabling the NetBIOS using NetBiosDomainNamesEnabled property is setting to true (1)
$up.NetBiosDomainNamesEnabled = “1”
Update the changes.
$up.update()

We can also verify again NetBIOS is enabled or not

Using $up.NetBiosDomainNamesEnabled if it display True NetBIOS is in enabled mode only.


how to get list of site collection and sites last modified date in sharepoint using powershell

how to get list of site collection and sites last modified date in sharepoint using powershell
We having a requirement to know the last modified date for a web application, for the web application having so many site collection and sub sites under the web application doing it manually it will take lot of time, so we prepared a script to know the last modified date under the web application having the list of site collection and its sub sites with URL, Title and site last modified date.

Get-SPWebApplication – Is used to identify the web application URL.
Get-SPSite  – Is used to get the  site collections.
Get-SPWeb – Is used to get the sub sites.

Run the below Power Shell to get all sites last modified information form a particular web application command.

List of sites under Web Application last modified date.

Get-SPWebApplication http://dotnetsharepoint/ | Get-SPSite -limit all | Get-SPWeb -limit all | select url,Lastitemmodifieddate | sort-Object -Property LastItemModifiedDate  > lastmodifiedinformation.txt

Once the script completed, we can verify the list on sites information  in the text file.

In the same way if we want to get the last modified date only for a particular site collection and its sub sites run the below script.

List of sites under Site Collection last modified date.

Get-SPSite http://dotnetsharepoint/sites/SP/ | Get-SPWeb -limit all | select url,title,Lastitemmodifieddate | sort-Object -Property LastItemModifiedDate  > lastmodifiedsitecollectioninfo.txt



Change the site logo hyperlink URL in SharePoint

Change the site logo hyperlink URL in SharePoint
In SharePoint having the site logo I will indicates the link of the current siteURL, when we want to change the different URL we have to do modify in the master page level.

Locate and identify the currently using master page take a backup before modifying the master page.
Best use of modifying the master page using VS or SharePoint Designer.
Open the master page and search for SPSimpleSiteLink.

This is the exact code we can able to find.
     <SharePoint:SPSimpleSiteLink CssClass="ms-siteicon-a" runat="server" id="onetidProjectPropertyTitleGraphic" >
     <SharePoint:SiteLogoImage CssClass="ms-siteicon-img" name="onetidHeadbnnr0" id="onetidHeadbnnr2" LogoImageUrl="/_layouts/15/images/siteIcon.png?rev=23" runat="server"/>
      </SharePoint:SPSimpleSiteLink>

Replace the code with following changes with your URL.

  <SharePoint:SPLinkButton runat="server" CssClass="ms-siteicon-a"  NavigateUrl="http://dotnetsharepoint.com" id="onetidProjectPropertyTitleGraphic">     <SharePoint:SiteLogoImage CssClass="ms-siteicon-img" name="onetidHeadbnnr0" id="onetidHeadbnnr2" LogoImageUrl="/_layouts/15/images/siteIcon.png?rev=23" runat="server"/>
  </SharePoint:SPLinkButton>

SPLinkButton is the property to navigate the URL.

Save the master page and check the logo hyper link url has changed.


There was an error processing the request my site in SharePoint

We are having a My Site in our SharePoint environment,for every one having their own personal site,in that site when they  tried to edit SharePoint profile information we are getting issue

“There was an error processing the request my site in SharePoint”
                        

We are having multiple web applications and one Managed Meta data service application.

Web application 1: http://dotnetsharepoint.com -> connected to Managed Meta data service and all service applications connected with default proxy group.
Web application 2: http://mysite.dotnetsharepoint.com -> not connected to Managed Meta data service and all remaining service application connected with custom proxy group.

Navigate to Central admin->Application management ->Configure service application associations
There we can able to see all the web application connections connected to Application Proxy Default/Custom.

In my case “my site web application” is connected to “Custom proxy group”, click on the custom and check the check box of “Managed Meta data service application” and click ok.

Now navigate to my site and we can able to edit and update the profile information without issues.



Sorry, you're not set up to follow Unfortunately, it looks like your account hasn't been set up to follow documents or sites.


When we are trying to "follow" a document we are getting the error "Unfortunately, it looks like your account hasn't been set up to follow documents or sites."
Using the "Follow" link we can Follow the Sites,Documents,People and #Tags.
Once we are following these features we can keep track of all these changes.

First check weather My Site is Configured or not.

Also make sure that we are having required permissions to follow the content.

Navigate to ->Central Admin->Application Management->Manage service applications->Click on user on your "user profile service application"->Click on Manage User Permissions.
here we have to check the option as shown in the below screen shot.


Once we verified the permissions,now we can able to follow with out any issues.




Sorry something went wrong with adding the app.click to retry

Sorry something went wrong with adding the app.click to retry
We tried to  install an access app and that installation has failed,we are unable to remove the apps in SharePoint through GUI  we got this error "Sorry something went wrong with adding the app.click to retry",The app cannot be removed or uninstalled from GUI,Remove option is also not available.
Navigating to the Site Contents,while seeing the "Access App" corrupted list its not looking good to see.

Finally we tried there is an option using the power shell we can uninstall the corrupted app as shown in the below.


$geturl = Get-SPAppInstance -Web <Your URL Name>

$getapp = $geturl  | where {$_.Title -eq '<app title Name>'}

Uninstall-SPAppInstance -Identity $getapp 


Once the Power Shell ran's completed successfully,go and verify the list is deleted successfully.



How to open the closed web parts in SharePoint?


when we edit the webpart we can able to dropdown options like Close,Delete.
Some times user scared what would happen if they click on delete the webpart,so they will click on close.once click on close the webpart is gone!.
It is very surpriesed how to get back the closed webpart,we can able to see the web part maintenance page by appending with ?contents =1,but it wont usefull to get back the webpart again.

Solution:
Edit the page
Click on the add web part
In the top ribbon "Categories" last option "Closed Parts" click on it,we can able to see the closed web parts.Select the particular webpart and clik on Add as shown in the image below.

Now the closed  web part is appearing, our problem is resolved.


Set the masterpage using PowerShell in SharePoint

Set the masterpage using PowerShell in SharePoint
 Using Power Shell We can easily change our custom master page in our SharePoint site,once we prepare the script we can use for every time to change the master page.
 "Get-SPWeb" i used to get the site URL of the SharePoint in a variable.

We have two Properties to control the master Page settings, CustomMasterUrl and MasterUrl

Site Master Page         ---   CustomMasterUrl
System Master Page    ---   MasterUrl

Example:
$web = Get-SPWeb http://Dotnetsharepoint.com
$web.CustomMasterUrl = "/_catalogs/masterpage/Custom.master"
$web.MasterUrl = "/_catalogs/masterpage/Custom.master"
$web.Update()


If we have a site collection under a managed path like "sites”, we can change using 

“/sites/SITECOLLECTION/_catalogs/masterpage/Custom.master"
$web.CustomMasterUrl = "/sites/DotnetSharePoint/_catalogs/masterpage/Custom.master"
$web.MasterUrl = "/sites/DotnetSharePoint/_catalogs/masterpage/Custom.master


Sign as a different user in SharePoint 2013

As we know that Sign in as a different user option is not available in SharePoint 2013,It is needed for all developers,Testers,Administrators to log in with different account to test the customizations and aslo for checking permissions in a SharePoint sites,but we can also get this option by placing the code in

C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\CONTROLTEMPLATES\Welcome.ascx and open it SharePoint Designer,Visual Studio or Text Editor

Add the following sinpet befor having the element with id "ID_RequestAccess" as shown in Screenshot.


<SharePoint:MenuItemTemplate runat="server" ID="ID_LoginAsDifferentUser"
 Text="<%$Resources:wss,personalactions_loginasdifferentuser%>"
 Description="<%$Resources:wss,personalactions_loginasdifferentuserdescription%>"
 MenuGroupId="100"
 Sequence="100"
 UseShortId="true"
/>

Save and close.
Open the SharePoint Site we can able to see the Sign as a different user Option.

Sometimes we can also able to sign as a different user option in the browser for current sharepoint site,we can also use the following  URL in your browser.

http://<your site URL>/_layouts/closeConnection.aspx?loginasanotheruser=true

It will prompt the Popup with login,once we login it will redirect to the Site.

SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM

Disable alerts in SharePoint

Disable alerts in SharePoint
Power shell will becoming easy to do our tasks,now we are doing how to disable and enable the alerts to the particular web application in SharePoint 2013/2010.

First we have to get the Web Application URL into a variable using the Property "Get-SPWebApplication" and using "AlertsEnabled" property we are trying to enable or disable the alerts using the Power Shell.


To Disable the alerts in the particular Web Application 

$weburl= Get-SPWebApplication "http://DotnetSharePoint/"
 $weburl.AlertsEnabled = $false
$weburl.Update()

 To Enable alerts in the  particular Web Application

$weburl= Get-SPWebApplication "http://DotnetSharePoint/"
$weburl.AlertsEnabled = $true
$weburl.Update()

Disable Alerts for List

In the same way some times we have to disable the alerts to the particular list there is no OOTB feature to disable the alerts to particular list,but we do it by using jquery/java script read the current page URL and list, disable the button in the ribbon.


How to hide and readonly columns in SharePoint list view using jquery

How to hide and readonly columns in SharePoint list view using jquery

Hide column in SharePoint List view 

To hide the column in custom list  new or view or edit form, we can use the below script to do the same. we need to edit the view or edit form page and add a content editor web part in that we have to include the below script to hide the column based on the requirement.

<script src="c:Jquery/jquery-1.11.0.min.js" type="text/javascript"></script>
<script type="text/javascript">

$(document).ready(function() {

//Contains (It will hide all the column which contains the word "Test")

 $("nobr:contains('Test')").closest('tr').hide();

//For single text alone
   $("input[title='Test']").closest('tr').hide();

</script> 

ReadOnly Column in SharePoint Editview

To make the column as read only in custom list  new or view or edit form, we can use the below script. we need to edit the view or edit form page and add a content editor web part in that we have to include the below script to make the column read only based on the requirement.

<script src="c:Jquery/jquery-1.11.0.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {

   $("input[title='Test']").attr('readonly', true);

</script> 


SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM

sorry we're having trouble refreshing your tasks sharepoint 2013

We enable my site with all the feature having a task list in the quick launch,we created a new tasks in the site,when we tried to refresh the tasks i was not refreshing it was  showing an error as shown  in the screen shot.
                          

Resolution:

Step 1: we have to check the "Work Management Service Application" is there or not,Navigate to Central Admin->Application Management->Service Application.If my case  service application is available as shown below.



Step 2: Now check the service is in started mode or not,Navigate to Central Admin->Application Management ->Manage  services on server.check the status.
In my case it was not started.click on start.






Step 3:
Also verify the Service having permissions with "Application Pool" Service account with Full Control.
In my case i given the application pool Service  account with full control to "Work Management   Service Application"

Finally we verified at tasks,it was refreshing with out any issues.




user profile synchronization service stuck on starting


In SharePoint while trying to start the User Profile Sync it will stuck in a starting stage for a long time and also we are unable to stop this using GUI,because of this we are unable to go forward to do any activity related to User Profile.So now our aim is we have to stop this service immediately. 

In SharePoint PowerShell/Stsadm  will becoming very useful for most of the situations, in our case also we are trying to stop the Sync immediately using the Power Shell/Stsadm  Command..


using Stsadm command we can stop this service immediately

stsadm -o provisionservice -action stop -servicetype “Microsoft.Office.Server.Administration.ProfileSynchronizationService, Microsoft.Office.Server.UserProfiles, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” -servicename FIMSynchronizationService



Now we can able to see the user profile syn service is stopped successfully .



How to configure the Search Center Url in SharePoint Using PowerShell

How to configure the Search Center Url in SharePoint Using PowerShell
In some cases if we want to enable  "Global Search Center URL" as enterprise search center site URL in our entire SharePoint  farm.

Instead of enable this through GUI,we can easily achieve this user power shell.
First we have to get the Search Service Application in to a variable
Using  "Get-SPEnterpriseSearchServiceApplication".
Using the "SearchCenterUrl" set the enterprise URL and update it as per the requirement.

Run the below Power Shell Command.

$sa = Get-SPEnterpriseSearchServiceApplication
$sa.SearchCenterUrl = "http://sitename/SearchCenter/Pages"
$sa.Update()

Once the Power Shell runs completed successfully,check the search is affected in our environment or not,even through its not affected some times we have to do IISRest.




How to Start the User Profile Synchronization Service Using PowerShell

How to Start the User Profile Synchronization Service Using PowerShell
Some times we are unable to start and stop the User Profile Synchronization Service from GUI,still there is way do  using power shell.

Using Get-SPServiceInstance

To get the list of all the services "guid" with  Power Shell command,but it is difficult to identify the exact user profile service if we are using multiple user profile services and for further reference best use to save the services in to a Text file.
 Run the below command as shown.

Get-SPServiceInstance > Services.txt

It will writes the list of all the services with name and "guid" in to the text file,we can able to find the file with our given file name  at C:/Users/Username

Start-SPServiceInstance –Identity "Guid of Particular Service Application"

In the same way if we want to Stop the User Profile Synchronization Service use the following command.

Stop-SPServiceInstance –Identity "Guid of Particular Service Application"



Create custom permission levels in SharePoint 2013


In Most of the cases  we have to create the custom permissions based on our requirement like "No Delete" and also to restrict the users to "create sub sites".
Already we having default groups like "Full Control","Contribute" but we need the same contribute with out delete in this case we have to create custom permissions.

First we have to create a permission level at site collection level as per the below steps.


Navigate to ->Site Settings->Site Permissions->Top Ribbon Click on Permissions Levels

Here we can able to create by clicking on the "Add a Permission Level" as shown below


We can able to check the Permissions based on our requirement example i am selecting "Select All"

Click on Create.

Now we able to see the our newly created custom permissions.



Now we can add the users in to our newly created custom group permissions.






Could not load user profile SharePoint 2013


After creating My Site when the user try to Click on "Newsfeed" or any my site related features.we are getting the error "Could not load user profile",based on the error message we can able to identify that user profile service application is not connected with that web application in most of cases we will the issues in all the site collections and its sites.

In my case Issue resolved follow the steps



Central Admin->Application Management->Under Service Applications->Click on Configure service application associations

Click on the Appliction Proxy Group->default->Uncheck the User Profile Service Application Click ok.

Again Check the User Profile Service Application Click ok.

Now check it will works,if still we are getting the same issue wait for few minutes and try again.
If this issue not yet resolved, go the user profile service application check weather we can able to access the user profile with out any issues.


How to enable anonymous access in SharePoint 2013

When we enable anonymous access to a website, you allow anonymous users (and authenticates users who have not been granted access to the site).
Go to->Central Administration->Application Management->Manage Web Applications

Select the web application for which you need to enable anonymous access

                          

Click on the Authentication Providers
                           

We can see the Membership Provider Name as “Claims Based Authentication”
Click on the Zone Default
                                 
Select Enable anonymous access
 Click on Save
Once you enable at webappliation level then we have to do it at site level
Go to Site Settings->Site Permissions
                                    
Top Ribbon Click on Anonymous Access


 There we can see the three options like
1)Entire Web Site
2)List and Libraries
3)Nothing

By default I will select nothing
Now I am selecting the Entire Website we can able to access the entire site.
Click on OK.


Once we select the Entire Website, will show in the permission like Group Name as Anonymous Users and permission level is for entire web site.




Now Anonymous Users able to browse the Site I will show with Sign In.




SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM

Hiding Sites,Sky drive and NewsFeed from SharePoint 2013 Sites

In some cases we have to hide the My site features "Sites,Sky drive and Newsfeed" in entire SharePoint farm environment.
with out using the CSS styles there is a way we can do it by deactivating the feature at "Manage farm features" level.




Please follow the steps with navigation's to disable all the my site features.
Navigate->Central Admin->System Settings->Farm Management->Manage farm features
Click on the Manage farm features there we can able to see the "Social Tags and Note Board Ribbon Controls" Feature in Active State as shown in the Image



                 Once we deactivated the Feature Social Tags wont available.

In feature need to enable the my site feature dont forget to activate the SharePoint feature again.



How to delete a list in SharePoint Using PowerShell

How to delete a list in SharePoint Using PowerShell
Having a Corrupted list on our SharePoint site,we tried to delete the list through GUI but i am unable to delete that particular list.
In most of the cases Power Shell is with us to do all these activities.
In my case i am using "Get-SPWeb" to access the particular site in to an variable and using"lists" accessing the particular list with name,"AllowDeletion" is used to allow to delete and updating.

using Power Shell we can delete the List

    $web = Get-SPWeb -Identity "Your SiteName"
    $list = $web.lists["Your list name"]
    $list.AllowDeletion = $true
    $list.Update()
    $list.Delete()

Check once script runs completed successfully,list will be deleted.


A list, survey, discussion board, or document library with the specified title already exists in this Web site. Please choose another title.

We tried to create a new  a list,we are getting an error like"sorry something went wrong A list, survey, discussion board, or document library with the specified title already exists in this Web site.  Please choose another title. "

To resolve this problem

Go to Site Content and see if the library or list exists with same,if it is,delete it.
If you are unable to see it there open the site in SharePoint designer see if the list or library having the same name delete it.

Please make sure while deleting exact name..
Hit F5
Now it will works to Create a list or library


How to get the template name in sharepoint using powershell

How to get the template name in sharepoint using powershell
Sometimes in Production we want to know the template name for the current site we are using.
Using below Power Shell we can find the Template name easily.

$currentweb = Get-SPWeb  http://DotNetSharePoint:1234/sites/Sharepoint
write-host "Web Template:" $currentweb.WebTemplate " | Web Template ID:" $currentweb.WebTemplateId
$currentweb.Dispose()

OutPut:Web Template: STS | Web Template ID: 1 // For Team Site

Site Template ID with Name:
0 - GLOBAL (SetupPath=global) - "Global template"
1 - STS - "windows SharePoint Services Site", "Team Site", "Blank Site", "Document Workspace"
2 - MPS - "Basic Meeting Workspace", "Blank Meeting Workspace", "Decision Meeting Workspace", "Social Meeting Workspace", "Multipage Meeting Workspace"
3 - CENTRALADMIN - "Central Admin Site"
4 - WIKI - "Wiki Site"
7 - BDR - "Document Center"
9 - BLOG - "Blog"
20 - SPS (OBSOLETE) - "SharePoint Portal Server Site"
21 - SPSPERS - "SharePoint Portal Server Personal Space"
22 - SPSMSITE - "Personalization Site"
30 - SPSTOC (OBSOLETE) - "Contents area Template"
31 - SPSTOPIC (OBSOLETE) - "Topic area template"
32 - SPSNEWS (OBSOLETE) - "News area template"
33 - SPSNHOME (SubWebOnly) - "News Home template"
34 - SPSSITES - "Site Directory area template"
36 - SPSCOMMU (OBSOLETE) - "Community area template"
38 - SPSREPORTCENTER - "Report Center Site"
39 - CMSPUBLISHING (SetupPath=SiteTemplates\PUBLISHING) - "Publishing and Team Collaboration Site"
40 - OSRV (SetupPath=SiteTemplates\OSRV) - "Shared Services Administration Site"
47 - SPSPORTAL - "Corporate Intranet Site"
50 - SRCHCEN - "Search Center"
51 - PROFILES - "Profiles"
52 - BLANKINTERNETCONTAINER - "Internet Presence Web Site"
53 - BLANKINTERNET - "Publishing Site", "Press Releases Site", "Publishing Site"
54 - SPSMSITEHOST - "My Site Host"
90 - SRCHCENTERLITE (SetupPath=SiteTemplates\SRCHCENTERLITE) - "Search Center Lite"
6221 - PWA (SetupPath=SiteTemplates\PWA) - "Project Web Access Site"
6215 - PWS (SetupPath=SiteTemplates\PWS) - "Project Workspace"
14483 - OFFILE - "Records Repository", "Records Repository"

Reference Template ID's from  http://social.technet.microsoft.com/


Backup and Restore List in SharePoint Using PowerShell

Backup and Restore List in SharePoint Using PowerShell
Some times we have to take the Backup for List with data form one site collection to another site collection  using power shell, we can do our task simply
I am having a list with name "DotNetSharePoint" we have to refer the List with /Lists/YourListName.

Taking Back Up List from One Site Collection
Export-SPWeb "Site Url" -itemurl "/Lists/YourListName" -Path "YourPath"
Example:
Export-SPWeb -Identity "http://SharePoint:6789/sites/DotNet" -Itemurl "/Lists/DotNetSharePoint" -Path "c://DotNetSharePoint.cmp"

Restoring the Backup List to Another Site Collection.

Import-SPWeb -Identity "Site Url" -Path "YourPath" -force
Example:
Import-SPWeb -Identity "http://DotNetSharePoint:1234/sites/SharePoint" -Path "c://DotNetSharePoint.cmp" -force

"-force"  is used to overtire the existing list having the same name.


How to create a new content database in sharepoint using powershell

How to create a new content database in sharepoint using powershell
In this article we will know,how to create a new content database using power shell

Using New-SPContentDatabase  Create a new content database and attach it to the web application

New-SPContentDatabase "yourdatabasename" -DatabaseServer "yourdbservername" -WebApplication http://yoursitename

Example
New-SPContentDatabase "DotNetSharePointDB" -DatabaseServer "DotNetSharePoint" -WebApplication http://dotnetsharepoint:1234

Also we can keep the Maximum Number of Site Collections and Site Collection Level Warning using -MaxSiteCount and -WarningSiteCount

New-SPContentDatabase "DotNetSharePointDB" -DatabaseServer "DotNetSharePoint" -WebApplication http://dotnetsharepoint:1234 -MaxSiteCount 2 -WarningSiteCount  1


Export and Import subsite in sharepoint using PowerShell

Export and Import subsite in sharepoint  using  PowerShell

Using PowerShell we can do Export and Import subsite's in sharepoint  using  PowerShell

Export-SPWeb yoursiteurl –Path "YourPathwith CMPName" -includeusersecurity 
Example
 Export-SPWeb http://dotnetsharepoint.com/sites/dotnet/dotnetsharepoint/ –Path "C:\BackUp\DotNetSharePoint.cmp" -includeusersecurity  

Import-SPWeb yoursiteurl -Path "YourPathwith CMPName"  -IncludeUserSecurity -Force
Example                        
Import-SPWeb http://dotnetsharepoint.com/sites/dotnet/sharepoint/ -Path "C:\SiteBackUp\DotNetSharePoint.cmp"  -IncludeUserSecurity -Force

-IncludeUserSecurity
To get the Users with Groups and Permissions

-Force
Is used to over write the existing site


How to deploy WSP Globally in SharePoint Using PowerShell

 How to deploy WSP Globally in SharePoint Using PowerShell
In this article we will know how to deploy WSP Globally in SharePoint Environment.
First place the WSP in a particular location in our example we placed WSP in C drive.
Open Management Shell and run the script one by one.

Add Solution Package to the Server

Add-SPSolution  C:\DotNetSharePoint.WSP

Deploying WSP Globally

Install-SPSolution  DotNetSharePoint.WSP  -GACDeployment

Uninstall the WSP from the Server

Uninstall-SPSolution –identity DotNetSharePoint.WSP

Remove the WSP from the Server

Remove-SPSolution –identity DotNetSharePoint.WSP


How to update existing WSP in sharepoint Farm using PowerShell

How to update existing WSP in sharepoint Farm using PowerShell
In this article we all learn about updating the new WSP with out retracting the existing WSP.

Using Power Shell we are  updating the new WSP with new custom changes in our  SharePoint Farm.

Take the backup of existing WSP,it may useful in future.
here we can able to find the article How to download WSP file Central Admin

Syntax:

Update-SPSolution –Identity yourwspname.wsp –LiteralPath "WSP Path" –GacDeployment

Example:

Update-SPSolution –Identity DotNetSharePoint.wsp –LiteralPath "C:\DotNetSharePoint.wsp" –GacDeployment



Enabling or Disabling the Claims Based Authencation using PowerShell

Web application is already provisioned with classic,there is no GUI option to change the classic mode to claims but using power shell we can do it.

In Central Admin->Application Management->Manage Web application

Select the particular web application in top ribbon click on the Authentication Providers,there we can see the membership provider name Claims or Classic.

     

Now i am changing the classic to claims using the below power shell

$claims = Get-SPWebApplication "http://DotNetSharePoint:23456/"
$claims.UseClaimsAuthentication = 1;
$claims.Update()

Again i am changing the claims to classic using the below power shell

                               
$claims = Get-SPWebApplication "http://DotNetSharePoint:23456/"
$claims.UseClaimsAuthentication = 0;
$claims.Update()

Finally go verify it once for conformation.

Labels

.Net Interview Questions add custom button in sharepoint using javascript Add custom column property into a PageLayout in SharePoint Add Page Title on their browser's title bar in SharePoint Customly add zip files in blogger Add-SPOSiteCollectionAppCatalog : Must have Manage Web Site permissions or be a tenant admin in order to add or remove sites from the site collection app catalog allow list Advance SmartObject An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL. Angular 2 Angular JS Angularjs Angularjs 1 anonymous users accessing lists and libraries App Permissions for SharePoint 2013 asp.net membership unique email Asp.net TreeView Control asp.net. Attendees in SharePoint Auto refresh list using Content Editor WebPart in SharePoint 2013. Auto Refresh SharePoint list using JavaScript Block and unblock of attachment types in SharePoint Blogger C# Callouts in SharePoint 2013 Cascading Dropdown list in SharePoint change onenote to another location. change SuiteBarLeft in SharePoint 2013 check if userid exists in database c# click node text to expand/collapse in Treeview client object model Close webpart CQWP crate chart using BI site in PPS Create a modern team site collection in SharePoint online Create BI chart in PPS SharePoint 2013 create filter in dashboard designer. create kpi's in dashboard designer create kpi's in SharePoint 2013 dashboard designer Create List Create List In SharePoint Create List using Power Shell Script Create Lookup Field in List using Power Shell Script Create lookup field in List create SharePoint List custom view. create SharePoint List views in List Schema create site collection in site collection in SharePoint using powershell created Date Time calculated field in SharePoint Cross site Collection in SharePoint 2013 Crud Operation in Asp.net Using Stored Procedure Custom MasterPage Approval in SharePoint custom view for survey list Customly add SharePoint List view in Page. delete items in sharepoint using powershell Difference between Angular 1.x & Angular 2 difference between Office 365 and Windows Azure difference between Windows Azure and Office 365 in sharepoint? DifferenceBetween discussion board Display Data in Grid View display radio buttons and choice fields horizontally in SharePoint 2013 Document library DotNet Drag and drop documents in document library in SharePoint dynamically populating values from one list to another list using jquery in sharepoint edit and delete buttons in datagridview Edit Links email notification using Nintex enable anonymous access in SharePoint 2013 enable app catalog sharepoint online site collection powershell Enable appcatalog site collection level using PowerShell based on Input file Enable versions for list and library except the hidden lists using PowerShell Script Error occurred in deployment step 'Recycle IIS Application Pool': Cannot resolve model for the project package Errors&Solutions Export document library in sharepoint using powershell Export particular Group in Term Store Management in SharePoint 2013 Export to Excel first release Flow Flow features free disk space on servers using powershell Friendly URLs and Managed Navigation in SharePoint 2013 get a list of site collection with template in web application using PowerShell Script in SharePoint Get attachments in SharePoint custom list using c# get current list item id sharepoint programmatically Get current url using jquery Get data from SharePoint list using Rest api & Angular JS Get Random Get Random SharePoint items using PowerShell Get Random values from SharePoint list using PowerShell Get url of the last value using jquery Get-SPOSite : The managed path sites/yoursitename is not a managed path in this tenant. Getting Email From User Hide “Edit Links” in left navigation SharePoint 2013 hide button in sharepoint based on permissions Hide column in SharePoint List view hide fields using client side object model Hide list in Quick Launch in SharePoint using PowerShell How to add Custom Tiles to SharePoint site Page. How to add extension files in Search Navigation in SharePoint 2013 How to Add Multiple users Using SharePoint People Picker How to add SharePoint list view in Page using C# How to Approve MasterPage using PowerShell in SharePoint How to bind Multiple users Using SharePoint People Picker how to change indicators on kpi performance how to check if an email address already exists in the database in asp.net how to configure workflow manager platform for SharePoint 2013 how to create calculated value using powershell how to create certificate in SharePoint How to create flow. how to create gantt chart webpart in sharepoint how to create KPI indicators in Dashboard designer How to create moden communication site in SharePoint online How to create Multi selected filter in Dashboard How to create nintex workflow in sharepoint how to create rdlc reports in asp.net How to Display Data Grid View in ASP.net How to enable anonymous access in SharePoint How to find data in datagridview in c# How to get image names from the folder using C# how to get particular list content type id in SharePoint 2013 How to get QueryString value in SharePoint WebPart Programatically how to get the current item id for newly created item using REST API and JQuery how to hide list in sharepoint how to know who created list in sharepoint How to make a Site Collection Read-Only in SharePoint 2010 How to overlay Office 365 shared calendar on SharePoint Site how to pass jquery value to asp.net textbox control How to pass pagename as a browser's title bar in the page how to remove unused Application Pool in SharePoint how to remove zone using powershell script How to send mail to particular group of people using PowerShell how to update modified by and created by using powershell how to uplaod RAR files in blogger import csv data into sharepoint import data using powershell Import group to term store management using SharePoint 2013. InfoPath InfoPath Cascading Dropdown list Insert update delete in datagridview in C# winforms Integration from SharePoint to k2. K2 Smart Forms for SharePoint JavaScript Injection jquery JSON K2 blackpearl K2 Designer K2 Designer Workflow. K2 smartform cascading dropdown list k2 Workflow K2 workflow to send a mail with PDF left navigation Local Term Set in managed meta data Managed meta data navigation in SharePoint 2013 Managed metadata service in SharePoint 2013. Managed Navigation in SharePoint 2013. Managed Promoted Sites. meta data navigation Microsoft Flow New Features New-SPConfigurationDatabase The user does not exist or is not unique NintexWorkFlow Office 365 OneDrive OneNote overwrite existing document in sharepoint using javascript PDF Converter PDF Method in K2 Performance Point Service in SharePoint 2013 PerformancePoint Services Configurtion PerformancePoint Services Configurtion for SharePoint 2013 PerformancePoint Services in SharePoint Server 2013 Popularity trends in SharePoint 2013 Pages populate dropdown list dynamicallyusing jquery Power Power Automate Power Shell Power shell script to get SharePoint site size. PowerApps powershell read xml PowerShell Script PowerShell script to get list of users from SharePoint groups PowerShell Scripts in SharePoint 2013 Powershell to set the masterpage in SharePoint Promoted Links Promoted Sites psconfig.exe quick launch Rdlc reports Readonly Column in SharePoint Editview Realtime DotNet Interview Questions Recent Dotnet interview questions Recent SharePoint interview questions recover deleted OneNote page. OneNote content is missing Regional Settings in SharePoint 2013 Replace New Item text in SharePoint Rest API Schedule PowerShell Script Search in SharePoint 2013 Search navigation in SharePoint 2013 Secure store service SecureStore Services SecureStore Services configuration for SharePoint 2013 self-signed certificate on IIS Server Send email to members of SharePoint Group using PowerShell sharepint2010 sharepoin2010 SharePoint 2013 SharePoint 2010 SharePoint 2013 SharePoint 2013 Dashboard Designer SharePoint 2013 features SharePoint 2013 Interview Questions SharePoint 2013. SharePoint 2013.disable views from user to create SharePoint 2013.Power shell SharePoint 2013.SharePoint 2010 SharePoint 2016 SharePoint Administration SharePoint Alerts and Reminders SharePoint App Configuration SharePoint Apps SharePoint Bulk upload SharePoint Calculated field SharePoint Calendar View sharepoint interview questions SharePoint online interview questions SharePoint online training SharePoint Onprem vs Online SharePoint RealTime Online Training SharePoint2010 SharePoint2013 SharePoint2016 SharePointInterview SharePointOnline SharePointOnline;Restore deleted site;SharePoint 2013 show data in datagridview in C# Simple Insert update Delete Retrieve Clear in asp.net. Site Collection Operations in SharePoint 2013 Site Collection Read-Only in SharePoint 2013 site contents Sorting & Filtering SPO SPSite Site Collection Operation parameters in SharePoint 2013 Step by step to create rdlc report in .Net Store names in text files in C# Sub site Subsite Term store management. The server was unable to save the form at this time. please try again UI New look update created by using client side object model update field values in SharePoint using powershell update items in SharePoint list using client object model update modified by field using client side object model upload zip files in blog use IsNullOrEmpty in PowerShell VirtoSoftware VirtoSofware vitrosoftware WebParts what is Document Set in SharePoint 2010 What is Filter in SharePoint Dashboard what is Limited-access user permission lock down mode feature What is Modern Team site What is Target Audience in SharePoint Who Created Site Using PowerShell Workflow in SharePoint 2013 Workflow management platform in SharePoint 2013 Workflow manager for SharePoint 2013 XSL-Template.