kwizcom banner advertisement

"There was an error during Installation, The tool was unable to install Application Server Role, Web Server (IIS) Role." In SharePoint 2013 Products Preparation Tool

May 31, 2015    , , ,
Problem: SharePoint 2013 Products Preparation Tool  failed with an error "There was an error during Installation - The tool was unable to install Application Server Role, Web Server (IIS) Role." during prerequisites installation in Windows Server 2012 R2. Solution: Mount the Windows 2012 R2 ISO into the drive and Install the roles offline from Windows Server Installation disk. PowerShell script to Add necessary Roles & features for SharePoint 2013 (Prerequisites) Import-Module ServerManager Add-WindowsFeature NET-WCF-HTTP-Activation45,NET-WCF-TCP-Activation45,NET-WCF-Pipe-Activation45 -Source E:\Sources\sxs Add-WindowsFeature Net-Framework-Features,Web-Server,Web-WebServer,Web-Common-Http,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-App-Dev,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-Http-Tracing,Web-Security,Web-Basic-Auth,Web-Windows-Auth,Web-Filtering
"There was an error during Installation, The tool was unable to install Application Server Role, Web Server (IIS) Role." In SharePoint 2013 Products Preparation Tool "There was an error during Installation, The tool was unable to install Application Server Role, Web Server (IIS) Role." In SharePoint 2013 Products Preparation Tool Reviewed by Salaudeen Rajack on May 31, 2015 Rating: 5

How to Read-Update Multiple lines of text Field Value in SharePoint using Powershell?

May 30, 2015    ,
PowerShell to Get Value from Multiple lines of text field: To Read the value of multiline text field in SharePoint using PowerShell, use this script: Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue #configuration parameters $WebURL="https://portal.crescent.com/selfservice/" $ListName="Service Requests" $ItemID=2 $FieldName="Request Description" #Get Web, List, Item and Field $Web= Get-SPWeb $WebURL $List= $Web.Lists[$ListName] $Item = $List.GetItembyID($ItemID) #Get the field $Field = $Item.Fields.GetField($FieldName) #Retrieve field value with all formats applied #$Field.GetFieldValueAsHTML($Item[$FieldName]) $MultilineValue=$Item[$FieldName] #Get Field value Text alone -Without Formatting $MultilineTextVale=$Field.GetFieldValueAsText($Item[$FieldName]) Update Multiple lines of text value using PowerShell: Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue #configuration parameters $WebURL=&
How to Read-Update Multiple lines of text Field Value in SharePoint using Powershell? How to Read-Update Multiple lines of text Field Value in SharePoint using Powershell? Reviewed by Salaudeen Rajack on May 30, 2015 Rating: 5

Add New Content Source in SharePoint 2013 Search using PowerShell

May 28, 2015    , , , ,
Requirement: Create new search content source in SharePoint 2013. PowerShell script to add new content source: Here is the PowerShell script to create new content source in SharePoint 2013 search. Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue #Variables for new content source creation $ContentSourceName= "Intranet Portal" #default "Local SharePoint sites" $ContentSourceType="SharePoint" $ContnetSourceURL="http://portal.crescent.com" #Get the search service application $SSA = Get-SPEnterpriseSearchServiceApplication #-Identity "Search Service Application Name" #Check if the given content source Name exits already $ContentSource = Get-SPEnterpriseSearchCrawlContentSource -SearchApplication $SSA | where {$_.Name -eq $ContentSourceName} if ($ContentSource) { write-host "Content Source Name already exist!" -f Red exit } #Create new content source $ContentSource = New-SPEnterpriseSearch
Add New Content Source in SharePoint 2013 Search using PowerShell Add New Content Source in SharePoint 2013 Search using PowerShell Reviewed by Salaudeen Rajack on May 28, 2015 Rating: 5

SharePoint Full Crawl Stuck? Force Stop SharePoint Search Crawl using PowerShell

