Try { $webApplicationURL = $args[0] $featureFolderName = “Web level FeatureName” $webApp = Get-SPWebApplication $webApplicationURL if($webApp -ne $null) {  foreach($siteColl in $webApp.Sites)  {    if($siteColl -ne $null)    {    foreach($subWeb in $siteColl.AllWebs)    {     if($subWeb -ne $null)     {      # Print each Subsite      Write-Host $subWeb.Url      #Get Feature ID based on the

Read More
How activate a Web level Feature on all the subwebs in a WebApplication using Powershell

Suppose the Share Point ListField DateTime Field needs to update programmatilcally as default value as Today . Below is the code for the updating Today as the Default Value. using (SPSite site = new SPSite(“http://Sitename/”)) { using (SPWeb web = spsiteObj.OpenWeb())   { SPList list = web.Lists[“list”];      Guid id=list.ID;      SPField dateTime = list.Fields[“dateTimeField”];

Read More
How to update a SharePoint DateTimeField default value as ‘Today’

After installing SharePoint, you start noticing some health warnings in Central Administration which tell you that you shouldn’t use built-in accounts for application pools or service identities. For SharePoint 2013, 2 of the services which you will find running typically under a built-in account are: SharePoint Tracing Service (SPTraceV4) Distributed Cache Service (AppFabricCachingService) It’s actually pretty easy to

Read More
Change Service Identities for SPTraceV4 and AppFabricCachingService