Quantcast
Channel: SharePoint 2013 - General Discussions and Questions forum
Viewing all 26374 articles
Browse latest View live

PowerShell script to Change Service Accounts in SharePoint (E.g. search Service)

$
0
0

Hi,

Using powershell script i ma trying to move search service from my id to farmSvcacct , but I am getting error

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

           

#Custom Function to change Service account of given service
Function Set-ServiceIdentity($svc, $UserName)
{
    #Get the current service account
    $ProcessIdentity = $svc.Service.ProcessIdentity

    if ($ProcessIdentity.Username -ne $UserName)
    {  
       $ProcessIdentity.Username = $UserName
       $ProcessIdentity.Update()

       Write-Host "Service Account Set!"
    }
}

#Get the Service
$Service = Get-SPServiceInstance | Where {$_.TypeName -eq "Search Service Application"}
Set-ServiceIdentity $Service "Domain\farmSvcacct"

Below is the error i am getting please suggest, where i am doing mistake

Property 'Username' cannot be found on this object; make sure it exists and is settable.
At Drive:\sfdfs\Test\change Service account of given service.ps1:13 char:8
+        $ProcessIdentity.Username = $UserName
+        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : PropertyNotFound

You cannot call a method on a null-valued expression.
At Drive:\chdfdfh\Test\change Service account of given service.ps1:14 char:8
+        $ProcessIdentity.Update()
+        ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull


site collection who's members are not in any other sites of web app

$
0
0

Hi All,

Using Powershell, I need to find out site collection who's members are not in any other sites of a web application (SP 2013).  (i.e the members and groups are isolated to that site collection only)

Advance thanks..

Who will be announced as the next SharePoint 2013 Guru? Read more about April 2019 competition!

$
0
0


What is TechNet Guru Competition?

Each month the TechNet Wiki council organizes a contest of the best articles posted that month. This is your chance to be announced as MICROSOFT TECHNOLOGY GURU OF THE MONTH!

One winner in each category will be selected each month for glory and adoration by the MSDN/TechNet Ninjas and community as a whole. Winners will be announced in dedicated blog post that will be published in Microsoft Wiki Ninjas blog, a tweet from the Wiki Ninjas Twitter account, links will be published at Microsoft TNWiki group on Facebook, and other acknowledgement from the community will follow.

Some of our biggest community voices and many MVPs have passed through these halls on their way to fame and fortune.

If you have already made a contribution in the forums or gallery or you published a nice blog, then you can simply convert it into a shared wiki article, reference the original post, and register the article for the TechNet Guru Competition. The articles must be written in April 2019 and must be in English. However, the original blog or forum content can be from beforeApril 2019.

Come and see who is making waves in all your favorite technologies. Maybe it will be you!


Who can join the Competition?

Anyone who has basic knowledge and the desire to share the knowledge is welcome. Articles can appeal to beginners or discusse advanced topics. All you have to do is to add your article to TechNet Wiki from your own specialty category.