May 28, 2015    , , , , ,
Problem: SharePoint 2013 search crawl process is running infinitely! and crawl not stopping!! Solution: Tried stopping the crawl process from search administration page of SharePoint 2013 central administration, but failed. PowerShell to rescue! This script checks whether the crawler status is "Idle" for the given content source. If not, it stops the crawl activity and wait until the status is changed to Idle. Stop Search Crawl for All Content Sources: #Stop the crawl for all content sources Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | ForEach-Object { If($_.CrawlStatus -ne "Idle") { Write-Host "Stopping crawl on Content source $($_.Name)..." $_.StopCrawl() While ($_.CrawlStatus -ne "Idle") { Write-Host "Waiting to crawl to be stopped..." -f DarkYellow sleep 3 } write-host "Crawl Sto
SharePoint Full Crawl Stuck? Force Stop SharePoint Search Crawl using PowerShell SharePoint Full Crawl Stuck? Force Stop SharePoint Search Crawl using PowerShell Reviewed by Salaudeen Rajack on May 28, 2015 Rating: 5

Enable Anonymous Users to Add New List Items in SharePoint

May 27, 2015    ,
Problem: Add items greyed out for Anonymous access users. We got to enable anonymous users to add  list Items in a SharePoint list. Solution: By default, Add/Edit/Edit access is disabled for anonymous users. They are granted only with "Read" access. But for a "Contact Us / Feedback" list in our public SharePoint site, we had to enable anonymous user to submit their questions and feedback (add new list items).   So, How to enable Anonymous users to add list items in SharePoint? Follow these steps: Go to the list settings >> Permissions for this list Click on "Stop Inheriting Permissions" from Permissions tab of the Ribbon.  You'll see the "Anonymous Access" Icon appearing on the ribbon. Click on that. Enable "Add Items - Add Items to lists" check box and click "Ok" Here is the result in action Now, anonymous access users can add list items in SharePoint!
Enable Anonymous Users to Add New List Items in SharePoint Enable Anonymous Users to Add New List Items in SharePoint Reviewed by Salaudeen Rajack on May 27, 2015 Rating: 5

Getting Login Prompt on Anonymous Access Enabled SharePoint Sites?

May 27, 2015    , , , ,
Problem: We Enabled anonymous access to a SharePoint 2013 and users still getting Login prompts! Solution: Here is the check list for troubleshooting. Anonymous access must be turned on both in at Web Application level and at SharePoint site level. Double check your settings with How to Enable Anonymous Access in SharePoint 2013   On publishing sites, try disabling the feature "Limited-access user permission lockdown mode" at site collection level.  If the default home page, say default.aspx page is not published & approved, users get login prompt! If any referenced resources like images, scripts, css files, etc from other libraries requires authentication - You'll get authentication prompt! E.g. You may have a css style sheet from the library "", which may not allow anonymous access! Check the permission for the specific library and grant anonymous users to "Read" the content. Navigate to the IIS Virtual directory on File system using
Getting Login Prompt on Anonymous Access Enabled SharePoint Sites? Getting Login Prompt on Anonymous Access Enabled SharePoint Sites? Reviewed by Salaudeen Rajack on May 27, 2015 Rating: 5

Export SharePoint Users and Group Permissions to Excel

May 27, 2015    , , , , ,
Here is the shortcut to export SharePoint users and groups permission to Excel. Open your SharePoint site in Internet Explorer. Navigate to either Site permissions or any User group.  Right click on the users list page, choose "Export to Excel" item. You may need to reformat it a bit! Here is it would look like: This trick works in all versions of SharePoint including, SharePoint 2010, SharePoint 2013, and in SharePoint 2016! Here is the PowerShell way to Export users and group permissions to excel: Export SharePoint Users and Groups to Excel using PowerShell
Export SharePoint Users and Group Permissions to Excel Export SharePoint Users and Group Permissions to Excel Reviewed by Salaudeen Rajack on May 27, 2015 Rating: 5

Reset Search Index in SharePoint 2013 using Powershell

May 26, 2015    , , ,
Problem: SharePoint 2013 search crawling process got stuck and we got to reset the corrupted search index. Solution: Follow these steps to reset search index in SharePoint 2013. Go to SharePoint 2013 Central Administration >> Service Applications  Pick your Search Service Application  In Search Administration page, Click on "Index Reset" link under crawling section of the left navigation menu. In the index reset page, click on "Reset Now" button to reset search index in SharePoint 2013. Before resetting search index, make sure no search crawls are in progress - Stop all search crawls, disable continuous crawl - otherwise, index reset may get stuck! After index reset, You must run full crawl to enable search results! PowerShell script to reset index in SharePoint 2013: At times, you may have to do it with PowerShell for reasons, such as: When you try to reset search index from Web UI, you get timeouts error on large index You may want to p
Reset Search Index in SharePoint 2013 using Powershell Reset Search Index in SharePoint 2013 using Powershell Reviewed by Salaudeen Rajack on May 26, 2015 Rating: 5

Delete Web application using PowerShell in SharePoint 2013

May 26, 2015    , , , , ,
To delete SharePoint Web application using PowerShell use this cmdlet: Delete Web Application and All its zones: #Web Application URL to delete $WebAppURL="http://sharepoint.company.com" #sharepoint 2013 powershell delete web application Remove-SPWebApplication -identity $WebAppURL -Confirm This deletes the entire Web application and its all zones: Remove Web Application Along with All its Databases and IIS Web Site: To remove the Web application along with its content databases and the IIS Web site, use the switches: -DeleteIISSite and -RemoveContentDatabases #Web Application URL to delete $WebAppURL="http://sharepoint.company.com" #Remove the web application and its databases & IIS Web Application Remove-SPWebApplication -identity $WebAppURL -Confirm -DeleteIISSite -RemoveContentDatabases Delete the Extended Web Application zone: To Removes the Extended Web Application zone, say: Internet, use: #Web Application URL to delete $WebAppURL=&qu
Delete Web application using PowerShell in SharePoint 2013 Delete Web application using PowerShell in SharePoint 2013 Reviewed by Salaudeen Rajack on May 26, 2015 Rating: 5

SharePoint Group vs Active Directory Group - Which is Best?

May 25, 2015    , , , ,
So you need to determine the best way to manage SharePoint users, Whether to use SharePoint groups or Active Directory groups to manage permissions in SharePoint? Well, Both SharePoint Group and AD Group have their own advantages and disadvantages. Let me list down some of them: Manageability : Any SharePoint site owner/admin can manage users on SharePoint groups within SharePoint (Self-Service!). But AD group creation and adding/removing users can be done only by AD administrators, unless delegated. So, to create new users or removing accounts you may have to wait for AD Admins/Help-desk! However, AD Groups Serves better in Centralized management, performance, Minimum administration efforts Scope: Since AD Groups are created globally, you can re-use them in any different SharePoint site collections (even in different systems like File Shares, Exchange, etc) . E.g. You may be having existing department wise AD groups created, say "Sales Team" and you can grant permiss
SharePoint Group vs Active Directory Group - Which is Best? SharePoint Group vs Active Directory Group - Which is Best? Reviewed by Salaudeen Rajack on May 25, 2015 Rating: 5

Create List from Custom List Template in SharePoint using PowerShell

May 24, 2015    , , , , , ,
Requirement: Create a SharePoint list from a custom template using PowerShell How to create SharePoint list from a template? List templates in SharePoint saves your time by providing template on any existing list or library, which comprises of all columns and optionally the data from the source list. You can create any number of copies from the template (or source list copy) Assuming you have an existing list template in the site, Here is how to create a list from list template in SharePoint. Navigate to SharePoint site >> Click on Settings gear icon and click "Add an app" In "Find an App" search box, enter your list template name such as "Project template". You can also Scroll down and use the pagination to move to the next page (custom list templates will be in second page!) and pick your list template. Click on the custom list template shown Provide a name for your new list and click on "OK" You will see a new list create
Create List from Custom List Template in SharePoint using PowerShell Create List from Custom List Template in SharePoint using PowerShell Reviewed by Salaudeen Rajack on May 24, 2015 Rating: 5

How to Uninstall SharePoint 2013 - Complete Steps

May 24, 2015    , , ,
Its a pretty common question and we stuck here often: How to Uninstall SharePoint 2013 completely from the server? Remove Server option From Central Administration >> Servers in Farm page? NO!! You can't uninstall SharePoint 2013 with this option. Remove server option must be used only when a particular server is no longer available and you want to remove it from your SharePoint farm. Follow these steps to uninstall SharePoint 2013. Go to Control Panel (Shortcut: Appwiz.cpl ), Pick Microsoft SharePoint Foundation 2013 (or Server!) and click on "Change" button.  In the Change your installation of Microsoft SharePoint Server 2013 page, Choose Remove , and then click Continue. A confirmation message appears. Click Yes to remove SharePoint 2013. A warning message appears. Click OK to continue. Watch the uninstall progress.. Wait for the "Successfully uninstalled" message. But wait! When you uninstall SharePoint 2013 with above steps, most of the f
How to Uninstall SharePoint 2013 - Complete Steps How to Uninstall SharePoint 2013 - Complete Steps Reviewed by Salaudeen Rajack on May 24, 2015 Rating: 5