How can you win?

  1. Please copy/Write over your Microsoft technical solutions and revelations to TechNetWiki.
  2. Add a link to your new article on THIS WIKI COMPETITION PAGE (so we know you've contributed)
  3. (Optional but recommended) Add a link to your article at the TechNetWiki group on Facebook. The group is very active and people love to help, you can get feedback and even direct improvements in the article before the contest starts.

Do you have any question or want more information?

Feel free to ask any questions below, or Join us at the official MicrosoftTechNet Wiki groups on facebook. Read More about TechNet Guru Awards.

If you win, people will sing your praises online and your name will be raised as Guru of the Month.


PS: Above top banner came from Ronen Ariely.

Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

NuGet BaseConnectionLibrary for database connections.

StackOverFlow
profile for Karen Payne on Stack Exchange

Sharing part of a list

$
0
0

I have an employee list for whom each employee belong to a different department within the organisation.  Each department have their own admin personnel so I want to give them access only to see and manage their personnel and not personnel of other departments.  I'm the SharePoint administrator but I don't have SharePoint Designer.  I thought I could create a different view of that list with a filter based on Department name for each department and give them access only to this view but they would still be able to see other List view of other departments.

Any help would be appreciated!


Update Parent site List from sub-site in Sharepoint-Online

$
0
0

I am working on remote event receiver which listen to a document library exist in a sub-site.

Code is somewhat similar to this implementation : https://github.com/SharePoint/PnP/tree/master/Samples/Core.EventReceivers

I want to update / insert a List which exist in Parent Site.

So the flow is, whenever something change in sub-site / child site of document library, event receiver will execute and there should be an entry in Parent site List.

How should I implement it ? I have clientcontext of sub-site / child site. I can retrieve ParentId and other property like below:

var web = clientContext.Web;
var parentWeb = web.ParentWeb;
clientContext.Load(parentWeb);
clientContext.ExecuteQuery();

How to load parent List & update it ?

If I go something below:

                ClientContext parentClientContext = new ClientContext("https://parentsite/");
                List myList = parentClientContext.Web.Lists.GetByTitle("TestProjectMetrics");
                ListItemCreationInformation itemInfo = new ListItemCreationInformation();
                ListItem myItem = myList.AddItem(itemInfo);
                myItem["Title"] = "My New Item2";
                myItem["ProjectDurationMonths"] = "New Item Description2";
                myItem.Update();
                parentClientContext.Credentials = clientContext.Credentials; // clientContext.Credentials is giving null value
                parentClientContext.ExecuteQuery();

           clientContext.Credentials is giving null value

FYI : clinetContext is sub-site context.

Converting a Microsoft Team into to a Sharepoint subsite

$
0
0
Is it possible to convert an existing Office 365 "Team" into to a subsite on Sharepoint Online?  I cannot find anything anywhere relating to this but hear it's possible from a colleague.  Not sure how much of it is valid.  Much appreciated!

Blob Cache Error - SharePoint 2013

$
0
0

Hi, can any one help

Getting the following error in Event viewer on one of the WFE which is not serving the user requests,

   An error occurred in the blob cache.  The exception message was 'Etag is already set.'.

Thanks & Regards,

- Divya

Publicly-available pages not showing up in search results. Unless logged in. This seems really strange, what am I missing?

$
0
0

So not logged in, I can browse all the pages freely. When I search, there are no results. When I sign in, I see all the results.

This means it's crawling successfully, right? What else is there that could cause something like this?


Combining formulas in a list validation settings

$
0
0

Hello all,

I would apprciate some help in combining two formulas at a "List Validation Settings".

the formulas are:

  • =IF(AND(ISBLANK([Issue date])=TRUE,[Select type of request]="RFP"),FALSE,IF(AND(ISBLANK([Issue date])=TRUE,[Select type of request]="RFQ"),FALSE,TRUE))
  • =[Issue date]>TODAY()+5

Thank you in advance.

Changing theme in SharePoint Server 2016 made all JS to not work

$
0
0

Hello,

Today i tried to change the sharepoint theme to another, and all of my JS started to not work in the site and libraries.

Like hidding some fields is libraries are not working anymore, also changing to another predetermined theme, it keeps same.

I check the JS link from the webparts and they are working property.

Please i need help with this because we have to finish a project and this little customization is broking everything.

Regards,

Luis.

Backup Fails on Arcserve

$
0
0
Actually the backup problem in Arcserve not in sharepoint.I would like to delete the post.

Sharepoint 2013 : Powershell script for to change web.config settings from text/xml file to config file

$
0
0

Hi,

I need help on powershell to change web.config file settings(appsettings and connectionstring).

requirement is i data in text file as below, i need add/update in web config(SharePoint 2013).

Text/xml file data:

<connectionStrings>
<add name="new target" connectionString="newCSvalue" />
</connectionStrings>

Thanks in advance...

Can't save documents in library and folders with accents

$
0
0

Hello all,


Since the update of IE11 to version 11.0.115 (KB4489873) we have a problem when creating document from SharePoint 2013.

The problem is linked to the use of characters with accents (é, è, à,…) in the folder (or document set) name.

For example:

I have a library with a folder called "Vive le vélo":


I create a document from within the library:




It opens up correct in Word. When I try to save I see thisin the address bar:





Ofcourse resulting in an error when trying to save:





When I open the library from within Word the address in the address bar it displayed correctly:




So it seems that Internet Explorer does not send the encoded url to the client?

We tested with version IE 11.0.110 and there we do not have this problem. When we upgrade it to IE 11.0.115 the problem is the same.

We work with SharePoint 2013 and Office 2016


Any ideas?


Thanks,


Peter

Sharepoint 2013 w. latest IE version not finding word and excel files in desktop app

$
0
0

Hi!

We are running Sharepoint 2013 in our on-prem environment, we are running windows 10 1809 with IE version 11.379.17763.0 Updates 11.0.115 and Office 365 2016 fully updated.

Since we updated from IE Updates 11.0.93 to 11.0.115 opening files through sharepoint in the desktop app is not working for files containing BOTH space and UTF-characters Å Ä Ö. This is when we eighter through Word Web App choose Edit -> Edit in Word OR pres 3 dots by the filename -> Edit, same issue.

Word / Excel gives the error "Sorry, we couldn't find your file. http://collaboration.intranet.company.com/sites/it/infrastructure/Documents/Testfile with %C5 %E4 %D6.docx is it possible, it was moved, renamed or deleted?" but the actual filename is "Testfile with å ä ö.docx" under the correct path.

The edit link is: http://collaboration.intranet.company.com/sites/it/infrastructure/Documents/Testfile%20with%20Å%20ä%20Ö.docx so somehow there is more encoding doing on which removes the %20 "spaces" when it comes to word but changes ÅÄÖ to the ASCII encoded version.

This works fine in Chrome so only Internet Explorer is the issue. Downloding and opening or Open new in new tab -> Open works fine.

Anyone seen this before? Any solutions?

Unable to modify Office documents in specific SharePoint locations - A problem occurred while connecting to the server

$
0
0
Hello,

I have following problem in my SharePoint Foundation 2013 environment.

I was able to modify Office documents located in my SharePoint sites without problem. I open documents directly from Internet Explorer (version 11) or from “Explorer view”.

Suddenly, without specific action, I have now the following message when I open office document from Internet Explorer and next click “Edit document” in Word or Excel :
A problem occurred while connecting to the server. If the problem continues, contact you administrator.

After many tests, I note that this problem occurs only in specific libraries in SharePoint sites.
For example :
file#1 in library#1 works fine (no problem to modify the document)
file#2 in library#2 doesn’t work (unable to modify document, message “A problem occurred while connecting to the server”).
If I copy file#1 in library#2, problem occurs on file#1 copied
If I copy file#2 in library#1, no problem to modify file#2 copied.


I don’t have any problem when I opened documents from “Explorer view”.
I don’t have any problem when I opened documents from Firefox.

I have uninstall/reinstall Internet Explorer 11 but problem still occurs.
I have repair Office 2016 but problem stills occurs.
I have tried with another windows user on my computer and the problem is the same with this user.
I have tried with another computer and I don’t have this problem (so it’s not a permissions problem on SharePoint library).

My computer OS is windows 10.

It seems to be a specific problem to my computer (and only for specific locations in SharePoint sites) but I don’t’ have any other ideas to test.

Do you have any ideas to resolve my problem?

Thanks.
Regards,



Page viewer webpart

$
0
0

We have an internal site which we display using webpart. I am using page viewer webpart (Please let me know if there is a better way I am on SharePoint 2013). 

We have a request for external users to access this site. These external users can already access our SharePoint site using ADFS. So if I expose this site with firewall/DNS changes)to outside world, does this solve the issue and  are there any security risks I need be aware of.  Is this a good practice. I appreciate  any recommendations if you are already doing this ?