SharePoint 2013: Update User's Display Name, E-mail using PowerShell

May 18, 2015    , , , , ,
Requirement:  I came across an issue where the user display name appeared as domain/username instead of First name Last name. Solution: We observed, If the user profile sync is not properly configured or running, we'll face this issue! Other than UPS solution, You can use PowerShell to update user's display name. PowerShell change user display name in SharePoint 2013: How to change the SharePoint user display name with PowerShell? Well, You can use Set-SPUser cmdlet.  Just provide the account identity, site and the new display name for user user. Run this PowerShell cmdlet from SharePoint Management Shell. #Set-SPUser -Identity "i:0#.w|Crescent\Salaudeen" -DisplayName "Salaudeen Rajack" ` –Web http://intranet.crescent.com Sync User Account Details such as Display Name, E-mail, Department from Active Directory: Sometimes, user account details may be updated in AD but not synced in SharePoint. If that's the case, you can force syn
SharePoint 2013: Update User's Display Name, E-mail using PowerShell SharePoint 2013: Update User's Display Name, E-mail using PowerShell Reviewed by Salaudeen Rajack on May 18, 2015 Rating: 5

SharePoint 2013: Update User's Display Name using PowerShell

May 18, 2015    , , , , ,
Requirement:  I came across an issue where the user display name appeared as domain/username instead of First name Last name. Solution: We observed, If the user profile sync is not properly configured or running, we'll face this issue! Other than UPS solution, You can use PowerShell to update user's display name. PowerShell to change user display name in SharePoint 2013: How to change the SharePoint user display name with PowerShell? Well, You can use Set-SPUser cmdlet.  Just provide the account identity, site and the new display name for user user. Run this PowerShell cmdlet from SharePoint Management Shell. Set-SPUser -Identity "i:0#.w|Crescent\Salaudeen" -DisplayName "Salaudeen Rajack" ` –Web http://intranet.crescent.com Sync User Account Details such as Display Name, E-mail, Department from Active Directory: Sometimes, user account details may be updated in AD but not synced in SharePoint. If that's the case, you can force sy
SharePoint 2013: Update User's Display Name using PowerShell SharePoint 2013: Update User's Display Name using PowerShell Reviewed by Salaudeen Rajack on May 18, 2015 Rating: 5

Check In All Documents in a SharePoint Library using PowerShell

May 09, 2015    , , ,
Requirement: Check-in All files which are checked out in a SharePoint document library. How to Check In all checked out documents in SharePoint 2013: SharePoint 2013 makes it simpler by providing context sensitive ribbon buttons to check in multiple files in bulk. Simply select all files which are checked-out and click on "Check In" button from the ribbon. But this method doesn't work when you have any required field with no default value assigned! Check In All Documents in a SharePoint Library using PowerShell When you do Multiple file upload (bulk upload or through explorer view) and your required column doesn't has any default value in it, then your files will be checked-out automatically. The "Check In" button won't work when you miss-out any required fields in the library. So, our solution is: PowerShell. PowerShell script to check in all documents in the library: Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction Silently
Check In All Documents in a SharePoint Library using PowerShell Check In All Documents in a SharePoint Library using PowerShell Reviewed by Salaudeen Rajack on May 09, 2015 Rating: 5

Start SharePoint User Profile Synchronization using PowerShell

May 03, 2015    , , ,
To start user profile Synchronization manually: Go to SharePoint Central Administration >> Application Management >> click Manage service applications. On the Manage Service Applications >> click in the Name column of the User Profile Service Application In Manage Profile Service page >> Under Synchronization section, click Start Profile Synchronization. select either Start Incremental Synchronization (To Sync profiles that are changed since the last synchronization), or select Start Full Synchronization to synchronize all profiles How to change the schedule of incremental sync: By default, It runs once per day. You can schedule User Profile Incremental Synchronization from:  User Profile Service Application  Click on "Configure Synchronization Timer Job" under Synchronization  Adjust the schedule accordingly Start SharePoint User Profile Synchronization using PowerShell If you want to do Full import once in a while (say, Weekly!), Y
Start SharePoint User Profile Synchronization using PowerShell Start SharePoint User Profile Synchronization using PowerShell Reviewed by Salaudeen Rajack on May 03, 2015 Rating: 5
Powered by Blogger.