Thank you 


@R

Calculate diffence between 2 dates/times with IF statement (Sharepoint formula)

$
0
0

Hi,

I'm trying to calculate the difference between 2 times using and IF statement.  It'll work fine when you edit a record but won't work on a new form entry.  When I submit a new form entry, I get #Name?.

=IF([Call cancelled?]="TRUE",TEXT([Time call cancelled]-[Time left home unit],"h:mm"),TEXT([Time left home unit]-[Time arrived at scene],"h:mm"))

Any help would be appreciated.  I'm using sharepoint 2016.

2 issues: Getting 403 Forbidden when checking permissions, and users receiving Login prompts mid-session. SharePoint 2013

$
0
0

Hi, 

Last week, I suddenly started receiving a "403 Forbidden" error when checking user permissions. If I check a group, it works fine. This only happens when I check individuals. 

 - On-prem SP 2013 (hosted on VMWare) 

 - Occurs on any site within farm 

 - If I delete URL parameters, the page returns proper results.

These break: 

/<sitename>/_layouts/15/User.aspx?List=< LIST ID >&Source=< SOURCE >

/<sitename>/_layouts/15/chkperm.aspx?obj=< OBJECT ID >%2CDOCLIB&IsDlg=1

These work:

/<sitename>/_layouts/15/User.aspx?

/<sitename>/_layouts/15/chkperm.aspx?

  -- or -- 

/<sitename>/_layouts/15/User.aspx

/<sitename>/_layouts/15/chkperm.aspx

 

This suddenly started happening around the same time users started receiving Login prompts when they tried to open files (Word or Excel docs). If they hit ESC, they were able to bypass the prompt, edit and save the doc without issue. 

If anyone has a clue, I would absolutely appreciate it! 

Thanks in advance, 

Ted 

Date field format when exporting list to Excel

$
0
0

I am having trouble with the date field formats in Excel when exporting from a SharePoint 2013 list. For example, my Created field is displaying in Excel as XXXXX.XXXX. The Modified Date is displaying as m/d/yyyy.   I have another column, and this is the one I am concerned about because I am using it in a pivot table. In the Date Approved field some dates are coming in as m/d/yyyy and others are coming in as XXXXX.  I am making this pivot table as a reporting mechanism for someone and do not want her to have to do any re-formatting after she refreshes the data.  (Every time I refresh the data, the pivot table changes (it shows blank fields (those that have not date in the Date Approved field) and it shows the dates in the two different formats.

What is bringing in the exported dates differently?  They are all Short Date data types in SharePoint before the export.

  

There are no mistakes; every result tells you something of value about what you are trying to accomplish.

Sharepoint List after saving redirect to custom page

$
0
0

Hi,

I have requirement,  after user save SharePoint List item Both in New form and Edit form, should redirect to default Custom form instead of allitems.aspx.

Could you please let me know how we can achieve this?

Reagrds,

Patil

Viewing all 26374 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>